From 8d7ad09fa6735eefeee092d75bd9c0c925618b16 Mon Sep 17 00:00:00 2001 From: Masanori Taniguchi Date: Thu, 29 Jun 2023 14:46:11 +0900 Subject: [PATCH 01/43] Allow passing query between egress filter and filter gateway. (#1896) * Update payload.proto. * Change Filter.Config. * Change prototypes of egress filter. * Update proto for Insert, Upsert, Update and Object. * Add imprements in handler. * Fix FilterVector and FilterDistance in Client. * Use net.JointHostPost instead of fmt.Sprintf . * Regenerate pb files and format all. * Add an example for current filtering. * Add example ingress-filter and egress-filter for checking the feature of filtering. * Fix manifests and format codes. * Delete debug code. * Delete unused import. * Fix filtering tests to work correctly with current version. * Add a README for example. * Fix example to work at e2e level. * Modify README. * Update README to work in k3d. * Fix k8s.mk . * Fix README. * Add reference to examples. * Fix to pass the format command. * Change Object.Vector in VectorRequest/Response from array to singular. * Modify docs. * Fix makefiles and dockerfiles. * Fix k8s.mk . * Fix error messages in filter gateway. * Run make proto/all && make format, but in a valid developer's environment the same command is run after that. * make proto/all && make format Signed-off-by: hlts2 * regenerate proto Signed-off-by: hlts2 * draft: support default filter config Signed-off-by: kevindiu * fix Signed-off-by: kevindiu * fix Signed-off-by: kevindiu --------- Signed-off-by: hlts2 Signed-off-by: kevindiu Co-authored-by: Yusuke Kato Co-authored-by: hlts2 Co-authored-by: kevindiu Co-authored-by: Kevin Diu --- Makefile | 1 + Makefile.d/build.mk | 58 + Makefile.d/docker.mk | 28 + Makefile.d/k8s.mk | 24 + apis/docs/v1/docs.md | 136 +- .../grpc/v1/filter/egress/egress_filter.pb.go | 60 +- .../filter/egress/egress_filter_vtproto.pb.go | 28 +- apis/grpc/v1/payload/payload.pb.go | 994 ++++-- apis/grpc/v1/payload/payload_vtproto.pb.go | 2978 ++++++++++++----- .../v1/filter/egress/egress_filter.proto | 6 +- apis/proto/v1/payload/payload.proto | 50 +- .../filter/egress/egress_filter.swagger.json | 72 +- .../apis/proto/v1/vald/filter.swagger.json | 50 +- .../apis/proto/v1/vald/insert.swagger.json | 30 +- .../apis/proto/v1/vald/object.swagger.json | 25 +- .../apis/proto/v1/vald/remove.swagger.json | 4 +- .../apis/proto/v1/vald/search.swagger.json | 35 +- .../apis/proto/v1/vald/update.swagger.json | 30 +- .../apis/proto/v1/vald/upsert.swagger.json | 30 +- .../filter/egress-filter/server/Dockerfile | 81 + .../filter/ingress-filter/server/Dockerfile | 81 + docs/overview/component/filter-gateway.md | 46 +- docs/user-guides/client-api-config.md | 103 +- docs/user-guides/filtering-configuration.md | 2 + example/client/gateway/filter/README.md | 49 + .../filter/egress-filter/client/main.go | 105 + .../filter/egress-filter/server/main.go | 120 + .../filter/ingress-filter/client/main.go | 77 + .../filter/ingress-filter/server/main.go | 82 + example/client/gateway/filter/main.go | 205 ++ .../client/v1/client/filter/egress/client.go | 20 +- internal/config/filter.go | 40 +- .../egress-filter/server/deployment.yaml | 43 + .../filter/egress-filter/server/service.yaml | 26 + .../ingress-filter/server/deployment.yaml | 43 + .../filter/ingress-filter/server/service.yaml | 26 + pkg/gateway/filter/handler/grpc/handler.go | 966 +++--- pkg/gateway/filter/handler/grpc/option.go | 17 +- pkg/gateway/filter/usecase/vald.go | 8 +- 39 files changed, 4892 insertions(+), 1887 deletions(-) create mode 100644 dockers/example/client/gateway/filter/egress-filter/server/Dockerfile create mode 100644 dockers/example/client/gateway/filter/ingress-filter/server/Dockerfile create mode 100644 example/client/gateway/filter/README.md create mode 100644 example/client/gateway/filter/egress-filter/client/main.go create mode 100644 example/client/gateway/filter/egress-filter/server/main.go create mode 100644 example/client/gateway/filter/ingress-filter/client/main.go create mode 100644 example/client/gateway/filter/ingress-filter/server/main.go create mode 100644 example/client/gateway/filter/main.go create mode 100644 k8s/example/client/gateway/filter/egress-filter/server/deployment.yaml create mode 100644 k8s/example/client/gateway/filter/egress-filter/server/service.yaml create mode 100644 k8s/example/client/gateway/filter/ingress-filter/server/deployment.yaml create mode 100644 k8s/example/client/gateway/filter/ingress-filter/server/service.yaml diff --git a/Makefile b/Makefile index e54ad1cffc..cdd2161217 100644 --- a/Makefile +++ b/Makefile @@ -258,6 +258,7 @@ GO_ALL_TEST_SOURCES = $(GO_TEST_SOURCES) $(GO_OPTION_TEST_SOURCES) DOCKER ?= docker DOCKER_OPTS ?= +YOUR_DOCKERHUB_ID?= change-it DISTROLESS_IMAGE ?= gcr.io/distroless/static DISTROLESS_IMAGE_TAG ?= nonroot diff --git a/Makefile.d/build.mk b/Makefile.d/build.mk index 7c46a488a7..4e2fb54495 100644 --- a/Makefile.d/build.mk +++ b/Makefile.d/build.mk @@ -206,6 +206,64 @@ cmd/manager/index/index: \ $(dir $@)main.go $@ -version +.PHONY: example/client/gateway/filter/ingress-filter/server/ingress-filter +example/client/gateway/filter/ingress-filter/server/ingress-filter: \ + $(GO_SOURCES_INTERNAL) \ + $(PBGOS) \ + $(shell find $(ROOTDIR)/cmd/gateway/filter -type f -name '*.go' -not -name '*_test.go' -not -name 'doc.go') \ + $(shell find $(ROOTDIR)/pkg/gateway/filter -type f -name '*.go' -not -name '*_test.go' -not -name 'doc.go') + $(eval CGO_ENABLED = 0) + CGO_ENABLED=$(CGO_ENABLED) \ + GO111MODULE=on \ + GOPRIVATE=$(GOPRIVATE) \ + go build \ + --ldflags "-w -extldflags=-static \ + -X '$(GOPKG)/internal/info.Version=$(VERSION)' \ + -X '$(GOPKG)/internal/info.GitCommit=$(GIT_COMMIT)' \ + -X '$(GOPKG)/internal/info.BuildTime=$(DATETIME)' \ + -X '$(GOPKG)/internal/info.GoVersion=$(GO_VERSION)' \ + -X '$(GOPKG)/internal/info.GoOS=$(GOOS)' \ + -X '$(GOPKG)/internal/info.GoArch=$(GOARCH)' \ + -X '$(GOPKG)/internal/info.CGOEnabled=$(CGO_ENABLED)' \ + -X '$(GOPKG)/internal/info.BuildCPUInfoFlags=$(CPU_INFO_FLAGS)' \ + -buildid=" \ + -mod=readonly \ + -modcacherw \ + -a \ + -tags "osusergo netgo static_build" \ + -trimpath \ + -o $@ \ + $(dir $@)main.go + +.PHONY: example/client/gateway/filter/egress-filter/server/egress-filter +example/client/gateway/filter/egress-filter/server/egress-filter: \ + $(GO_SOURCES_INTERNAL) \ + $(PBGOS) \ + $(shell find $(ROOTDIR)/cmd/gateway/filter -type f -name '*.go' -not -name '*_test.go' -not -name 'doc.go') \ + $(shell find $(ROOTDIR)/pkg/gateway/filter -type f -name '*.go' -not -name '*_test.go' -not -name 'doc.go') + $(eval CGO_ENABLED = 0) + CGO_ENABLED=$(CGO_ENABLED) \ + GO111MODULE=on \ + GOPRIVATE=$(GOPRIVATE) \ + go build \ + --ldflags "-w -extldflags=-static \ + -X '$(GOPKG)/internal/info.Version=$(VERSION)' \ + -X '$(GOPKG)/internal/info.GitCommit=$(GIT_COMMIT)' \ + -X '$(GOPKG)/internal/info.BuildTime=$(DATETIME)' \ + -X '$(GOPKG)/internal/info.GoVersion=$(GO_VERSION)' \ + -X '$(GOPKG)/internal/info.GoOS=$(GOOS)' \ + -X '$(GOPKG)/internal/info.GoArch=$(GOARCH)' \ + -X '$(GOPKG)/internal/info.CGOEnabled=$(CGO_ENABLED)' \ + -X '$(GOPKG)/internal/info.BuildCPUInfoFlags=$(CPU_INFO_FLAGS)' \ + -buildid=" \ + -mod=readonly \ + -modcacherw \ + -a \ + -tags "osusergo netgo static_build" \ + -trimpath \ + -o $@ \ + $(dir $@)main.go + .PHONY: binary/build/zip ## build all binaries and zip them binary/build/zip: \ diff --git a/Makefile.d/docker.mk b/Makefile.d/docker.mk index a8858a27a6..1ee4c572cc 100644 --- a/Makefile.d/docker.mk +++ b/Makefile.d/docker.mk @@ -188,3 +188,31 @@ docker/build/loadtest: -t $(ORG)/$(LOADTEST_IMAGE):$(TAG) . \ --build-arg MAINTAINER=$(MAINTAINER) \ --build-arg GO_VERSION=$(GO_VERSION) + +.PHONY: docker/name/example/client/gateway/filter/ingress-filter/server +docker/name/example/client/gateway/filter/ingress-filter/server: + @echo "$(YOUR_DOCKERHUB_ID)/vald-ingress-filter" + +.PHONY: docker/build/example/client/gateway/filter/ingress-filter/server +docker/build/example/client/gateway/filter/ingress-filter/server: + $(DOCKER) build \ + $(DOCKER_OPTS) \ + -f dockers/example/client/gateway/filter/ingress-filter/server/Dockerfile \ + -t $(YOUR_DOCKERHUB_ID)/vald-ingress-filter:latest . \ + --build-arg GO_VERSION=$(GO_VERSION) \ + --build-arg DISTROLESS_IMAGE=$(DISTROLESS_IMAGE) \ + --build-arg DISTROLESS_IMAGE_TAG=$(DISTROLESS_IMAGE_TAG) + +.PHONY: docker/name/example/client/gateway/filter/egress-filter/server +docker/name/example/client/gateway/filter/egress-filter/server: + @echo "$(YOUR_DOCKERHUB_ID)/vald-egress-filter" + +.PHONY: docker/build/example/client/gateway/filter/egress-filter/server +docker/build/example/client/gateway/filter/egress-filter/server: + $(DOCKER) build \ + $(DOCKER_OPTS) \ + -f dockers/example/client/gateway/filter/egress-filter/server/Dockerfile \ + -t $(YOUR_DOCKERHUB_ID)/vald-egress-filter:latest . \ + --build-arg GO_VERSION=$(GO_VERSION) \ + --build-arg DISTROLESS_IMAGE=$(DISTROLESS_IMAGE) \ + --build-arg DISTROLESS_IMAGE_TAG=$(DISTROLESS_IMAGE_TAG) diff --git a/Makefile.d/k8s.mk b/Makefile.d/k8s.mk index 515137f54a..c93f3ba45d 100644 --- a/Makefile.d/k8s.mk +++ b/Makefile.d/k8s.mk @@ -394,3 +394,27 @@ $(BINDIR)/kube-linter: cd $(TEMP_DIR) \ && curl -L https://github.com/stackrox/kube-linter/releases/download/$(KUBELINTER_VERSION)/kube-linter-$(shell echo $(UNAME) | tr '[:upper:]' '[:lower:]') -o $(BINDIR)/kube-linter \ && chmod a+x $(BINDIR)/kube-linter + +.PHONY: k8s/example/client/gateway/filter/ingress-filter/server/deploy +## deploy ingrsess-filter +k8s/example/client/gateway/filter/ingress-filter/server/deploy: + sed -e "s/YOUR_DOCKERHUB_ID/${YOUR_DOCKERHUB_ID}/g" $(dir $@)deployment.yaml | kubectl apply -f - \ + && kubectl apply -f $(dir $@)service.yaml + +.PHONY: k8s/example/client/gateway/filter/ingress-filter/server/delete +## delete ingrsess-filter +k8s/example/client/gateway/filter/ingress-filter/server/delete: + sed -e "s/YOUR_DOCKERHUB_ID/${YOUR_DOCKERHUB_ID}/g" $(dir $@)deployment.yaml | kubectl delete -f - \ + && kubectl delete -f $(dir $@)service.yaml + +.PHONY: k8s/example/client/gateway/filter/egress-filter/server/deploy +## deploy egrsess-filter +k8s/example/client/gateway/filter/egress-filter/server/deploy: + sed -e "s/YOUR_DOCKERHUB_ID/${YOUR_DOCKERHUB_ID}/g" $(dir $@)deployment.yaml | kubectl apply -f - \ + && kubectl apply -f $(dir $@)service.yaml + +.PHONY: k8s/example/client/gateway/filter/egress-filter/server/delete +## delete egrsess-filter +k8s/example/client/gateway/filter/egress-filter/server/delete: + sed -e "s/YOUR_DOCKERHUB_ID/${YOUR_DOCKERHUB_ID}/g" $(dir $@)deployment.yaml | kubectl delete -f - \ + && kubectl delete -f $(dir $@)service.yaml diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index fdf9b239fc..129e43794d 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -25,7 +25,12 @@ - [Empty](#payload-v1-Empty) - [Filter](#payload-v1-Filter) - [Filter.Config](#payload-v1-Filter-Config) + - [Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) + - [Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) + - [Filter.Query](#payload-v1-Filter-Query) - [Filter.Target](#payload-v1-Filter-Target) + - [Filter.VectorRequest](#payload-v1-Filter-VectorRequest) + - [Filter.VectorResponse](#payload-v1-Filter-VectorResponse) - [Info](#payload-v1-Info) - [Info.CPU](#payload-v1-Info-CPU) - [Info.IPs](#payload-v1-Info-IPs) @@ -174,10 +179,10 @@ Represent the discoverer service. Represent the egress filter service. -| Method Name | Request Type | Response Type | Description | -| -------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------- | -| FilterDistance | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | Represent the RPC to filter the distance. | -| FilterVector | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to filter the vector. | +| Method Name | Request Type | Response Type | Description | +| -------------- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------- | ----------------------------------------- | +| FilterDistance | [.payload.v1.Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) | [.payload.v1.Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) | Represent the RPC to filter the distance. | +| FilterVector | [.payload.v1.Filter.VectorRequest](#payload-v1-Filter-VectorRequest) | [.payload.v1.Filter.VectorResponse](#payload-v1-Filter-VectorResponse) | Represent the RPC to filter the vector. | @@ -270,9 +275,41 @@ Filter related messages. Represent filter configuration. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | -------- | ------------------------------------------ | -| targets | [Filter.Target](#payload-v1-Filter-Target) | repeated | Represent the filter target configuration. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ------------------------------------------ | +| target | [Filter.Target](#payload-v1-Filter-Target) | | Represent the filter target configuration. | +| query | [Filter.Query](#payload-v1-Filter-Query) | | The target query. | + + + +### Filter.DistanceRequest + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.DistanceResponse + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | + + + +### Filter.Query + +Represent the filter query. + +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | --------------------- | +| query | [string](#string) | | The raw query string. | @@ -285,6 +322,27 @@ Represent the target filter server. | host | [string](#string) | | The target hostname. | | port | [uint32](#uint32) | | The target port. | + + +### Filter.VectorRequest + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Vector | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.VectorResponse + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Distance | + ### Info @@ -433,11 +491,11 @@ Insert related messages. Represent insert configurations. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | --------------------------------------------------- | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | -| timestamp | [int64](#int64) | | Insert timestamp. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | --------------------------------------------------- | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | +| timestamp | [int64](#int64) | | Insert timestamp. | @@ -644,10 +702,10 @@ Represent a vector. Represent a request to fetch raw vector. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | ----- | ---------------------------- | -| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | +| Field | Type | Label | Description | +| ------- | ------------------------------------------ | -------- | ---------------------------- | +| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | @@ -728,17 +786,17 @@ Search related messages. Represent search configuration. -| Field | Type | Label | Description | -| --------------------- | ---------------------------------------------------------------------- | ----- | ---------------------------------------- | -| request_id | [string](#string) | | Unique request ID. | -| num | [uint32](#uint32) | | Maximum number of result to be returned. | -| radius | [float](#float) | | Search radius. | -| epsilon | [float](#float) | | Search coefficient. | -| timeout | [int64](#int64) | | Search timeout in nanoseconds. | -| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Ingress filter configurations. | -| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Egress filter configurations. | -| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | -| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | +| Field | Type | Label | Description | +| --------------------- | ---------------------------------------------------------------------- | -------- | ---------------------------------------- | +| request_id | [string](#string) | | Unique request ID. | +| num | [uint32](#uint32) | | Maximum number of result to be returned. | +| radius | [float](#float) | | Search radius. | +| epsilon | [float](#float) | | Search coefficient. | +| timeout | [int64](#int64) | | Search timeout in nanoseconds. | +| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Ingress filter configurations. | +| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Egress filter configurations. | +| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | +| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | @@ -848,12 +906,12 @@ Update related messages Represent the update configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Update timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Update timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -910,12 +968,12 @@ Upsert related messages. Represent the upsert configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Upsert timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Upsert timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | diff --git a/apis/grpc/v1/filter/egress/egress_filter.pb.go b/apis/grpc/v1/filter/egress/egress_filter.pb.go index 819bde27fb..227112c7da 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -51,39 +51,43 @@ var file_apis_proto_v1_filter_egress_egress_filter_proto_rawDesc = []byte{ 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xe0, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x12, 0x6e, 0x0a, 0x0e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x1a, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x22, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x56, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x12, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x19, 0x2e, - 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, - 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x2f, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x6b, 0x0a, 0x23, 0x6f, 0x72, - 0x67, 0x2e, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2e, 0x76, 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x65, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x42, 0x10, 0x56, 0x61, 0x6c, 0x64, 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, - 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xfe, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x12, 0x7d, 0x0a, 0x0e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x75, 0x0a, 0x0c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x56, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x12, 0x20, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, + 0x2a, 0x22, 0x15, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x2f, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x6b, 0x0a, 0x23, 0x6f, 0x72, 0x67, 0x2e, + 0x76, 0x64, 0x61, 0x61, 0x73, 0x2e, 0x76, 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, + 0x10, 0x56, 0x61, 0x6c, 0x64, 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x76, 0x64, 0x61, 0x61, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, + 0x67, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_apis_proto_v1_filter_egress_egress_filter_proto_goTypes = []interface{}{ - (*payload.Object_Distance)(nil), // 0: payload.v1.Object.Distance - (*payload.Object_Vector)(nil), // 1: payload.v1.Object.Vector + (*payload.Filter_DistanceRequest)(nil), // 0: payload.v1.Filter.DistanceRequest + (*payload.Filter_VectorRequest)(nil), // 1: payload.v1.Filter.VectorRequest + (*payload.Filter_DistanceResponse)(nil), // 2: payload.v1.Filter.DistanceResponse + (*payload.Filter_VectorResponse)(nil), // 3: payload.v1.Filter.VectorResponse } var file_apis_proto_v1_filter_egress_egress_filter_proto_depIdxs = []int32{ - 0, // 0: filter.egress.v1.Filter.FilterDistance:input_type -> payload.v1.Object.Distance - 1, // 1: filter.egress.v1.Filter.FilterVector:input_type -> payload.v1.Object.Vector - 0, // 2: filter.egress.v1.Filter.FilterDistance:output_type -> payload.v1.Object.Distance - 1, // 3: filter.egress.v1.Filter.FilterVector:output_type -> payload.v1.Object.Vector + 0, // 0: filter.egress.v1.Filter.FilterDistance:input_type -> payload.v1.Filter.DistanceRequest + 1, // 1: filter.egress.v1.Filter.FilterVector:input_type -> payload.v1.Filter.VectorRequest + 2, // 2: filter.egress.v1.Filter.FilterDistance:output_type -> payload.v1.Filter.DistanceResponse + 3, // 3: filter.egress.v1.Filter.FilterVector:output_type -> payload.v1.Filter.VectorResponse 2, // [2:4] is the sub-list for method output_type 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name diff --git a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go index f97bc49247..68acdba830 100644 --- a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go @@ -43,9 +43,9 @@ const _ = grpc.SupportPackageIsVersion7 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type FilterClient interface { // Represent the RPC to filter the distance. - FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (*payload.Object_Distance, error) + FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption) (*payload.Filter_DistanceResponse, error) // Represent the RPC to filter the vector. - FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Object_Vector, error) + FilterVector(ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption) (*payload.Filter_VectorResponse, error) } type filterClient struct { @@ -56,8 +56,8 @@ func NewFilterClient(cc grpc.ClientConnInterface) FilterClient { return &filterClient{cc} } -func (c *filterClient) FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (*payload.Object_Distance, error) { - out := new(payload.Object_Distance) +func (c *filterClient) FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption) (*payload.Filter_DistanceResponse, error) { + out := new(payload.Filter_DistanceResponse) err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterDistance", in, out, opts...) if err != nil { return nil, err @@ -65,8 +65,8 @@ func (c *filterClient) FilterDistance(ctx context.Context, in *payload.Object_Di return out, nil } -func (c *filterClient) FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Object_Vector, error) { - out := new(payload.Object_Vector) +func (c *filterClient) FilterVector(ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption) (*payload.Filter_VectorResponse, error) { + out := new(payload.Filter_VectorResponse) err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterVector", in, out, opts...) if err != nil { return nil, err @@ -79,9 +79,9 @@ func (c *filterClient) FilterVector(ctx context.Context, in *payload.Object_Vect // for forward compatibility type FilterServer interface { // Represent the RPC to filter the distance. - FilterDistance(context.Context, *payload.Object_Distance) (*payload.Object_Distance, error) + FilterDistance(context.Context, *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error) // Represent the RPC to filter the vector. - FilterVector(context.Context, *payload.Object_Vector) (*payload.Object_Vector, error) + FilterVector(context.Context, *payload.Filter_VectorRequest) (*payload.Filter_VectorResponse, error) mustEmbedUnimplementedFilterServer() } @@ -89,10 +89,10 @@ type FilterServer interface { type UnimplementedFilterServer struct { } -func (UnimplementedFilterServer) FilterDistance(context.Context, *payload.Object_Distance) (*payload.Object_Distance, error) { +func (UnimplementedFilterServer) FilterDistance(context.Context, *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterDistance not implemented") } -func (UnimplementedFilterServer) FilterVector(context.Context, *payload.Object_Vector) (*payload.Object_Vector, error) { +func (UnimplementedFilterServer) FilterVector(context.Context, *payload.Filter_VectorRequest) (*payload.Filter_VectorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterVector not implemented") } func (UnimplementedFilterServer) mustEmbedUnimplementedFilterServer() {} @@ -109,7 +109,7 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) { } func _Filter_FilterDistance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(payload.Object_Distance) + in := new(payload.Filter_DistanceRequest) if err := dec(in); err != nil { return nil, err } @@ -121,13 +121,13 @@ func _Filter_FilterDistance_Handler(srv interface{}, ctx context.Context, dec fu FullMethod: "/filter.egress.v1.Filter/FilterDistance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FilterServer).FilterDistance(ctx, req.(*payload.Object_Distance)) + return srv.(FilterServer).FilterDistance(ctx, req.(*payload.Filter_DistanceRequest)) } return interceptor(ctx, in, info, handler) } func _Filter_FilterVector_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(payload.Object_Vector) + in := new(payload.Filter_VectorRequest) if err := dec(in); err != nil { return nil, err } @@ -139,7 +139,7 @@ func _Filter_FilterVector_Handler(srv interface{}, ctx context.Context, dec func FullMethod: "/filter.egress.v1.Filter/FilterVector", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FilterServer).FilterVector(ctx, req.(*payload.Object_Vector)) + return srv.(FilterServer).FilterVector(ctx, req.(*payload.Filter_VectorRequest)) } return interceptor(ctx, in, info, handler) } diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index d598d92213..e6731674ab 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -17,19 +17,18 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.1 +// protoc v4.24.2 // source: apis/proto/v1/payload/payload.proto package payload import ( - reflect "reflect" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - sync "github.com/vdaas/vald/internal/sync" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "github.com/vdaas/vald/internal/sync" ) const ( @@ -930,9 +929,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1006,14 +1005,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1283,6 +1282,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1290,13 +1338,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1309,7 +1359,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1322,12 +1372,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} +} + +func (x *Filter_Config) GetTarget() *Filter_Target { + if x != nil { + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil } -func (x *Filter_Config) GetTargets() []*Filter_Target { +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { if x != nil { - return x.Targets + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} +} + +func (x *Filter_VectorResponse) GetVector() *Object_Vector { + if x != nil { + return x.Vector } return nil } @@ -1347,7 +1618,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1360,7 +1631,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1403,7 +1674,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1416,7 +1687,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1456,7 +1727,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1469,7 +1740,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1519,7 +1790,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1532,7 +1803,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1564,7 +1835,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1572,7 +1843,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1585,7 +1856,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1608,7 +1879,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1637,7 +1908,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1650,7 +1921,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1693,7 +1964,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1706,7 +1977,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1746,7 +2017,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1759,7 +2030,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1809,7 +2080,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1822,7 +2093,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1854,7 +2125,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -1865,7 +2136,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1878,7 +2149,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1901,7 +2172,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1937,7 +2208,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1950,7 +2221,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1993,7 +2264,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2006,7 +2277,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2046,7 +2317,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2059,7 +2330,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2109,7 +2380,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2122,7 +2393,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2154,7 +2425,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2165,7 +2436,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2178,7 +2449,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2201,7 +2472,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2237,7 +2508,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2250,7 +2521,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2293,7 +2564,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2306,7 +2577,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2342,7 +2613,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2355,7 +2626,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2392,7 +2663,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2405,7 +2676,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2450,7 +2721,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2463,7 +2734,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2502,13 +2773,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2521,7 +2792,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2544,7 +2815,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2566,7 +2837,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2579,7 +2850,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2625,7 +2896,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2638,7 +2909,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2705,7 +2976,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2718,7 +2989,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2753,7 +3024,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2766,7 +3037,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2806,7 +3077,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2819,7 +3090,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2868,7 +3139,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2881,7 +3152,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2920,7 +3191,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2933,7 +3204,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3003,7 +3274,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3016,7 +3287,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3061,7 +3332,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3074,7 +3345,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3120,7 +3391,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3133,7 +3404,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3205,7 +3476,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3218,7 +3489,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3271,7 +3542,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3284,7 +3555,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3351,7 +3622,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3364,7 +3635,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3397,7 +3668,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3410,7 +3681,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3435,7 +3706,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3448,7 +3719,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3479,7 +3750,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3492,7 +3763,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3560,7 +3831,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3573,7 +3844,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3613,7 +3884,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3626,7 +3897,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3673,7 +3944,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3686,7 +3957,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3727,7 +3998,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3740,7 +4011,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3828,7 +4099,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3841,7 +4112,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3916,7 +4187,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3929,7 +4200,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3983,7 +4254,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3996,7 +4267,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4046,7 +4317,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4059,7 +4330,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4095,7 +4366,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4108,7 +4379,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4143,7 +4414,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4156,7 +4427,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4198,7 +4469,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4211,7 +4482,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4265,7 +4536,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4278,7 +4549,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4306,7 +4577,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4319,7 +4590,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4354,7 +4625,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4367,7 +4638,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4450,11 +4721,11 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, @@ -4490,15 +4761,44 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x72, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, - 0x0b, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0x79, - 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x3d, 0x0a, 0x06, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, - 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, + 0x0b, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0xc8, + 0x04, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1d, 0x0a, 0x05, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x6b, 0x0a, 0x06, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, + 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x7a, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x1a, 0x4b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x1a, 0x72, 0x0a, 0x0d, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x1a, 0x43, 0x0a, 0x0e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, @@ -4532,7 +4832,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, - 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, @@ -4571,7 +4871,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, @@ -4613,7 +4913,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, @@ -4660,7 +4960,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, @@ -4832,7 +5132,7 @@ func file_apis_proto_v1_payload_payload_proto_rawDescGZIP() []byte { } var file_apis_proto_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_apis_proto_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 74) +var file_apis_proto_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 79) var file_apis_proto_v1_payload_payload_proto_goTypes = []interface{}{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -4858,59 +5158,64 @@ var file_apis_proto_v1_payload_payload_proto_goTypes = []interface{}{ (*Search_Responses)(nil), // 21: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 22: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 23: payload.v1.Filter.Target - (*Filter_Config)(nil), // 24: payload.v1.Filter.Config - (*Insert_Request)(nil), // 25: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 26: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 27: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 28: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 29: payload.v1.Insert.Config - (*Update_Request)(nil), // 30: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 31: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 32: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 33: payload.v1.Update.MultiObjectRequest - (*Update_Config)(nil), // 34: payload.v1.Update.Config - (*Upsert_Request)(nil), // 35: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 36: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 37: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 38: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 39: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 40: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 41: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 42: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 43: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 44: payload.v1.Remove.Config - (*Object_VectorRequest)(nil), // 45: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 46: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 47: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 48: payload.v1.Object.ID - (*Object_IDs)(nil), // 49: payload.v1.Object.IDs - (*Object_Vector)(nil), // 50: payload.v1.Object.Vector - (*Object_Vectors)(nil), // 51: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 52: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 53: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 54: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 55: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 56: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 57: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 58: payload.v1.Object.Locations - (*Object_List)(nil), // 59: payload.v1.Object.List - (*Object_List_Request)(nil), // 60: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 61: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 62: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 63: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 64: payload.v1.Info.Index - (*Info_Pod)(nil), // 65: payload.v1.Info.Pod - (*Info_Node)(nil), // 66: payload.v1.Info.Node - (*Info_CPU)(nil), // 67: payload.v1.Info.CPU - (*Info_Memory)(nil), // 68: payload.v1.Info.Memory - (*Info_Pods)(nil), // 69: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 70: payload.v1.Info.Nodes - (*Info_IPs)(nil), // 71: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 72: payload.v1.Info.Index.Count - (*Info_Index_UUID)(nil), // 73: payload.v1.Info.Index.UUID - (*Info_Index_UUID_Committed)(nil), // 74: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 75: payload.v1.Info.Index.UUID.Uncommitted - (*status.Status)(nil), // 76: google.rpc.Status + (*Filter_Query)(nil), // 24: payload.v1.Filter.Query + (*Filter_Config)(nil), // 25: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 26: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 27: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 28: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 29: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 30: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 31: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 32: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 33: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 34: payload.v1.Insert.Config + (*Update_Request)(nil), // 35: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 36: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 37: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 38: payload.v1.Update.MultiObjectRequest + (*Update_Config)(nil), // 39: payload.v1.Update.Config + (*Upsert_Request)(nil), // 40: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 41: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 42: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 43: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 44: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 45: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 46: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 47: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 48: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 49: payload.v1.Remove.Config + (*Object_VectorRequest)(nil), // 50: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 51: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 52: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 53: payload.v1.Object.ID + (*Object_IDs)(nil), // 54: payload.v1.Object.IDs + (*Object_Vector)(nil), // 55: payload.v1.Object.Vector + (*Object_Vectors)(nil), // 56: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 57: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 58: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 59: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 60: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 61: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 62: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 63: payload.v1.Object.Locations + (*Object_List)(nil), // 64: payload.v1.Object.List + (*Object_List_Request)(nil), // 65: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 66: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 67: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 68: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 69: payload.v1.Info.Index + (*Info_Pod)(nil), // 70: payload.v1.Info.Pod + (*Info_Node)(nil), // 71: payload.v1.Info.Node + (*Info_CPU)(nil), // 72: payload.v1.Info.CPU + (*Info_Memory)(nil), // 73: payload.v1.Info.Memory + (*Info_Pods)(nil), // 74: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 75: payload.v1.Info.Nodes + (*Info_IPs)(nil), // 76: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 77: payload.v1.Info.Index.Count + (*Info_Index_UUID)(nil), // 78: payload.v1.Info.Index.UUID + (*Info_Index_UUID_Committed)(nil), // 79: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 80: payload.v1.Info.Index.UUID.Uncommitted + (*status.Status)(nil), // 81: google.rpc.Status } var file_apis_proto_v1_payload_payload_proto_depIdxs = []int32{ 19, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config @@ -4920,70 +5225,77 @@ var file_apis_proto_v1_payload_payload_proto_depIdxs = []int32{ 19, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 23, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 17, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 24, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 24, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 25, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 25, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 46, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 51, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 20, // 11: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 20, // 12: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 76, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 23, // 14: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 50, // 15: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 29, // 16: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 25, // 17: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 54, // 18: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 29, // 19: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 23, // 20: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 27, // 21: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 24, // 22: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 23: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 34, // 24: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 30, // 25: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 54, // 26: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 34, // 27: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 23, // 28: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 32, // 29: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 24, // 30: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 31: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 39, // 32: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 35, // 33: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 54, // 34: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 39, // 35: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 23, // 36: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 37, // 37: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 24, // 38: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 48, // 39: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 44, // 40: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 40, // 41: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 43, // 42: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 43: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 48, // 44: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 24, // 45: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 46, // 46: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 76, // 47: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 50, // 48: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 50, // 49: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 76, // 50: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 54, // 51: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 76, // 52: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 56, // 53: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 76, // 54: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 56, // 55: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 50, // 56: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 76, // 57: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 67, // 58: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 68, // 59: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 66, // 60: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 67, // 61: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 68, // 62: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 69, // 63: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 65, // 64: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 66, // 65: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 66, // [66:66] is the sub-list for method output_type - 66, // [66:66] is the sub-list for method input_type - 66, // [66:66] is the sub-list for extension type_name - 66, // [66:66] is the sub-list for extension extendee - 0, // [0:66] is the sub-list for field type_name + 81, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 23, // 14: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 24, // 15: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 51, // 16: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 24, // 17: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 51, // 18: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 55, // 19: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 24, // 20: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 55, // 21: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 55, // 22: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 34, // 23: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 30, // 24: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 59, // 25: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 34, // 26: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 23, // 27: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 32, // 28: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 25, // 29: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 30: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 39, // 31: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 35, // 32: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 59, // 33: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 39, // 34: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 23, // 35: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 37, // 36: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 25, // 37: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 38: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 44, // 39: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 40, // 40: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 59, // 41: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 44, // 42: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 23, // 43: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 42, // 44: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 25, // 45: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 53, // 46: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 49, // 47: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 45, // 48: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 48, // 49: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 50: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 53, // 51: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 25, // 52: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 51, // 53: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 81, // 54: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 55, // 55: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 55, // 56: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 81, // 57: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 59, // 58: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 81, // 59: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 61, // 60: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 81, // 61: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 61, // 62: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 55, // 63: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 81, // 64: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 72, // 65: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 73, // 66: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 71, // 67: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 72, // 68: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 73, // 69: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 74, // 70: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 70, // 71: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 71, // 72: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 73, // [73:73] is the sub-list for method output_type + 73, // [73:73] is the sub-list for method input_type + 73, // [73:73] is the sub-list for extension type_name + 73, // [73:73] is the sub-list for extension extendee + 0, // [0:73] is the sub-list for field type_name } func init() { file_apis_proto_v1_payload_payload_proto_init() } @@ -5257,7 +5569,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -5269,7 +5581,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -5281,7 +5593,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -5293,7 +5605,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -5305,7 +5617,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -5317,7 +5629,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -5329,7 +5641,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -5341,7 +5653,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -5353,7 +5665,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5365,7 +5677,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5377,7 +5689,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Config); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -5389,7 +5701,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -5401,7 +5713,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -5413,7 +5725,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -5425,7 +5737,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5437,7 +5749,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -5449,7 +5761,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -5461,7 +5773,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -5473,7 +5785,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5485,7 +5797,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5497,7 +5809,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -5509,7 +5821,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -5521,7 +5833,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -5533,7 +5845,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -5545,7 +5857,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -5557,7 +5869,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_IDs); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -5569,7 +5881,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -5581,7 +5893,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -5593,7 +5905,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -5605,7 +5917,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -5617,7 +5929,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -5629,7 +5941,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -5641,7 +5953,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -5653,7 +5965,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -5665,7 +5977,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -5677,7 +5989,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -5689,7 +6001,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -5701,7 +6013,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -5713,7 +6025,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -5725,7 +6037,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -5737,7 +6049,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -5749,7 +6061,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -5761,7 +6073,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -5773,7 +6085,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_CPU); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -5785,7 +6097,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Memory); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -5797,7 +6109,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -5809,7 +6121,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -5821,7 +6133,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -5833,7 +6145,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -5845,7 +6157,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -5857,7 +6169,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -5869,6 +6181,66 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Nodes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_IPs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_Count); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Committed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Info_Index_UUID_Uncommitted); i { case 0: return &v.state @@ -5885,23 +6257,23 @@ func file_apis_proto_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[45].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[50].OneofWrappers = []interface{}{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[50].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[55].OneofWrappers = []interface{}{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[53].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[58].OneofWrappers = []interface{}{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[55].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []interface{}{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[59].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[64].OneofWrappers = []interface{}{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -5911,7 +6283,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_apis_proto_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 74, + NumMessages: 79, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/grpc/v1/payload/payload_vtproto.pb.go b/apis/grpc/v1/payload/payload_vtproto.pb.go index 57a38bbed6..e005b9ca14 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -180,11 +180,23 @@ func (m *Search_Config) CloneVT() *Search_Config { Radius: m.Radius, Epsilon: m.Epsilon, Timeout: m.Timeout, - IngressFilters: m.IngressFilters.CloneVT(), - EgressFilters: m.EgressFilters.CloneVT(), MinNum: m.MinNum, AggregationAlgorithm: m.AggregationAlgorithm, } + if rhs := m.IngressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.IngressFilters = tmpContainer + } + if rhs := m.EgressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.EgressFilters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -325,17 +337,56 @@ func (m *Filter_Target) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *Filter_Query) CloneVT() *Filter_Query { + if m == nil { + return (*Filter_Query)(nil) + } + r := &Filter_Query{ + Query: m.Query, + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Query) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *Filter_Config) CloneVT() *Filter_Config { if m == nil { return (*Filter_Config)(nil) } - r := &Filter_Config{} - if rhs := m.Targets; rhs != nil { - tmpContainer := make([]*Filter_Target, len(rhs)) + r := &Filter_Config{ + Target: m.Target.CloneVT(), + Query: m.Query.CloneVT(), + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Config) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceRequest) CloneVT() *Filter_DistanceRequest { + if m == nil { + return (*Filter_DistanceRequest)(nil) + } + r := &Filter_DistanceRequest{ + Query: m.Query.CloneVT(), + } + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } - r.Targets = tmpContainer + r.Distance = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) @@ -344,7 +395,67 @@ func (m *Filter_Config) CloneVT() *Filter_Config { return r } -func (m *Filter_Config) CloneMessageVT() proto.Message { +func (m *Filter_DistanceRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceResponse) CloneVT() *Filter_DistanceResponse { + if m == nil { + return (*Filter_DistanceResponse)(nil) + } + r := &Filter_DistanceResponse{} + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Distance = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_DistanceResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorRequest) CloneVT() *Filter_VectorRequest { + if m == nil { + return (*Filter_VectorRequest)(nil) + } + r := &Filter_VectorRequest{ + Vector: m.Vector.CloneVT(), + Query: m.Query.CloneVT(), + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorResponse) CloneVT() *Filter_VectorResponse { + if m == nil { + return (*Filter_VectorResponse)(nil) + } + r := &Filter_VectorResponse{ + Vector: m.Vector.CloneVT(), + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorResponse) CloneMessageVT() proto.Message { return m.CloneVT() } @@ -455,9 +566,15 @@ func (m *Insert_Config) CloneVT() *Insert_Config { } r := &Insert_Config{ SkipStrictExistCheck: m.SkipStrictExistCheck, - Filters: m.Filters.CloneVT(), Timestamp: m.Timestamp, } + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -576,10 +693,16 @@ func (m *Update_Config) CloneVT() *Update_Config { } r := &Update_Config{ SkipStrictExistCheck: m.SkipStrictExistCheck, - Filters: m.Filters.CloneVT(), Timestamp: m.Timestamp, DisableBalancedUpdate: m.DisableBalancedUpdate, } + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -698,10 +821,16 @@ func (m *Upsert_Config) CloneVT() *Upsert_Config { } r := &Upsert_Config{ SkipStrictExistCheck: m.SkipStrictExistCheck, - Filters: m.Filters.CloneVT(), Timestamp: m.Timestamp, DisableBalancedUpdate: m.DisableBalancedUpdate, } + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -853,8 +982,14 @@ func (m *Object_VectorRequest) CloneVT() *Object_VectorRequest { return (*Object_VectorRequest)(nil) } r := &Object_VectorRequest{ - Id: m.Id.CloneVT(), - Filters: m.Filters.CloneVT(), + Id: m.Id.CloneVT(), + } + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) @@ -1886,12 +2021,40 @@ func (this *Search_Config) EqualVT(that *Search_Config) bool { if this.Timeout != that.Timeout { return false } - if !this.IngressFilters.EqualVT(that.IngressFilters) { + if len(this.IngressFilters) != len(that.IngressFilters) { return false } - if !this.EgressFilters.EqualVT(that.EgressFilters) { + for i, vx := range this.IngressFilters { + vy := that.IngressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.EgressFilters) != len(that.EgressFilters) { return false } + for i, vx := range this.EgressFilters { + vy := that.EgressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.MinNum != that.MinNum { return false } @@ -2097,34 +2260,152 @@ func (this *Filter_Target) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } +func (this *Filter_Query) EqualVT(that *Filter_Query) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Query != that.Query { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Query) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Query) + if !ok { + return false + } + return this.EqualVT(that) +} func (this *Filter_Config) EqualVT(that *Filter_Config) bool { if this == that { return true } else if this == nil || that == nil { return false } - if len(this.Targets) != len(that.Targets) { + if !this.Target.EqualVT(that.Target) { + return false + } + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Config) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_DistanceRequest) EqualVT(that *Filter_DistanceRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { return false } - for i, vx := range this.Targets { - vy := that.Targets[i] + for i, vx := range this.Distance { + vy := that.Distance[i] if p, q := vx, vy; p != q { if p == nil { - p = &Filter_Target{} + p = &Object_Distance{} } if q == nil { - q = &Filter_Target{} + q = &Object_Distance{} } if !p.EqualVT(q) { return false } } } + if !this.Query.EqualVT(that.Query) { + return false + } return string(this.unknownFields) == string(that.unknownFields) } -func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { - that, ok := thatMsg.(*Filter_Config) +func (this *Filter_DistanceRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_DistanceResponse) EqualVT(that *Filter_DistanceResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { + return false + } + for i, vx := range this.Distance { + vy := that.Distance[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Object_Distance{} + } + if q == nil { + q = &Object_Distance{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_DistanceResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_VectorRequest) EqualVT(that *Filter_VectorRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_VectorResponse) EqualVT(that *Filter_VectorResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorResponse) if !ok { return false } @@ -2268,9 +2549,23 @@ func (this *Insert_Config) EqualVT(that *Insert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2422,9 +2717,23 @@ func (this *Update_Config) EqualVT(that *Update_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2579,9 +2888,23 @@ func (this *Upsert_Config) EqualVT(that *Upsert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2771,15 +3094,29 @@ func (this *Object_VectorRequest) EqualVT(that *Object_VectorRequest) bool { if !this.Id.EqualVT(that.Id) { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } - return string(this.unknownFields) == string(that.unknownFields) -} - -func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { - that, ok := thatMsg.(*Object_VectorRequest) - if !ok { + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Object_VectorRequest) + if !ok { return false } return this.EqualVT(that) @@ -4242,25 +4579,29 @@ func (m *Search_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x40 } - if m.EgressFilters != nil { - size, err := m.EgressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.EgressFilters) > 0 { + for iNdEx := len(m.EgressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.EgressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x3a } - if m.IngressFilters != nil { - size, err := m.IngressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.IngressFilters) > 0 { + for iNdEx := len(m.IngressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.IngressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 } if m.Timeout != 0 { i = encodeVarint(dAtA, i, uint64(m.Timeout)) @@ -4561,7 +4902,7 @@ func (m *Filter_Target) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Query) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4574,12 +4915,12 @@ func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4591,22 +4932,17 @@ func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Targets) > 0 { - for iNdEx := len(m.Targets) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Targets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } + if len(m.Query) > 0 { + i -= len(m.Query) + copy(dAtA[i:], m.Query) + i = encodeVarint(dAtA, i, uint64(len(m.Query))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Filter) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4619,12 +4955,12 @@ func (m *Filter) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4636,10 +4972,30 @@ func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Target != nil { + size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4652,12 +5008,12 @@ func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4669,8 +5025,8 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -4679,20 +5035,22 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4705,12 +5063,12 @@ func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4722,9 +5080,9 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -4737,7 +5095,7 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4750,12 +5108,12 @@ func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4767,18 +5125,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Vectorizer != nil { - size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a - } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -4787,8 +5135,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i-- dAtA[i] = 0x12 } - if m.Object != nil { - size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -4800,52 +5148,7 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4858,12 +5161,12 @@ func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4875,35 +5178,20 @@ func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = encodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x12 - } - if m.SkipStrictExistCheck { - i-- - if m.SkipStrictExistCheck { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert) MarshalVT() (dAtA []byte, err error) { +func (m *Filter) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4916,12 +5204,12 @@ func (m *Insert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4936,7 +5224,7 @@ func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4949,12 +5237,12 @@ func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4989,7 +5277,7 @@ func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5002,12 +5290,12 @@ func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5034,7 +5322,7 @@ func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5047,12 +5335,12 @@ func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5097,7 +5385,7 @@ func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5110,12 +5398,12 @@ func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5142,7 +5430,7 @@ func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5155,12 +5443,12 @@ func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5172,30 +5460,22 @@ func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.DisableBalancedUpdate { - i-- - if m.DisableBalancedUpdate { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } if m.Timestamp != 0 { i = encodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x18 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 } if m.SkipStrictExistCheck { i-- @@ -5210,7 +5490,7 @@ func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update) MarshalVT() (dAtA []byte, err error) { +func (m *Insert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5223,12 +5503,12 @@ func (m *Update) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5243,7 +5523,7 @@ func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5256,12 +5536,12 @@ func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5296,7 +5576,7 @@ func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5309,12 +5589,12 @@ func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5341,7 +5621,7 @@ func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5354,12 +5634,12 @@ func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5404,7 +5684,7 @@ func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5417,12 +5697,12 @@ func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5449,7 +5729,7 @@ func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5462,12 +5742,12 @@ func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5494,15 +5774,17 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 } if m.SkipStrictExistCheck { i-- @@ -5517,7 +5799,7 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert) MarshalVT() (dAtA []byte, err error) { +func (m *Update) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5530,12 +5812,12 @@ func (m *Upsert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5550,7 +5832,7 @@ func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5563,12 +5845,12 @@ func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5590,8 +5872,8 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Id != nil { - size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5603,7 +5885,7 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5616,12 +5898,12 @@ func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5648,7 +5930,7 @@ func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5661,12 +5943,12 @@ func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5678,22 +5960,40 @@ func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Timestamps) > 0 { - for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + if m.Vectorizer != nil { + size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Object != nil { + size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5706,12 +6006,12 @@ func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5723,20 +6023,22 @@ func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Operator != 0 { - i = encodeVarint(dAtA, i, uint64(m.Operator)) - i-- - dAtA[i] = 0x10 - } - if m.Timestamp != 0 { - i = encodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x8 + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5749,12 +6051,12 @@ func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5766,11 +6068,33 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.DisableBalancedUpdate { + i-- + if m.DisableBalancedUpdate { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } if m.Timestamp != 0 { i = encodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x18 } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } if m.SkipStrictExistCheck { i-- if m.SkipStrictExistCheck { @@ -5784,7 +6108,7 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5797,12 +6121,12 @@ func (m *Remove) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5817,7 +6141,7 @@ func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5830,12 +6154,12 @@ func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5847,8 +6171,8 @@ func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5870,7 +6194,7 @@ func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5883,12 +6207,12 @@ func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5900,23 +6224,22 @@ func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Distance != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) - i-- - dAtA[i] = 0x15 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5929,12 +6252,12 @@ func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamDistance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5946,69 +6269,65 @@ func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Payload.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Timestamps) > 0 { + for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size } return len(dAtA) - i, nil } -func (m *Object_StreamDistance_Distance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_StreamDistance_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Distance != nil { - size, err := m.Distance.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return dAtA[:n], nil } -func (m *Object_StreamDistance_Status) MarshalToVT(dAtA []byte) (int, error) { + +func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamDistance_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.Status != nil { - if vtmsg, ok := interface{}(m.Status).(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - } else { - encoded, err := proto.Marshal(m.Status) - if err != nil { - return 0, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) - } + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Operator != 0 { + i = encodeVarint(dAtA, i, uint64(m.Operator)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 + } + if m.Timestamp != 0 { + i = encodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { + +func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6021,12 +6340,12 @@ func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_ID) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6038,17 +6357,25 @@ func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarint(dAtA, i, uint64(len(m.Id))) + if m.Timestamp != 0 { + i = encodeVarint(dAtA, i, uint64(m.Timestamp)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x18 + } + if m.SkipStrictExistCheck { + i-- + if m.SkipStrictExistCheck { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { +func (m *Remove) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6061,12 +6388,12 @@ func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_IDs) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6078,19 +6405,10 @@ func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Ids) > 0 { - for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ids[iNdEx]) - copy(dAtA[i:], m.Ids[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.Ids[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } return len(dAtA) - i, nil } -func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6103,12 +6421,12 @@ func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6120,32 +6438,32 @@ func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = encodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if len(m.Vector) > 0 { - for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { - f1 := math.Float32bits(float32(m.Vector[iNdEx])) - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i = encodeVarint(dAtA, i, uint64(len(m.Vector)*4)) - i-- - dAtA[i] = 0x12 } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarint(dAtA, i, uint64(len(m.Id))) + if m.Id != nil { + size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Vectors) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6158,12 +6476,12 @@ func (m *Object_Vectors) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Vectors) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Vectors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6175,22 +6493,23 @@ func (m *Object_Vectors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Vectors) > 0 { - for iNdEx := len(m.Vectors) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Vectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } + if m.Distance != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) + i-- + dAtA[i] = 0x15 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6203,12 +6522,12 @@ func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamVector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6232,15 +6551,15 @@ func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_StreamVector_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Distance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if m.Distance != nil { + size, err := m.Distance.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6251,12 +6570,12 @@ func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, e } return len(dAtA) - i, nil } -func (m *Object_StreamVector_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := interface{}(m.Status).(interface { @@ -6282,7 +6601,7 @@ func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, e } return len(dAtA) - i, nil } -func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6295,12 +6614,12 @@ func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_ReshapeVector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_ID) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6312,38 +6631,17 @@ func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Shape) > 0 { - var pksize2 int - for _, num := range m.Shape { - pksize2 += sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num1 := range m.Shape { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = encodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if len(m.Object) > 0 { - i -= len(m.Object) - copy(dAtA[i:], m.Object) - i = encodeVarint(dAtA, i, uint64(len(m.Object))) + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarint(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { +func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6356,12 +6654,12 @@ func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Blob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_IDs) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6373,24 +6671,19 @@ func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Object) > 0 { - i -= len(m.Object) - copy(dAtA[i:], m.Object) - i = encodeVarint(dAtA, i, uint64(len(m.Object))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ids[iNdEx]) + copy(dAtA[i:], m.Ids[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Ids[iNdEx]))) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6403,12 +6696,12 @@ func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamBlob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Vector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6420,69 +6713,32 @@ func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Payload.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if m.Timestamp != 0 { + i = encodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if len(m.Vector) > 0 { + for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { + f1 := math.Float32bits(float32(m.Vector[iNdEx])) + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) } - i -= size + i = encodeVarint(dAtA, i, uint64(len(m.Vector)*4)) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_StreamBlob_Blob) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Blob != nil { - size, err := m.Blob.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *Object_StreamBlob_Status) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_StreamBlob_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Status != nil { - if vtmsg, ok := interface{}(m.Status).(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - } else { - encoded, err := proto.Marshal(m.Status) - if err != nil { - return 0, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = encodeVarint(dAtA, i, uint64(len(encoded))) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Vectors) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6495,12 +6751,12 @@ func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Location) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Vectors) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Vectors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6512,33 +6768,22 @@ func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Ips) > 0 { - for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ips[iNdEx]) - copy(dAtA[i:], m.Ips[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.Ips[iNdEx]))) + if len(m.Vectors) > 0 { + for iNdEx := len(m.Vectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Vectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa } } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarint(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6551,12 +6796,12 @@ func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamLocation) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6580,15 +6825,15 @@ func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_StreamLocation_Location) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Vector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Location != nil { - size, err := m.Location.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6599,12 +6844,12 @@ func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (in } return len(dAtA) - i, nil } -func (m *Object_StreamLocation_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := interface{}(m.Status).(interface { @@ -6630,7 +6875,7 @@ func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { +func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6643,12 +6888,12 @@ func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Locations) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_ReshapeVector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6660,22 +6905,38 @@ func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Locations) > 0 { - for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Locations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Shape) > 0 { + var pksize2 int + for _, num := range m.Shape { + pksize2 += sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range m.Shape { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + dAtA[j1] = uint8(num) + j1++ } + i = encodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x12 + } + if len(m.Object) > 0 { + i -= len(m.Object) + copy(dAtA[i:], m.Object) + i = encodeVarint(dAtA, i, uint64(len(m.Object))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6688,12 +6949,12 @@ func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6705,10 +6966,24 @@ func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Object) > 0 { + i -= len(m.Object) + copy(dAtA[i:], m.Object) + i = encodeVarint(dAtA, i, uint64(len(m.Object))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6721,12 +6996,12 @@ func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List_Response) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6750,15 +7025,15 @@ func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_List_Response_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if m.Blob != nil { + size, err := m.Blob.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6769,12 +7044,12 @@ func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Object_List_Response_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := interface{}(m.Status).(interface { @@ -6800,7 +7075,7 @@ func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Object_List) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6813,12 +7088,12 @@ func (m *Object_List) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Location) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6830,10 +7105,33 @@ func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Ips) > 0 { + for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ips[iNdEx]) + copy(dAtA[i:], m.Ips[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Ips[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarint(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Object) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6846,12 +7144,12 @@ func (m *Object) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6863,48 +7161,114 @@ func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if vtmsg, ok := m.Payload.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } return len(dAtA) - i, nil } -func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } +func (m *Object_StreamLocation_Location) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Control_CreateIndexRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Location != nil { + size, err := m.Location.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *Object_StreamLocation_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } +func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - _ = i + if m.Status != nil { + if vtmsg, ok := interface{}(m.Status).(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + } else { + encoded, err := proto.Marshal(m.Status) + if err != nil { + return 0, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = encodeVarint(dAtA, i, uint64(len(encoded))) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_Locations) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.PoolSize != 0 { - i = encodeVarint(dAtA, i, uint64(m.PoolSize)) - i-- - dAtA[i] = 0x8 + if len(m.Locations) > 0 { + for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Locations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Control) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6917,12 +7281,12 @@ func (m *Control) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Control) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6937,7 +7301,7 @@ func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6950,12 +7314,12 @@ func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Discoverer_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List_Response) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6967,31 +7331,69 @@ func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Node) > 0 { - i -= len(m.Node) - copy(dAtA[i:], m.Node) - i = encodeVarint(dAtA, i, uint64(len(m.Node))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarint(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 + if vtmsg, ok := m.Payload.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + return len(dAtA) - i, nil +} + +func (m *Object_List_Response_Vector) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } +func (m *Object_List_Response_Status) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} -func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Status != nil { + if vtmsg, ok := interface{}(m.Status).(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + } else { + encoded, err := proto.Marshal(m.Status) + if err != nil { + return 0, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = encodeVarint(dAtA, i, uint64(len(encoded))) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Object_List) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7004,12 +7406,12 @@ func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Discoverer) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7024,7 +7426,7 @@ func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { +func (m *Object) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7037,12 +7439,12 @@ func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_Count) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7054,40 +7456,10 @@ func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Saving { - i-- - if m.Saving { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.Indexing { - i-- - if m.Indexing { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.Uncommitted != 0 { - i = encodeVarint(dAtA, i, uint64(m.Uncommitted)) - i-- - dAtA[i] = 0x10 - } - if m.Stored != 0 { - i = encodeVarint(dAtA, i, uint64(m.Stored)) - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } -func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { +func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7100,12 +7472,12 @@ func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_UUID_Committed) MarshalToVT(dAtA []byte) (int, error) { +func (m *Control_CreateIndexRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7117,17 +7489,15 @@ func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, er i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarint(dAtA, i, uint64(len(m.Uuid))) + if m.PoolSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.PoolSize)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Info_Index_UUID_Uncommitted) MarshalVT() (dAtA []byte, err error) { +func (m *Control) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7140,12 +7510,12 @@ func (m *Info_Index_UUID_Uncommitted) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_UUID_Uncommitted) MarshalToVT(dAtA []byte) (int, error) { +func (m *Control) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_UUID_Uncommitted) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7157,17 +7527,10 @@ func (m *Info_Index_UUID_Uncommitted) MarshalToSizedBufferVT(dAtA []byte) (int, i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarint(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Info_Index_UUID) MarshalVT() (dAtA []byte, err error) { +func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7180,12 +7543,12 @@ func (m *Info_Index_UUID) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_UUID) MarshalToVT(dAtA []byte) (int, error) { +func (m *Discoverer_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_UUID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7197,10 +7560,31 @@ func (m *Info_Index_UUID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Node) > 0 { + i -= len(m.Node) + copy(dAtA[i:], m.Node) + i = encodeVarint(dAtA, i, uint64(len(m.Node))) + i-- + dAtA[i] = 0x1a + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarint(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Info_Index) MarshalVT() (dAtA []byte, err error) { +func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7213,12 +7597,12 @@ func (m *Info_Index) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index) MarshalToVT(dAtA []byte) (int, error) { +func (m *Discoverer) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7233,7 +7617,7 @@ func (m *Info_Index) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Info_Pod) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7246,12 +7630,12 @@ func (m *Info_Pod) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Pod) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index_Count) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Pod) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7263,7 +7647,216 @@ func (m *Info_Pod) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Node != nil { + if m.Saving { + i-- + if m.Saving { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Indexing { + i-- + if m.Indexing { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Uncommitted != 0 { + i = encodeVarint(dAtA, i, uint64(m.Uncommitted)) + i-- + dAtA[i] = 0x10 + } + if m.Stored != 0 { + i = encodeVarint(dAtA, i, uint64(m.Stored)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Index_UUID_Committed) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarint(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Info_Index_UUID_Uncommitted) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Index_UUID_Uncommitted) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_UUID_Uncommitted) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarint(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Info_Index_UUID) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Index_UUID) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_UUID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *Info_Index) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Index) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *Info_Pod) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Pod) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Pod) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Node != nil { size, err := m.Node.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err @@ -7846,13 +8439,17 @@ func (m *Search_Config) SizeVT() (n int) { if m.Timeout != 0 { n += 1 + sov(uint64(m.Timeout)) } - if m.IngressFilters != nil { - l = m.IngressFilters.SizeVT() - n += 1 + l + sov(uint64(l)) + if len(m.IngressFilters) > 0 { + for _, e := range m.IngressFilters { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } } - if m.EgressFilters != nil { - l = m.EgressFilters.SizeVT() - n += 1 + l + sov(uint64(l)) + if len(m.EgressFilters) > 0 { + for _, e := range m.EgressFilters { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } } if m.MinNum != 0 { n += 1 + sov(uint64(m.MinNum)) @@ -7970,58 +8567,66 @@ func (m *Filter_Target) SizeVT() (n int) { return n } -func (m *Filter_Config) SizeVT() (n int) { +func (m *Filter_Query) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Targets) > 0 { - for _, e := range m.Targets { - l = e.SizeVT() - n += 1 + l + sov(uint64(l)) - } + l = len(m.Query) + if l > 0 { + n += 1 + l + sov(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Filter) SizeVT() (n int) { +func (m *Filter_Config) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.Target != nil { + l = m.Target.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Query != nil { + l = m.Query.SizeVT() + n += 1 + l + sov(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *Insert_Request) SizeVT() (n int) { +func (m *Filter_DistanceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Vector != nil { - l = m.Vector.SizeVT() - n += 1 + l + sov(uint64(l)) + if len(m.Distance) > 0 { + for _, e := range m.Distance { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } } - if m.Config != nil { - l = m.Config.SizeVT() + if m.Query != nil { + l = m.Query.SizeVT() n += 1 + l + sov(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Insert_MultiRequest) SizeVT() (n int) { +func (m *Filter_DistanceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Requests) > 0 { - for _, e := range m.Requests { + if len(m.Distance) > 0 { + for _, e := range m.Distance { l = e.SizeVT() n += 1 + l + sov(uint64(l)) } @@ -8030,36 +8635,112 @@ func (m *Insert_MultiRequest) SizeVT() (n int) { return n } -func (m *Insert_ObjectRequest) SizeVT() (n int) { +func (m *Filter_VectorRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Object != nil { - l = m.Object.SizeVT() - n += 1 + l + sov(uint64(l)) - } - if m.Config != nil { - l = m.Config.SizeVT() + if m.Vector != nil { + l = m.Vector.SizeVT() n += 1 + l + sov(uint64(l)) } - if m.Vectorizer != nil { - l = m.Vectorizer.SizeVT() + if m.Query != nil { + l = m.Query.SizeVT() n += 1 + l + sov(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Insert_MultiObjectRequest) SizeVT() (n int) { +func (m *Filter_VectorResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Requests) > 0 { - for _, e := range m.Requests { + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *Insert_Request) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Config != nil { + l = m.Config.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Insert_MultiRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { + for _, e := range m.Requests { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Insert_ObjectRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Object != nil { + l = m.Object.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Config != nil { + l = m.Config.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Vectorizer != nil { + l = m.Vectorizer.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Insert_MultiObjectRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { + for _, e := range m.Requests { l = e.SizeVT() n += 1 + l + sov(uint64(l)) } @@ -8077,9 +8758,11 @@ func (m *Insert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + sov(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + sov(uint64(m.Timestamp)) @@ -8179,9 +8862,11 @@ func (m *Update_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + sov(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + sov(uint64(m.Timestamp)) @@ -8284,9 +8969,11 @@ func (m *Upsert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + sov(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + sov(uint64(m.Timestamp)) @@ -8410,9 +9097,11 @@ func (m *Object_VectorRequest) SizeVT() (n int) { l = m.Id.SizeVT() n += 1 + l + sov(uint64(l)) } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + sov(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } } n += len(m.unknownFields) return n @@ -9956,10 +10645,8 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.IngressFilters == nil { - m.IngressFilters = &Filter_Config{} - } - if err := m.IngressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.IngressFilters = append(m.IngressFilters, &Filter_Config{}) + if err := m.IngressFilters[len(m.IngressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9967,7 +10654,532 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EgressFilters", wireType) } - var msglen int + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EgressFilters = append(m.EgressFilters, &Filter_Config{}) + if err := m.EgressFilters[len(m.EgressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinNum", wireType) + } + m.MinNum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinNum |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregationAlgorithm", wireType) + } + m.AggregationAlgorithm = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AggregationAlgorithm |= Search_AggregationAlgorithm(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_Response) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = append(m.Results, &Object_Distance{}) + if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Responses = append(m.Responses, &Search_Response{}) + if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { + if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &Search_Response{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Search_StreamResponse_Response{Response: v} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { + if unmarshal, ok := interface{}(oneof.Status).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { + return err + } + } + } else { + v := &status.Status{} + if unmarshal, ok := interface{}(v).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return err + } + } + m.Payload = &Search_StreamResponse_Status{Status: v} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -9977,52 +11189,29 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.EgressFilters == nil { - m.EgressFilters = &Filter_Config{} - } - if err := m.EgressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Host = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinNum", wireType) - } - m.MinNum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinNum |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregationAlgorithm", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) } - m.AggregationAlgorithm = 0 + m.Port = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -10032,7 +11221,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AggregationAlgorithm |= Search_AggregationAlgorithm(b&0x7F) << shift + m.Port |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -10059,7 +11248,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_Response) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Query) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10082,15 +11271,15 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Query: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Query: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10118,41 +11307,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = append(m.Results, &Object_Distance{}) - if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Query = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -10176,7 +11331,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10199,15 +11354,15 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10234,8 +11389,46 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Responses = append(m.Responses, &Search_Response{}) - if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Target == nil { + m.Target = &Filter_Target{} + } + if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10261,7 +11454,7 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10284,15 +11477,15 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10319,21 +11512,14 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { - if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - v := &Search_Response{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Payload = &Search_StreamResponse_Response{Response: v} + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10360,32 +11546,11 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { - if unmarshal, ok := interface{}(oneof.Status).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { - return err - } - } - } else { - v := &status.Status{} - if unmarshal, ok := interface{}(v).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return err - } - } - m.Payload = &Search_StreamResponse_Status{Status: v} + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -10410,7 +11575,7 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10433,12 +11598,46 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skip(dAtA[iNdEx:]) @@ -10461,7 +11660,7 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10484,17 +11683,17 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -10504,29 +11703,33 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Host = string(dAtA[iNdEx:postIndex]) + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } - m.Port = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -10536,11 +11739,28 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Port |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skip(dAtA[iNdEx:]) @@ -10563,7 +11783,7 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10586,15 +11806,15 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10621,8 +11841,10 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Targets = append(m.Targets, &Filter_Target{}) - if err := m.Targets[len(m.Targets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11229,10 +12451,8 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11858,10 +13078,8 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12507,10 +13725,8 @@ func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13243,10 +14459,8 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/apis/proto/v1/filter/egress/egress_filter.proto b/apis/proto/v1/filter/egress/egress_filter.proto index 72ab957d4c..38572e7886 100644 --- a/apis/proto/v1/filter/egress/egress_filter.proto +++ b/apis/proto/v1/filter/egress/egress_filter.proto @@ -29,7 +29,8 @@ option java_package = "org.vdaas.vald.api.v1.filter.egress"; // Represent the egress filter service. service Filter { // Represent the RPC to filter the distance. - rpc FilterDistance(payload.v1.Object.Distance) returns (payload.v1.Object.Distance) { + rpc FilterDistance(payload.v1.Filter.DistanceRequest) + returns (payload.v1.Filter.DistanceResponse) { option (google.api.http) = { post: "/filter/egress/distance" body: "*" @@ -37,7 +38,8 @@ service Filter { } // Represent the RPC to filter the vector. - rpc FilterVector(payload.v1.Object.Vector) returns (payload.v1.Object.Vector) { + rpc FilterVector(payload.v1.Filter.VectorRequest) + returns (payload.v1.Filter.VectorResponse) { option (google.api.http) = { post: "/filter/egress/vector" body: "*" diff --git a/apis/proto/v1/payload/payload.proto b/apis/proto/v1/payload/payload.proto index a18f1860b5..a01a528e20 100644 --- a/apis/proto/v1/payload/payload.proto +++ b/apis/proto/v1/payload/payload.proto @@ -85,9 +85,9 @@ message Search { // Search timeout in nanoseconds. int64 timeout = 5; // Ingress filter configurations. - Filter.Config ingress_filters = 6; + repeated Filter.Config ingress_filters = 6; // Egress filter configurations. - Filter.Config egress_filters = 7; + repeated Filter.Config egress_filters = 7; // Minimum number of result to be returned. uint32 min_num = 8 [(validate.rules).uint32.gte = 0]; // Aggregation Algorithm @@ -138,10 +138,46 @@ message Filter { uint32 port = 2; } + // Represent the filter query. + message Query { + // The raw query string. + string query = 1; + } + // Represent filter configuration. message Config { // Represent the filter target configuration. - repeated Target targets = 1; + Target target = 1; + // The target query. + Query query = 2; + } + + // Represent the ID and distance pair. + message DistanceRequest { + // Distance + repeated Object.Distance distance = 1; + // Query + Query query = 2; + } + + // Represent the ID and distance pair. + message DistanceResponse { + // Distance + repeated Object.Distance distance = 1; + } + + // Represent the ID and vector pair. + message VectorRequest { + // Vector + Object.Vector vector = 1; + // Query + Query query = 2; + } + + // Represent the ID and vector pair. + message VectorResponse { + // Distance + Object.Vector vector = 1; } } @@ -182,7 +218,7 @@ message Insert { // A flag to skip exist check during insert operation. bool skip_strict_exist_check = 1; // Filter configurations. - Filter.Config filters = 2; + repeated Filter.Config filters = 2; // Insert timestamp. int64 timestamp = 3; } @@ -225,7 +261,7 @@ message Update { // A flag to skip exist check during update operation. bool skip_strict_exist_check = 1; // Filter configuration. - Filter.Config filters = 2; + repeated Filter.Config filters = 2; // Update timestamp. int64 timestamp = 3; // A flag to disable balanced update (split remove -> insert operation) @@ -271,7 +307,7 @@ message Upsert { // A flag to skip exist check during upsert operation. bool skip_strict_exist_check = 1; // Filter configuration. - Filter.Config filters = 2; + repeated Filter.Config filters = 2; // Upsert timestamp. int64 timestamp = 3; // A flag to disable balanced update (split remove -> insert operation) @@ -334,7 +370,7 @@ message Object { // The vector ID to be fetched. ID id = 1 [(validate.rules).repeated.min_items = 2]; // Filter configurations. - Filter.Config filters = 2; + repeated Filter.Config filters = 2; } // Represent the ID and distance pair. diff --git a/apis/swagger/v1/filter/egress/apis/proto/v1/filter/egress/egress_filter.swagger.json b/apis/swagger/v1/filter/egress/apis/proto/v1/filter/egress/egress_filter.swagger.json index b1bd9992a6..235a8366ff 100644 --- a/apis/swagger/v1/filter/egress/apis/proto/v1/filter/egress/egress_filter.swagger.json +++ b/apis/swagger/v1/filter/egress/apis/proto/v1/filter/egress/egress_filter.swagger.json @@ -15,7 +15,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/ObjectDistance" + "$ref": "#/definitions/FilterDistanceResponse" } }, "default": { @@ -31,7 +31,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ObjectDistance" + "$ref": "#/definitions/FilterDistanceRequest" } } ], @@ -46,7 +46,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/ObjectVector" + "$ref": "#/definitions/FilterVectorResponse" } }, "default": { @@ -62,7 +62,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ObjectVector" + "$ref": "#/definitions/v1FilterVectorRequest" } } ], @@ -71,6 +71,56 @@ } }, "definitions": { + "FilterDistanceRequest": { + "type": "object", + "properties": { + "distance": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectDistance" + }, + "title": "Distance" + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "title": "Query" + } + }, + "description": "Represent the ID and distance pair." + }, + "FilterDistanceResponse": { + "type": "object", + "properties": { + "distance": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectDistance" + }, + "title": "Distance" + } + }, + "description": "Represent the ID and distance pair." + }, + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, + "FilterVectorResponse": { + "type": "object", + "properties": { + "vector": { + "$ref": "#/definitions/ObjectVector", + "title": "Distance" + } + }, + "description": "Represent the ID and vector pair." + }, "ObjectDistance": { "type": "object", "properties": { @@ -144,6 +194,20 @@ } } } + }, + "v1FilterVectorRequest": { + "type": "object", + "properties": { + "vector": { + "$ref": "#/definitions/ObjectVector", + "title": "Vector" + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "title": "Query" + } + }, + "description": "Represent the ID and vector pair." } } } diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/filter.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/filter.swagger.json index ad756bf4e7..6dbd8b35f9 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/filter.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/filter.swagger.json @@ -257,6 +257,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -388,11 +398,11 @@ "code": { "type": "integer", "format": "int32", - "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]." + "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code]." }, "message": { "type": "string", - "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client." + "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client." }, "details": { "type": "array", @@ -453,12 +463,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -471,7 +482,10 @@ "description": "A flag to skip exist check during insert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configurations." }, "timestamp": { @@ -562,11 +576,17 @@ "description": "Search timeout in nanoseconds." }, "ingressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Ingress filter configurations." }, "egressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Egress filter configurations." }, "minNum": { @@ -638,7 +658,10 @@ "description": "A flag to skip exist check during update operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { @@ -692,7 +715,10 @@ "description": "A flag to skip exist check during upsert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/insert.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/insert.swagger.json index 56456efacb..0ed17e2559 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/insert.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/insert.swagger.json @@ -71,6 +71,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -156,11 +166,11 @@ "code": { "type": "integer", "format": "int32", - "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]." + "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code]." }, "message": { "type": "string", - "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client." + "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client." }, "details": { "type": "array", @@ -221,12 +231,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -239,7 +250,10 @@ "description": "A flag to skip exist check during insert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configurations." }, "timestamp": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/object.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/object.swagger.json index 389fb067f1..04a44a2ee2 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/object.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/object.swagger.json @@ -97,6 +97,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -192,11 +202,11 @@ "code": { "type": "integer", "format": "int32", - "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]." + "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code]." }, "message": { "type": "string", - "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client." + "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client." }, "details": { "type": "array", @@ -257,12 +267,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/remove.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/remove.swagger.json index f1c6892413..350b138215 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/remove.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/remove.swagger.json @@ -177,11 +177,11 @@ "code": { "type": "integer", "format": "int32", - "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]." + "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code]." }, "message": { "type": "string", - "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client." + "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client." }, "details": { "type": "array", diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/search.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/search.swagger.json index 14c6982996..942a0f90ed 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/search.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/search.swagger.json @@ -257,6 +257,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -374,11 +384,11 @@ "code": { "type": "integer", "format": "int32", - "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]." + "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code]." }, "message": { "type": "string", - "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client." + "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client." }, "details": { "type": "array", @@ -439,12 +449,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -477,11 +488,17 @@ "description": "Search timeout in nanoseconds." }, "ingressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Ingress filter configurations." }, "egressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Egress filter configurations." }, "minNum": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/update.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/update.swagger.json index 0301c85566..24f5308a0a 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/update.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/update.swagger.json @@ -71,6 +71,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -156,11 +166,11 @@ "code": { "type": "integer", "format": "int32", - "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]." + "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code]." }, "message": { "type": "string", - "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client." + "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client." }, "details": { "type": "array", @@ -221,12 +231,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -260,7 +271,10 @@ "description": "A flag to skip exist check during update operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { diff --git a/apis/swagger/v1/vald/apis/proto/v1/vald/upsert.swagger.json b/apis/swagger/v1/vald/apis/proto/v1/vald/upsert.swagger.json index 7e1e5c24cd..f77b6ff0ef 100644 --- a/apis/swagger/v1/vald/apis/proto/v1/vald/upsert.swagger.json +++ b/apis/swagger/v1/vald/apis/proto/v1/vald/upsert.swagger.json @@ -71,6 +71,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -156,11 +166,11 @@ "code": { "type": "integer", "format": "int32", - "description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]." + "description": "The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code]." }, "message": { "type": "string", - "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client." + "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client." }, "details": { "type": "array", @@ -221,12 +231,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -260,7 +271,10 @@ "description": "A flag to skip exist check during upsert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { diff --git a/dockers/example/client/gateway/filter/egress-filter/server/Dockerfile b/dockers/example/client/gateway/filter/egress-filter/server/Dockerfile new file mode 100644 index 0000000000..c5a0fa6eea --- /dev/null +++ b/dockers/example/client/gateway/filter/egress-filter/server/Dockerfile @@ -0,0 +1,81 @@ +# +# Copyright (C) 2019-2023 vdaas.org vald team +# +# 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 +# +# https://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. +# + +ARG GO_VERSION=latest +ARG DISTROLESS_IMAGE=gcr.io/distroless/static +ARG DISTROLESS_IMAGE_TAG=nonroot +ARG MAINTAINER="vdaas.org vald team " + +FROM golang:${GO_VERSION} AS builder + +ENV GO111MODULE on +ENV LANG en_US.UTF-8 +ENV ORG vdaas +ENV REPO vald +ENV APP_NAME egress-filter +ENV DIR example/client/gateway/filter/${APP_NAME}/server + +# skipcq: DOK-DL3008 +RUN apt-get update && apt-get install -y --no-install-recommends \ + upx \ + git \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +RUN mkdir -p "$GOPATH/src" + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} + +COPY go.mod . +COPY go.sum . + +RUN go mod download + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/example +COPY example . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/internal +COPY internal . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/apis/grpc +COPY apis/grpc . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/pkg +COPY pkg . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/versions +COPY versions . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/Makefile.d +COPY Makefile.d . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} +COPY Makefile . + +RUN make REPO=${ORG} NAME=${REPO} ${DIR}/${APP_NAME} \ + && mv "${DIR}/${APP_NAME}" "/usr/bin/${APP_NAME}" + + +FROM ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG} +LABEL maintainer "${MAINTAINER}" + +ENV APP_NAME egress-filter + +COPY --from=builder /usr/bin/${APP_NAME} /go/bin/${APP_NAME} + +USER nonroot:nonroot + +ENTRYPOINT ["/go/bin/egress-filter"] diff --git a/dockers/example/client/gateway/filter/ingress-filter/server/Dockerfile b/dockers/example/client/gateway/filter/ingress-filter/server/Dockerfile new file mode 100644 index 0000000000..9b4debd877 --- /dev/null +++ b/dockers/example/client/gateway/filter/ingress-filter/server/Dockerfile @@ -0,0 +1,81 @@ +# +# Copyright (C) 2019-2023 vdaas.org vald team +# +# 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 +# +# https://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. +# + +ARG GO_VERSION=latest +ARG DISTROLESS_IMAGE=gcr.io/distroless/static +ARG DISTROLESS_IMAGE_TAG=nonroot +ARG MAINTAINER="vdaas.org vald team " + +FROM golang:${GO_VERSION} AS builder + +ENV GO111MODULE on +ENV LANG en_US.UTF-8 +ENV ORG vdaas +ENV REPO vald +ENV APP_NAME ingress-filter +ENV DIR example/client/gateway/filter/${APP_NAME}/server + +# skipcq: DOK-DL3008 +RUN apt-get update && apt-get install -y --no-install-recommends \ + upx \ + git \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +RUN mkdir -p "$GOPATH/src" + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} + +COPY go.mod . +COPY go.sum . + +RUN go mod download + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/example +COPY example . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/internal +COPY internal . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/apis/grpc +COPY apis/grpc . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/pkg +COPY pkg . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/versions +COPY versions . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/Makefile.d +COPY Makefile.d . + +WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} +COPY Makefile . + +RUN make REPO=${ORG} NAME=${REPO} ${DIR}/${APP_NAME} \ + && mv "${DIR}/${APP_NAME}" "/usr/bin/${APP_NAME}" + + +FROM ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG} +LABEL maintainer "${MAINTAINER}" + +ENV APP_NAME ingress-filter + +COPY --from=builder /usr/bin/${APP_NAME} /go/bin/${APP_NAME} + +USER nonroot:nonroot + +ENTRYPOINT ["/go/bin/ingress-filter"] diff --git a/docs/overview/component/filter-gateway.md b/docs/overview/component/filter-gateway.md index 1561363016..0485283d85 100644 --- a/docs/overview/component/filter-gateway.md +++ b/docs/overview/component/filter-gateway.md @@ -108,12 +108,12 @@ If you want to use this feature, please deploy your own egress filter component, - The scheme of egress filter service ```rpc - // https://github.com/vdaas/vald/blob/main/apis/proto/v1/filter/ingress/egress_filter.proto + // https://github.com/vdaas/vald/blob/main/apis/proto/v1/filter/egress/egress_filter.proto service Filter { // Represent the RPC to filter the distance. - rpc FilterDistance(payload.v1.Object.Distance) - returns (payload.v1.Object.Distance) { + rpc FilterDistance(payload.v1.Filter.DistanceRequest) + returns (payload.v1.Filter.DistanceResponse) { option (google.api.http) = { post : "/filter/egress/distance" body : "*" @@ -121,8 +121,8 @@ If you want to use this feature, please deploy your own egress filter component, } // Represent the RPC to filter the vector. - rpc FilterVector(payload.v1.Object.Vector) - returns (payload.v1.Object.Vector) { + rpc FilterVector(payload.v1.Filter.VectorRequest) + returns (payload.v1.Filter.VectorResponse) { option (google.api.http) = { post : "/filter/egress/vector" body : "*" @@ -131,23 +131,35 @@ If you want to use this feature, please deploy your own egress filter component, } ``` -- The scheme of `payload.v1.Object.Distance` and `payload.v1.Object.Vector` +- The scheme of `payload.v1.Filter.DistanceRequest`, `payload.v1.Filter.DistanceResponse`, `payload.v1.Filter.VectorRequest` and `payload.v1.Filter.VectorResponse` ```rpc // https://github.com/vdaas/vald/blob/main/apis/proto/v1/payload/payload.proto // Represent the ID and distance pair. - message Distance { - // The vector ID. - string id = 1; - // The distance. - float distance = 2; + message DistanceRequest { + // Distance + repeated Object.Distance distance = 1; + // Query + Query query = 2; } - // Represent a vector. - message Vector { - // The vector ID. - string id = 1 [ (validate.rules).string.min_len = 1 ]; - // The vector. - repeated float vector = 2 [ (validate.rules).repeated .min_items = 2 ]; + // Represent the ID and distance pair. + message DistanceResponse { + // Distance + repeated Object.Distance distance = 1; + } + + // Represent the ID and vector pair. + message VectorRequest { + // Vector + Object.Vector vector = 1; + // Query + Query query = 2; + } + + // Represent the ID and vector pair. + message VectorResponse { + // Distance + Object.Vector vector = 1; } ``` diff --git a/docs/user-guides/client-api-config.md b/docs/user-guides/client-api-config.md index 578910b77f..2fb1985544 100644 --- a/docs/user-guides/client-api-config.md +++ b/docs/user-guides/client-api-config.md @@ -16,13 +16,13 @@ It requires the vector, its ID (specific ID for the vector), and optional config ### Configuration ```rpc -// Represent insert configuration. +// Represent insert configurations. message Config { - // Check whether or not the same set of vector and ID is already inserted. + // A flag to skip exist check during insert operation. bool skip_strict_exist_check = 1; - // Configuration for filters if your Vald cluster uses filters. - Filter.Config filters = 2; - // The timestamp when the vector was inserted. + // Filter configurations. + repeated Filter.Config filters = 2; + // Insert timestamp. int64 timestamp = 3; } ``` @@ -66,12 +66,13 @@ func main() { // Insert configuration (optional) Config: &payload.Insert_Config{ SkipStrictExistCheck: false, - Filters: &payload.Filter_Config{ - Targets: []*payload.Filter_Target{ - { + Filters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ Host: "vald-ingress-filter", Port: 8081, }, + Query: &payload.Filter_Query{}, }, }, Timestamp: time.Now().UnixMilli(), @@ -114,7 +115,9 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - repeated Target targets = 1; + Target target = 1; + // The target query. + Query query = 2; } } ``` @@ -132,14 +135,16 @@ It requires the new vector, its ID (the target ID already indexed), and optional ### Configuration ```rpc -// Represent update configuration. +// Represent the update configuration. message Config { - // Check whether or not the same set of vector and ID is already inserted. + // A flag to skip exist check during update operation. bool skip_strict_exist_check = 1; - // Configuration for filters if your Vald cluster uses filters. - Filter.Config filters = 2; - // The timestamp when the vector was inserted. + // Filter configuration. + repeated Filter.Config filters = 2; + // Update timestamp. int64 timestamp = 3; + // A flag to disable balanced update (split remove -> insert operation) during update operation. + bool disable_balanced_update = 4; } ``` @@ -182,12 +187,13 @@ func example() { // Update configuration (optional) Config: &payload.Update_Config{ SkipStrictExistCheck: false, - Filters: &payload.Filter_Config{ - Targets: []*payload.Filter_Target{ - { + Filters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ Host: "vald-ingress-filter", Port: 8081, }, + Query: &payload.Filter_Query{}, }, }, Timestamp: time.Now().UnixMilli(), @@ -238,7 +244,9 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - repeated Target targets = 1; + Target target = 1; + // The target query. + Query query = 2; } } ``` @@ -256,14 +264,16 @@ It requires the vector, its ID (specific ID for the vector), and optional config ### Configuration ```rpc -// Represent upsert configuration. +// Represent the upsert configuration. message Config { - // Check whether or not the same set of vector and ID is already inserted. + // A flag to skip exist check during upsert operation. bool skip_strict_exist_check = 1; - // Configuration for filters if your Vald cluster uses filters. - Filter.Config filters = 2; - // The timestamp when the vector was inserted. + // Filter configuration. + repeated Filter.Config filters = 2; + // Upsert timestamp. int64 timestamp = 3; + // A flag to disable balanced update (split remove -> insert operation) during update operation. + bool disable_balanced_update = 4; } ``` @@ -305,12 +315,13 @@ func example() { // Upsert configuration (optional) Config: &payload.Upsert_Config{ SkipStrictExistCheck: false, - Filters: &payload.Filter_Config{ - Targets: []*payload.Filter_Target{ - { + Filters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ Host: "vald-ingress-filter", Port: 8081, }, + Query: &payload.Filter_Query{}, }, }, Timestamp: time.Now().UnixMilli(), @@ -361,7 +372,9 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - repeated Target targets = 1; + Target target = 1; + // The target query. + Query query = 2; } } ``` @@ -412,7 +425,7 @@ For more details, please refer to [the Search API document](../api/search.md). message Config { // Unique request ID. string request_id = 1; - // Maximum number of results to be returned. + // Maximum number of result to be returned. uint32 num = 2 [ (validate.rules).uint32.gte = 1 ]; // Search radius. float radius = 3; @@ -421,10 +434,10 @@ message Config { // Search timeout in nanoseconds. int64 timeout = 5; // Ingress filter configurations. - Filter.Config ingress_filters = 6; + repeated Filter.Config ingress_filters = 6; // Egress filter configurations. - Filter.Config egress_filters = 7; - // Minimum number of results to be returned. + repeated Filter.Config egress_filters = 7; + // Minimum number of result to be returned. uint32 min_num = 8 [ (validate.rules).uint32.gte = 0 ]; // Aggregation Algorithm AggregationAlgorithm aggregation_algorithm = 9; @@ -495,20 +508,22 @@ func main() { Epsilon: 0.1, // Search timeout setting. Timeout: 100000000, - IngressFilters: &payload.Filter_Config{ - Targets: []*payload.Filter_Target{ - { + IngressFilters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ Host: "vald-ingress-filter", Port: 8081, }, + Query: &payload.Filter_Query{}, }, }, - EgressFilters: &payload.Filter_Config{ - Targets: []*payload.Filter_Target{ - { + EgressFilters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ Host: "vald-egress-filter", Port: 8081, }, + Query: &payload.Filter_Query{}, }, }, AggregationAlgorithm: payload.Search_PairingHeap, @@ -579,7 +594,9 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - repeated Target targets = 1; + Target target = 1; + // The target query. + Query query = 2; } } ``` @@ -604,7 +621,9 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - repeated Target targets = 1; + Target target = 1; + // The target query. + Query query = 2; } } ``` @@ -625,11 +644,11 @@ For more details, please refer to [the Remove API document](../api/remove.md). ### Configuration ```rpc -// Represent remove configuration. +// Represent the remove configuration. message Config { - // Check whether or not the same set of ID and vector is already inserted. + // A flag to skip exist check during upsert operation. bool skip_strict_exist_check = 1; - // The timestamp when the vector was removed. + // Remove timestamp. int64 timestamp = 3; } ``` diff --git a/docs/user-guides/filtering-configuration.md b/docs/user-guides/filtering-configuration.md index b2d864b093..d01c9b17af 100644 --- a/docs/user-guides/filtering-configuration.md +++ b/docs/user-guides/filtering-configuration.md @@ -72,6 +72,8 @@ Please refer to: - [Vald ONNX Ingress Filter](https://github.com/vdaas/vald-onnx-ingress-filter) - [Vald Tensorflow Ingress Filter](https://github.com/vdaas/vald-tensorflow-ingress-filter) +You can also find other samples [here](../../example/client/gateway/filter). + ## Configuration It is easy to enable the filtering feature. diff --git a/example/client/gateway/filter/README.md b/example/client/gateway/filter/README.md new file mode 100644 index 0000000000..2a9ab39140 --- /dev/null +++ b/example/client/gateway/filter/README.md @@ -0,0 +1,49 @@ +# How to use this example +After launching the k8s cluster, do the following steps at the root directory. + +1. Deploy Vald cluster with filter-gateway +``` +vim example/helm/values.yaml +--- +... +gateway: +... + filter: + enabled: true +... +agent: + ngt: + dimension: 784 + distance_type: l2 +... + +// deploy vald cluster +helm repo add vald https://vald.vdaas.org/charts +helm install vald vald/vald --values example/helm/values.yaml + +// if you don't use the Kubernetes ingress, set the port forward +kubectl port-forward deployment/vald-filter-gateway 8081:8081 +``` + +2. Deploy an ingress filter server and an egress filter server +``` +// prepare for pushing images to your dockerhub +docker login +export YOUR_DOCKERHUB_ID= + +// deploy ingress filter +make docker/build/example/client/gateway/filter/ingress-filter/server +docker push ${YOUR_DOCKERHUB_ID}/vald-ingress-filter:latest +make k8s/example/client/gateway/filter/ingress-filter/server/deploy + +// deploy egress filter +make docker/build/example/client/gateway/filter/egress-filter/server +docker push ${YOUR_DOCKERHUB_ID}/vald-egress-filter:latest +make k8s/example/client/gateway/filter/egress-filter/server/deploy +``` + +3. Run test +``` +// Please change the argument according to your environment. +go run ./example/client/gateway/filter/main.go -addr "localhost:8081" -ingresshost "vald-ingress-filter.default.svc.cluster.local" -ingressport 8082 -egresshost "vald-egress-filter.default.svc.cluster.local" -egressport 8083 +``` \ No newline at end of file diff --git a/example/client/gateway/filter/egress-filter/client/main.go b/example/client/gateway/filter/egress-filter/client/main.go new file mode 100644 index 0000000000..5b243f33c1 --- /dev/null +++ b/example/client/gateway/filter/egress-filter/client/main.go @@ -0,0 +1,105 @@ +// Copyright (C) 2019-2023 vdaas.org vald team +// +// 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 +// +// https://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. +package main + +import ( + "context" + "flag" + + "github.com/kpango/glg" + "github.com/vdaas/vald/apis/grpc/v1/filter/egress" + "github.com/vdaas/vald/apis/grpc/v1/payload" + "github.com/vdaas/vald/internal/net" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" +) + +var ( + client egress.FilterClient + egressServerHost string + egressServerPort uint + dimension uint +) + +func init() { + /** + Ingresshost option specifies grpc server host of your egress filter. Default value is `127.0.0.1`. + Ingressport option specifies grpc server port of your egress filter. Default value is `8083`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ + flag.StringVar(&egressServerHost, "host", "127.0.0.1", "ingress server host") + flag.UintVar(&egressServerPort, "port", 8083, "ingress server port") + flag.UintVar(&dimension, "dimension", 784, "dimension size of vectors") + flag.Parse() +} + +func main() { + glg.Println("start gRPC Client.") + + addr := net.JoinHostPort(egressServerHost, uint16(egressServerPort)) + conn, err := grpc.Dial( + addr, + grpc.WithTransportCredentials(insecure.NewCredentials()), + grpc.WithBlock(), + ) + if err != nil { + glg.Error("Connection failed.") + return + } + defer conn.Close() + + client = egress.NewFilterClient(conn) + + fdr := &payload.Filter_DistanceRequest{ + Distance: []*payload.Object_Distance{ + { + Id: "1_fashion", + Distance: 0.01, + }, + { + Id: "2_food", + Distance: 0.02, + }, + { + Id: "3_fashion", + Distance: 0.03, + }, + { + Id: "4_pet", + Distance: 0.04, + }, + }, + Query: &payload.Filter_Query{ + Query: "category=fashion", + }, + } + res, err := client.FilterDistance(context.Background(), fdr) + if err != nil { + glg.Error(err) + } else { + glg.Info("FilterDistance Distance: ", res.GetDistance()) + } + + r, err := client.FilterVector(context.Background(), &payload.Filter_VectorRequest{ + Vector: &payload.Object_Vector{ + Id: "1", Vector: make([]float32, dimension), + }, + Query: &payload.Filter_Query{}, + }) + if err != nil { + glg.Error(err) + } else { + glg.Info("FilterVector Vector: ", r.GetVector()) + } +} diff --git a/example/client/gateway/filter/egress-filter/server/main.go b/example/client/gateway/filter/egress-filter/server/main.go new file mode 100644 index 0000000000..7a53af0146 --- /dev/null +++ b/example/client/gateway/filter/egress-filter/server/main.go @@ -0,0 +1,120 @@ +// Copyright (C) 2019-2023 vdaas.org vald team +// +// 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 +// +// https://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. +package main + +import ( + "context" + "flag" + "fmt" + "net" + "os" + "os/signal" + "strings" + + "github.com/kpango/glg" + "github.com/vdaas/vald/apis/grpc/v1/filter/egress" + "github.com/vdaas/vald/apis/grpc/v1/payload" + "github.com/vdaas/vald/internal/net/grpc/codes" + "github.com/vdaas/vald/internal/net/grpc/status" + "google.golang.org/grpc" +) + +var ( + egressServerPort uint + dimension uint +) + +func init() { + /** + Port option specifies grpc server port of your egress filter. Default value is `8083`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ + flag.UintVar(&egressServerPort, "port", 8083, "server port") + flag.UintVar(&dimension, "dimension", 784, "dimension size of vectors") + flag.Parse() +} + +func getSplitValue(str string, sep string, pos uint) (string, bool) { + ss := strings.Split(str, sep) + if len(ss) == int(pos+1) { + return ss[pos], true + } + + return "", false +} + +type myEgressServer struct { + egress.UnimplementedFilterServer +} + +func (s *myEgressServer) FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error) { + // Write your own logic + qCategory, ok := getSplitValue(in.GetQuery().GetQuery(), "=", 1) + if !ok { + return &payload.Filter_DistanceResponse{ + Distance: in.GetDistance(), + }, nil + } + + filteredDis := []*payload.Object_Distance{} + for _, d := range in.GetDistance() { + iCategory, ok := getSplitValue(d.GetId(), "_", 1) + if !ok { + return &payload.Filter_DistanceResponse{ + Distance: in.GetDistance(), + }, nil + } + + glg.Infof("qCategory: %v, iCategory: %v", qCategory, iCategory) + if qCategory == iCategory { + filteredDis = append(filteredDis, d) + } + } + + if len(filteredDis) == 0 { + return nil, status.Error(codes.NotFound, "FilterDistance results not found.") + } + + return &payload.Filter_DistanceResponse{ + Distance: filteredDis, + }, nil +} + +func (s *myEgressServer) FilterVector(ctx context.Context, in *payload.Filter_VectorRequest) (*payload.Filter_VectorResponse, error) { + // Write your own logic + return &payload.Filter_VectorResponse{ + Vector: in.GetVector(), + }, nil +} + +func main() { + listener, err := net.Listen("tcp", fmt.Sprintf(":%d", egressServerPort)) + if err != nil { + panic(err) + } + + s := grpc.NewServer() + egress.RegisterFilterServer(s, &myEgressServer{}) + + go func() { + glg.Infof("start gRPC server port: %v", egressServerPort) + s.Serve(listener) + }() + + quit := make(chan os.Signal, 1) + signal.Notify(quit, os.Interrupt) + <-quit + glg.Infof("stopping gRPC server...") + s.GracefulStop() +} diff --git a/example/client/gateway/filter/ingress-filter/client/main.go b/example/client/gateway/filter/ingress-filter/client/main.go new file mode 100644 index 0000000000..8769665363 --- /dev/null +++ b/example/client/gateway/filter/ingress-filter/client/main.go @@ -0,0 +1,77 @@ +// Copyright (C) 2019-2023 vdaas.org vald team +// +// 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 +// +// https://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. +package main + +import ( + "context" + "flag" + + "github.com/kpango/glg" + "github.com/vdaas/vald/apis/grpc/v1/filter/ingress" + "github.com/vdaas/vald/apis/grpc/v1/payload" + "github.com/vdaas/vald/internal/net" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" +) + +var ( + client ingress.FilterClient + ingressServerHost string + ingressServerPort uint + dimension uint +) + +func init() { + /** + Ingresshost option specifies grpc server host of your ingress filter. Default value is `127.0.0.1`. + Ingressport option specifies grpc server port of your ingress filter. Default value is `8082`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ + flag.StringVar(&ingressServerHost, "host", "127.0.0.1", "ingress server host") + flag.UintVar(&ingressServerPort, "port", 8082, "ingress server port") + flag.UintVar(&dimension, "dimension", 784, "dimension size of vectors") + flag.Parse() +} + +func main() { + glg.Println("start gRPC Client.") + + addr := net.JoinHostPort(ingressServerHost, uint16(ingressServerPort)) + conn, err := grpc.Dial( + addr, + grpc.WithTransportCredentials(insecure.NewCredentials()), + grpc.WithBlock(), + ) + if err != nil { + glg.Error("Connection failed.") + return + } + defer conn.Close() + + client = ingress.NewFilterClient(conn) + + res, err := client.GenVector(context.Background(), &payload.Object_Blob{Id: "1", Object: make([]byte, 0)}) + if err != nil { + glg.Error(err) + } else { + glg.Info("GenVector Vector: ", res.GetVector()) + } + + res, err = client.FilterVector(context.Background(), &payload.Object_Vector{Id: "1", Vector: make([]float32, dimension)}) + if err != nil { + glg.Error(err) + } else { + glg.Info("FilterVector Id: ", res.GetId()) + } +} diff --git a/example/client/gateway/filter/ingress-filter/server/main.go b/example/client/gateway/filter/ingress-filter/server/main.go new file mode 100644 index 0000000000..9aa52d9479 --- /dev/null +++ b/example/client/gateway/filter/ingress-filter/server/main.go @@ -0,0 +1,82 @@ +// Copyright (C) 2019-2023 vdaas.org vald team +// +// 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 +// +// https://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. +package main + +import ( + "context" + "flag" + "fmt" + "net" + "os" + "os/signal" + + "github.com/kpango/glg" + "github.com/vdaas/vald/apis/grpc/v1/filter/ingress" + "github.com/vdaas/vald/apis/grpc/v1/payload" + "google.golang.org/grpc" +) + +var ( + ingressServerPort uint + dimension uint +) + +func init() { + /** + Port option specifies grpc server port of your ingress filter. Default value is `8082`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ + flag.UintVar(&ingressServerPort, "port", 8082, "server port") + flag.UintVar(&dimension, "dimension", 784, "dimension size of vectors") + flag.Parse() +} + +type myIngressServer struct { + ingress.UnimplementedFilterServer +} + +func (s *myIngressServer) GenVector(ctx context.Context, in *payload.Object_Blob) (*payload.Object_Vector, error) { + // Write your own logic + vec := make([]float32, dimension) + return &payload.Object_Vector{ + Id: in.GetId(), + Vector: vec, + }, nil +} + +func (s *myIngressServer) FilterVector(ctx context.Context, in *payload.Object_Vector) (*payload.Object_Vector, error) { + // Write your own logic + return in, nil +} + +func main() { + listener, err := net.Listen("tcp", fmt.Sprintf(":%d", ingressServerPort)) + if err != nil { + panic(err) + } + + s := grpc.NewServer() + ingress.RegisterFilterServer(s, &myIngressServer{}) + + go func() { + glg.Infof("start gRPC server port: %v", ingressServerPort) + s.Serve(listener) + }() + + quit := make(chan os.Signal, 1) + signal.Notify(quit, os.Interrupt) + <-quit + glg.Infof("stopping gRPC server...") + s.GracefulStop() +} diff --git a/example/client/gateway/filter/main.go b/example/client/gateway/filter/main.go new file mode 100644 index 0000000000..9c6f8dd7e3 --- /dev/null +++ b/example/client/gateway/filter/main.go @@ -0,0 +1,205 @@ +// Copyright (C) 2019-2023 vdaas.org vald team +// +// 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 +// +// https://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. +package main + +import ( + "context" + "encoding/json" + "flag" + "time" + + "github.com/kpango/glg" + "github.com/vdaas/vald/apis/grpc/v1/payload" + "github.com/vdaas/vald/apis/grpc/v1/vald" + "google.golang.org/grpc" +) + +var ( + grpcServerAddr string + ingressServerHost string + ingressServerPort uint + egressServerHost string + egressServerPort uint + indexingWaitSeconds uint + dimension uint +) + +func init() { + /** + Addr option specifies grpc server address of filter gateway. Default value is `127.0.0.1:8081`. + Ingresshost option specifies grpc server host of your ingress filter. Default value is `127.0.0.1`. + Ingressport option specifies grpc server port of your ingress filter. Default value is `8082`. + Egresshost option specifies grpc server host of your egress filter. Default value is `127.0.0.1`. + Egressport option specifies grpc server port of your egress filter. Default value is `8083`. + Wait option specifies indexing wait time (in seconds). Default value is `240`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ + flag.StringVar(&grpcServerAddr, "addr", "127.0.0.1:8081", "gRPC server address of filter gateway") + flag.StringVar(&ingressServerHost, "ingresshost", "127.0.0.1", "ingress server host") + flag.UintVar(&ingressServerPort, "ingressport", 8082, "ingress server port") + flag.StringVar(&egressServerHost, "egresshost", "127.0.0.1", "egress server host") + flag.UintVar(&egressServerPort, "egressport", 8083, "egress server port") + flag.UintVar(&indexingWaitSeconds, "wait", 240, "indexing wait seconds") + flag.UintVar(&dimension, "dimension", 784, "dimension size of vectors") + flag.Parse() +} + +// Please execute after setting up the server of vald cluster and ingress/egress filter +func main() { + // create a data set for operation confirmation + makeVecFn := func(dim int, value float32) []float32 { + vec := make([]float32, dim) + for i := 0; i < dim; i++ { + vec[i] = value + } + return vec + } + dataset := []struct { + id string + vector []float32 + }{ + { + id: "1_fashion", + vector: makeVecFn(int(dimension), 0.1), + }, + { + id: "2_food", + vector: makeVecFn(int(dimension), 0.2), + }, + { + id: "3_fashion", + vector: makeVecFn(int(dimension), 0.3), + }, + { + id: "4_pet", + vector: makeVecFn(int(dimension), 0.4), + }, + } + query := "category=fashion" + + // connect to the Vald cluster + ctx := context.Background() + conn, err := grpc.DialContext(ctx, grpcServerAddr, grpc.WithInsecure()) + if err != nil { + glg.Error(err) + return + } + + // create a filter client + var object []byte + fclient := vald.NewFilterClient(conn) + + for i := 0; i < len(dataset); i++ { + icfg := &payload.Insert_ObjectRequest{ + // object data to pass to GenVector function of your ingress filter + Object: &payload.Object_Blob{ + Id: dataset[i].id, + Object: object, + }, + // insert config + Config: &payload.Insert_Config{ + SkipStrictExistCheck: false, + // config to call FilterVector function of your ingress filter + Filters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ + Host: ingressServerHost, + Port: uint32(ingressServerPort), + }, + Query: &payload.Filter_Query{}, + }, + }, + }, + // specify vectorizer component location + Vectorizer: &payload.Filter_Target{ + Host: ingressServerHost, + Port: uint32(ingressServerPort), + }, + } + + // send InsertObject request + res, err := fclient.InsertObject(ctx, icfg) + if err != nil { + glg.Error(err) + return + } + + glg.Infof("location: %#v", res.Ips) + } + + // Vald Agent starts indexing automatically after insert. It needs to wait until the indexing is completed before a search action is performed. + wt := time.Duration(indexingWaitSeconds) * time.Second + glg.Infof("Wait %s for indexing to finish", wt) + time.Sleep(wt) + + // create a search client + sclient := vald.NewSearchClient(conn) + + scfg := &payload.Search_Config{ + Num: 10, + Epsilon: 0.1, + Radius: -1, + // config to call DistanceVector function of your egress filter + EgressFilters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ + Host: egressServerHost, + Port: uint32(egressServerPort), + }, + Query: &payload.Filter_Query{ + Query: query, + }, + }, + }, + } + + // send Search request + res, err := sclient.Search(ctx, &payload.Search_Request{ + Vector: dataset[0].vector, + Config: scfg, + }) + if err != nil { + glg.Error(err) + return + } + b, _ := json.MarshalIndent(res.GetResults(), "", " ") + glg.Infof("Results : %s\n\n", string(b)) + + // create an object client + oclient := vald.NewObjectClient(conn) + + vreq := &payload.Object_VectorRequest{ + Id: &payload.Object_ID{Id: dataset[0].id}, + // config to call FilterVector function of your egress filter + Filters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ + Host: egressServerHost, + Port: uint32(egressServerPort), + }, + Query: &payload.Filter_Query{}, + }, + }, + } + + // send GetObject request + r, err := oclient.GetObject(ctx, vreq) + if err != nil { + glg.Error(err) + return + } + + b, _ = json.Marshal(r.GetVector()) + glg.Infof("Results : %s\n", string(b)) +} diff --git a/internal/client/v1/client/filter/egress/client.go b/internal/client/v1/client/filter/egress/client.go index 5e4105ef8a..a3c9032102 100644 --- a/internal/client/v1/client/filter/egress/client.go +++ b/internal/client/v1/client/filter/egress/client.go @@ -130,7 +130,7 @@ func (c *client) Target(ctx context.Context, targets ...string) (egress.FilterCl }, nil } -func (c *client) FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (res *payload.Object_Distance, err error) { +func (c *client) FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption) (res *payload.Filter_DistanceResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterDistance") defer func() { if span != nil { @@ -150,7 +150,7 @@ func (c *client) FilterDistance(ctx context.Context, in *payload.Object_Distance return res, nil } -func (s *specificAddrClient) FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (res *payload.Object_Distance, err error) { +func (s *specificAddrClient) FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption) (res *payload.Filter_DistanceResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterDistance/"+s.addr) defer func() { if span != nil { @@ -165,7 +165,7 @@ func (s *specificAddrClient) FilterDistance(ctx context.Context, in *payload.Obj if err != nil { return nil, err } - in = res + in.Distance = res.GetDistance() return in, nil }) if err != nil { @@ -174,7 +174,7 @@ func (s *specificAddrClient) FilterDistance(ctx context.Context, in *payload.Obj return res, nil } -func (m *multipleAddrsClient) FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (res *payload.Object_Distance, err error) { +func (m *multipleAddrsClient) FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption) (res *payload.Filter_DistanceResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterDistance/["+strings.Join(m.addrs, ",")+"]") defer func() { if span != nil { @@ -189,7 +189,7 @@ func (m *multipleAddrsClient) FilterDistance(ctx context.Context, in *payload.Ob if err != nil { return err } - in = res + in.Distance = res.GetDistance() return nil }) if err != nil { @@ -198,7 +198,7 @@ func (m *multipleAddrsClient) FilterDistance(ctx context.Context, in *payload.Ob return res, nil } -func (c *client) FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (res *payload.Object_Vector, err error) { +func (c *client) FilterVector(ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption) (res *payload.Filter_VectorResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterVector") defer func() { if span != nil { @@ -218,7 +218,7 @@ func (c *client) FilterVector(ctx context.Context, in *payload.Object_Vector, op return res, nil } -func (s *specificAddrClient) FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (res *payload.Object_Vector, err error) { +func (s *specificAddrClient) FilterVector(ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption) (res *payload.Filter_VectorResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterVector/"+s.addr) defer func() { if span != nil { @@ -233,7 +233,7 @@ func (s *specificAddrClient) FilterVector(ctx context.Context, in *payload.Objec if err != nil { return nil, err } - in = res + in.Vector = res.GetVector() return in, nil }) if err != nil { @@ -242,7 +242,7 @@ func (s *specificAddrClient) FilterVector(ctx context.Context, in *payload.Objec return res, nil } -func (m *multipleAddrsClient) FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (res *payload.Object_Vector, err error) { +func (m *multipleAddrsClient) FilterVector(ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption) (res *payload.Filter_VectorResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterVector/["+strings.Join(m.addrs, ",")+"]") defer func() { if span != nil { @@ -257,7 +257,7 @@ func (m *multipleAddrsClient) FilterVector(ctx context.Context, in *payload.Obje if err != nil { return err } - in = res + in.Vector = res.GetVector() return nil }) if err != nil { diff --git a/internal/config/filter.go b/internal/config/filter.go index 2f11fdb5a5..9243c031b3 100644 --- a/internal/config/filter.go +++ b/internal/config/filter.go @@ -19,9 +19,9 @@ package config // EgressFilter represents the EgressFilter configuration. type EgressFilter struct { - Client *GRPCClient `json:"client,omitempty" yaml:"client"` - DistanceFilters []string `json:"distance_filters,omitempty" yaml:"distance_filters"` - ObjectFilters []string `json:"object_filters,omitempty" yaml:"object_filters"` + Client *GRPCClient `json:"client,omitempty" yaml:"client"` + DistanceFilters []DistanceFilterConfig `json:"distance_filters,omitempty" yaml:"distance_filters"` + ObjectFilters []ObjectFilterConfig `json:"object_filters,omitempty" yaml:"object_filters"` } // IngressFilter represents the IngressFilter configuration. @@ -34,16 +34,28 @@ type IngressFilter struct { UpsertFilters []string `json:"upsert_filters,omitempty" yaml:"upsert_filters"` } +// DistanceFilterConfig represents the DistanceFilter configuration. +type DistanceFilterConfig struct { + Addr string `json:"addr,omitempty" yaml:"addr"` + Query string `json:"query,omitempty" yaml:"query"` +} + +// ObjectFilterConfig represents the ObjectFilter configuration. +type ObjectFilterConfig struct { + Addr string `json:"addr,omitempty" yaml:"addr"` + Query string `json:"query,omitempty" yaml:"query"` +} + // Bind binds the actual data from the EgressFilter receiver field. func (e *EgressFilter) Bind() *EgressFilter { if e.Client != nil { e.Client.Bind() } - if e.DistanceFilters != nil { - e.DistanceFilters = GetActualValues(e.DistanceFilters) + for _, df := range e.DistanceFilters { + df.Bind() } - if e.ObjectFilters != nil { - e.ObjectFilters = GetActualValues(e.ObjectFilters) + for _, of := range e.ObjectFilters { + of.Bind() } return e } @@ -70,3 +82,17 @@ func (i *IngressFilter) Bind() *IngressFilter { } return i } + +// Bind binds the actual data from the DistanceFilterConfig receiver field. +func (c *DistanceFilterConfig) Bind() *DistanceFilterConfig { + c.Addr = GetActualValue(c.Addr) + c.Query = GetActualValue(c.Query) + return c +} + +// Bind binds the actual data from the ObjectFilterConfig receiver field. +func (c *ObjectFilterConfig) Bind() *ObjectFilterConfig { + c.Addr = GetActualValue(c.Addr) + c.Query = GetActualValue(c.Query) + return c +} diff --git a/k8s/example/client/gateway/filter/egress-filter/server/deployment.yaml b/k8s/example/client/gateway/filter/egress-filter/server/deployment.yaml new file mode 100644 index 0000000000..62a9b909f7 --- /dev/null +++ b/k8s/example/client/gateway/filter/egress-filter/server/deployment.yaml @@ -0,0 +1,43 @@ +# +# Copyright (C) 2019-2023 vdaas.org vald team +# +# 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 +# +# https://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. +# +apiVersion: apps/v1 +kind: Deployment +metadata: + name: vald-egress-filter + labels: + app: vald-egress-filter +spec: + replicas: 1 + selector: + matchLabels: + app: vald-egress-filter + template: + metadata: + labels: + app: vald-egress-filter + spec: + securityContext: + runAsUser: 65532 + runAsGroup: 65532 + runAsNonRoot: true + fsGroup: 65532 + containers: + - name: vald-egress-filter + image: YOUR_DOCKERHUB_ID/vald-egress-filter:latest + imagePullPolicy: Always + ports: + - name: grpc + containerPort: 8083 diff --git a/k8s/example/client/gateway/filter/egress-filter/server/service.yaml b/k8s/example/client/gateway/filter/egress-filter/server/service.yaml new file mode 100644 index 0000000000..ee5ca19505 --- /dev/null +++ b/k8s/example/client/gateway/filter/egress-filter/server/service.yaml @@ -0,0 +1,26 @@ +# +# Copyright (C) 2019-2023 vdaas.org vald team +# +# 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 +# +# https://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. +# +apiVersion: v1 +kind: Service +metadata: + name: vald-egress-filter +spec: + selector: + app: vald-egress-filter + ports: + - protocol: TCP + port: 8083 + targetPort: 8083 diff --git a/k8s/example/client/gateway/filter/ingress-filter/server/deployment.yaml b/k8s/example/client/gateway/filter/ingress-filter/server/deployment.yaml new file mode 100644 index 0000000000..9a1e27b3ad --- /dev/null +++ b/k8s/example/client/gateway/filter/ingress-filter/server/deployment.yaml @@ -0,0 +1,43 @@ +# +# Copyright (C) 2019-2023 vdaas.org vald team +# +# 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 +# +# https://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. +# +apiVersion: apps/v1 +kind: Deployment +metadata: + name: vald-ingress-filter + labels: + app: vald-ingress-filter +spec: + replicas: 1 + selector: + matchLabels: + app: vald-ingress-filter + template: + metadata: + labels: + app: vald-ingress-filter + spec: + securityContext: + runAsUser: 65532 + runAsGroup: 65532 + runAsNonRoot: true + fsGroup: 65532 + containers: + - name: vald-ingress-filter + image: YOUR_DOCKERHUB_ID/vald-ingress-filter:latest + imagePullPolicy: Always + ports: + - name: grpc + containerPort: 8082 diff --git a/k8s/example/client/gateway/filter/ingress-filter/server/service.yaml b/k8s/example/client/gateway/filter/ingress-filter/server/service.yaml new file mode 100644 index 0000000000..6d6872e97a --- /dev/null +++ b/k8s/example/client/gateway/filter/ingress-filter/server/service.yaml @@ -0,0 +1,26 @@ +# +# Copyright (C) 2019-2023 vdaas.org vald team +# +# 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 +# +# https://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. +# +apiVersion: v1 +kind: Service +metadata: + name: vald-ingress-filter +spec: + selector: + app: vald-ingress-filter + ports: + - protocol: TCP + port: 8082 + targetPort: 8082 diff --git a/pkg/gateway/filter/handler/grpc/handler.go b/pkg/gateway/filter/handler/grpc/handler.go index 2d09d0be40..99198675d1 100644 --- a/pkg/gateway/filter/handler/grpc/handler.go +++ b/pkg/gateway/filter/handler/grpc/handler.go @@ -27,10 +27,12 @@ import ( "github.com/vdaas/vald/internal/client/v1/client/filter/egress" "github.com/vdaas/vald/internal/client/v1/client/filter/ingress" client "github.com/vdaas/vald/internal/client/v1/client/vald" + "github.com/vdaas/vald/internal/config" "github.com/vdaas/vald/internal/core/algorithm" "github.com/vdaas/vald/internal/errors" "github.com/vdaas/vald/internal/info" "github.com/vdaas/vald/internal/log" + "github.com/vdaas/vald/internal/net" "github.com/vdaas/vald/internal/net/grpc" "github.com/vdaas/vald/internal/net/grpc/codes" "github.com/vdaas/vald/internal/net/grpc/errdetails" @@ -53,8 +55,8 @@ type server struct { copts []grpc.CallOption streamConcurrency int Vectorizer string - DistanceFilters []string - ObjectFilters []string + DistanceFilters []config.DistanceFilterConfig + ObjectFilters []config.ObjectFilterConfig SearchFilters []string InsertFilters []string UpdateFilters []string @@ -1363,66 +1365,64 @@ func (s *server) Search(ctx context.Context, req *payload.Search_Request) (res * span.End() } }() - targets := req.GetConfig().GetIngressFilters().GetTargets() - if targets != nil || s.SearchFilters != nil { - addrs := make([]string, 0, len(targets)+len(s.SearchFilters)) - addrs = append(addrs, s.SearchFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) - } - c, err := s.ingress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable( - fmt.Sprintf(vald.SearchRPCName+" API ingress filter targets %v not found", addrs), - err, - &errdetails.RequestInfo{ - RequestId: req.GetConfig().GetRequestId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.BadRequest{ - FieldViolations: []*errdetails.BadRequestFieldViolation{ - { - Field: "vectorizer targets", - Description: err.Error(), + filterConfigs := req.GetConfig().GetIngressFilters() + if filterConfigs != nil || s.SearchFilters != nil { + for _, filterConfig := range filterConfigs { + addr := net.JoinHostPort(filterConfig.GetTarget().GetHost(), uint16(filterConfig.GetTarget().GetPort())) + c, err := s.ingress.Target(ctx, addr) + if err != nil { + err = status.WrapWithUnavailable( + fmt.Sprintf(vald.SearchRPCName+" API ingress filter target %v not found", addr), + err, + &errdetails.RequestInfo{ + RequestId: req.GetConfig().GetRequestId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.BadRequest{ + FieldViolations: []*errdetails.BadRequestFieldViolation{ + { + Field: "vectorizer targets", + Description: err.Error(), + }, }, }, - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.SearchRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.SearchRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - vec, err := c.FilterVector(ctx, &payload.Object_Vector{ - Vector: req.GetVector(), - }) - if err != nil { - err = status.WrapWithInternal( - fmt.Sprintf(vald.SearchRPCName+" API ingress filter request to %v failure on vec %v", addrs, req.GetVector()), - err, - &errdetails.RequestInfo{ - RequestId: req.GetConfig().GetRequestId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.SearchRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeInternal(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + vec, err := c.FilterVector(ctx, &payload.Object_Vector{ + Vector: req.GetVector(), + }) + if err != nil { + err = status.WrapWithInternal( + fmt.Sprintf(vald.SearchRPCName+" API ingress filter request to %v failure on vec %v", addr, req.GetVector()), + err, + &errdetails.RequestInfo{ + RequestId: req.GetConfig().GetRequestId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.SearchRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeInternal(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err + req.Vector = vec.GetVector() } - req.Vector = vec.GetVector() } res, err = s.gateway.Search(ctx, req, s.copts...) if err != nil { @@ -1434,47 +1434,58 @@ func (s *server) Search(ctx context.Context, req *payload.Search_Request) (res * } return nil, err } - targets = req.GetConfig().GetEgressFilters().GetTargets() - if targets != nil || s.DistanceFilters != nil { - addrs := make([]string, 0, len(targets)+len(s.DistanceFilters)) - addrs = append(addrs, s.DistanceFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) + filterConfigs = req.GetConfig().GetEgressFilters() + if filterConfigs != nil || s.DistanceFilters != nil { + filters := make([]config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) + filters = append(filters, s.DistanceFilters...) + for _, c := range filterConfigs { + filters = append(filters, config.DistanceFilterConfig{ + Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), + Query: c.Query.GetQuery(), + }) + } - c, err := s.egress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable( - fmt.Sprintf(vald.SearchRPCName+" API egress filter targets %v not found", addrs), - err, - &errdetails.RequestInfo{ - RequestId: req.GetConfig().GetRequestId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.BadRequest{ - FieldViolations: []*errdetails.BadRequestFieldViolation{ - { - Field: "vectorizer targets", - Description: err.Error(), + for _, filterConfig := range filters { + c, err := s.egress.Target(ctx, filterConfig.Addr) + if err != nil { + err = status.WrapWithUnavailable( + fmt.Sprintf(vald.SearchRPCName+" API egress filter target %v not found", filterConfig.Addr), + err, + &errdetails.RequestInfo{ + RequestId: req.GetConfig().GetRequestId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.BadRequest{ + FieldViolations: []*errdetails.BadRequestFieldViolation{ + { + Field: "vectorizer target", + Description: err.Error(), + }, }, }, - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.SearchRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.SearchRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - for i, dist := range res.GetResults() { - d, err := c.FilterDistance(ctx, dist) + dist := res.GetResults() + q := &payload.Filter_Query{ + Query: filterConfig.Query, + } + d, err := c.FilterDistance(ctx, &payload.Filter_DistanceRequest{ + Distance: dist, + Query: q, + }) if err != nil { err = status.WrapWithInternal( - fmt.Sprintf(vald.SearchRPCName+" API egress filter request to %v failure on id %s", addrs, dist.GetId()), + fmt.Sprintf(vald.SearchRPCName+" API egress filter request to %v failure on distance %v and query %v", filterConfig.Addr, dist, q), err, &errdetails.RequestInfo{ RequestId: req.GetConfig().GetRequestId(), @@ -1492,7 +1503,7 @@ func (s *server) Search(ctx context.Context, req *payload.Search_Request) (res * } return nil, err } - res.Results[i] = d + res.Results = d.GetDistance() } } return res, nil @@ -1515,47 +1526,58 @@ func (s *server) SearchByID(ctx context.Context, req *payload.Search_IDRequest) } return nil, err } - targets := req.GetConfig().GetEgressFilters().GetTargets() - if targets != nil || s.DistanceFilters != nil { - addrs := make([]string, 0, len(targets)+len(s.DistanceFilters)) - addrs = append(addrs, s.DistanceFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) + filterConfigs := req.GetConfig().GetEgressFilters() + if filterConfigs != nil || s.DistanceFilters != nil { + filters := make([]config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) + filters = append(filters, s.DistanceFilters...) + for _, c := range filterConfigs { + filters = append(filters, config.DistanceFilterConfig{ + Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), + Query: c.Query.GetQuery(), + }) + } - c, err := s.egress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable( - fmt.Sprintf(vald.SearchByIDRPCName+" API egress filter targets %v not found", addrs), - err, - &errdetails.RequestInfo{ - RequestId: req.GetConfig().GetRequestId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.BadRequest{ - FieldViolations: []*errdetails.BadRequestFieldViolation{ - { - Field: "vectorizer targets", - Description: err.Error(), + for _, filterConfig := range filters { + c, err := s.egress.Target(ctx, filterConfig.Addr) + if err != nil { + err = status.WrapWithUnavailable( + fmt.Sprintf(vald.SearchByIDRPCName+" API egress filter target %v not found", filterConfig.Addr), + err, + &errdetails.RequestInfo{ + RequestId: req.GetConfig().GetRequestId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.BadRequest{ + FieldViolations: []*errdetails.BadRequestFieldViolation{ + { + Field: "vectorizer targets", + Description: err.Error(), + }, }, }, - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.SearchByIDRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.SearchByIDRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - for i, dist := range res.GetResults() { - d, err := c.FilterDistance(ctx, dist) + dist := res.GetResults() + q := &payload.Filter_Query{ + Query: filterConfig.Query, + } + d, err := c.FilterDistance(ctx, &payload.Filter_DistanceRequest{ + Distance: dist, + Query: q, + }) if err != nil { err = status.WrapWithInternal( - fmt.Sprintf(vald.SearchByIDRPCName+" API egress filter request to %v failure on id %s", addrs, dist.GetId()), + fmt.Sprintf(vald.SearchByIDRPCName+" API egress filter request to %v failure on distance %v and query %v", filterConfig.Addr, dist, q), err, &errdetails.RequestInfo{ RequestId: req.GetConfig().GetRequestId(), @@ -1573,7 +1595,7 @@ func (s *server) SearchByID(ctx context.Context, req *payload.Search_IDRequest) } return nil, err } - res.Results[i] = d + res.Results = d.GetDistance() } } return res, nil @@ -1847,112 +1869,122 @@ func (s *server) LinearSearch(ctx context.Context, req *payload.Search_Request) span.End() } }() - targets := req.GetConfig().GetIngressFilters().GetTargets() - if targets != nil || s.SearchFilters != nil { - addrs := make([]string, 0, len(targets)+len(s.SearchFilters)) - addrs = append(addrs, s.SearchFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) - } - c, err := s.ingress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable( - fmt.Sprintf(vald.LinearSearchRPCName+" API ingress filter targets %v not found", addrs), - err, - &errdetails.RequestInfo{ - RequestId: req.GetConfig().GetRequestId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.BadRequest{ - FieldViolations: []*errdetails.BadRequestFieldViolation{ - { - Field: "vectorizer targets", - Description: err.Error(), + filterConfigs := req.GetConfig().GetIngressFilters() + if filterConfigs != nil || s.SearchFilters != nil { + for _, filterConfig := range filterConfigs { + addr := net.JoinHostPort(filterConfig.GetTarget().GetHost(), uint16(filterConfig.GetTarget().GetPort())) + c, err := s.ingress.Target(ctx, addr) + if err != nil { + err = status.WrapWithUnavailable( + fmt.Sprintf(vald.LinearSearchRPCName+" API ingress filter target %v not found", addr), + err, + &errdetails.RequestInfo{ + RequestId: req.GetConfig().GetRequestId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.BadRequest{ + FieldViolations: []*errdetails.BadRequestFieldViolation{ + { + Field: "vectorizer targets", + Description: err.Error(), + }, }, }, - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.LinearSearchRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.LinearSearchRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - vec, err := c.FilterVector(ctx, &payload.Object_Vector{ - Vector: req.GetVector(), - }) - if err != nil { - err = status.WrapWithInternal( - fmt.Sprintf(vald.LinearSearchRPCName+" API ingress filter request to %v failure on vec %v", addrs, req.GetVector()), - err, - &errdetails.RequestInfo{ - RequestId: req.GetConfig().GetRequestId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.LinearSearchRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeInternal(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + vec, err := c.FilterVector(ctx, &payload.Object_Vector{ + Vector: req.GetVector(), + }) + if err != nil { + err = status.WrapWithInternal( + fmt.Sprintf(vald.LinearSearchRPCName+" API ingress filter request to %v failure on vec %v", addr, req.GetVector()), + err, + &errdetails.RequestInfo{ + RequestId: req.GetConfig().GetRequestId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.LinearSearchRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeInternal(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err + req.Vector = vec.GetVector() } - req.Vector = vec.GetVector() } res, err = s.gateway.LinearSearch(ctx, req, s.copts...) if err != nil { return nil, err } - targets = req.GetConfig().GetEgressFilters().GetTargets() - if targets != nil || s.DistanceFilters != nil { - addrs := make([]string, 0, len(targets)+len(s.DistanceFilters)) - addrs = append(addrs, s.DistanceFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) + filterConfigs = req.GetConfig().GetEgressFilters() + if filterConfigs != nil || s.DistanceFilters != nil { + filters := make([]config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) + filters = append(filters, s.DistanceFilters...) + for _, c := range filterConfigs { + filters = append(filters, config.DistanceFilterConfig{ + Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), + Query: c.Query.GetQuery(), + }) + } - c, err := s.egress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable( - fmt.Sprintf(vald.LinearSearchRPCName+" API ingress filter targets %v not found", addrs), - err, - &errdetails.RequestInfo{ - RequestId: req.GetConfig().GetRequestId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.BadRequest{ - FieldViolations: []*errdetails.BadRequestFieldViolation{ - { - Field: "vectorizer targets", - Description: err.Error(), + for _, filterConfig := range filters { + c, err := s.egress.Target(ctx, filterConfig.Addr) + if err != nil { + err = status.WrapWithUnavailable( + fmt.Sprintf(vald.LinearSearchRPCName+" API ingress filter target %v not found", filterConfig.Addr), + err, + &errdetails.RequestInfo{ + RequestId: req.GetConfig().GetRequestId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.BadRequest{ + FieldViolations: []*errdetails.BadRequestFieldViolation{ + { + Field: "vectorizer targets", + Description: err.Error(), + }, }, }, - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.LinearSearchRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.LinearSearchRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - for i, dist := range res.GetResults() { - d, err := c.FilterDistance(ctx, dist) + + dist := res.GetResults() + q := &payload.Filter_Query{ + Query: filterConfig.Query, + } + d, err := c.FilterDistance(ctx, &payload.Filter_DistanceRequest{ + Distance: dist, + Query: q, + }) if err != nil { err = status.WrapWithInternal( - fmt.Sprintf(vald.LinearSearchRPCName+" API egress filter request to %v failure on id %s", addrs, dist.GetId()), + fmt.Sprintf(vald.LinearSearchRPCName+" API egress filter request to %v failure on distance %v and query %v", filterConfig.Addr, dist, q), err, &errdetails.RequestInfo{ RequestId: req.GetConfig().GetRequestId(), @@ -1970,7 +2002,8 @@ func (s *server) LinearSearch(ctx context.Context, req *payload.Search_Request) } return nil, err } - res.Results[i] = d + res.Results = d.GetDistance() + } } return res, nil @@ -1987,50 +2020,61 @@ func (s *server) LinearSearchByID(ctx context.Context, req *payload.Search_IDReq if err != nil { return nil, err } - targets := req.GetConfig().GetEgressFilters().GetTargets() - if targets != nil || s.DistanceFilters != nil { - addrs := make([]string, 0, len(targets)+len(s.DistanceFilters)) - addrs = append(addrs, s.DistanceFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) + filterConfigs := req.GetConfig().GetEgressFilters() + if filterConfigs != nil || s.DistanceFilters != nil { + filters := make([]config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) + filters = append(filters, s.DistanceFilters...) + for _, c := range filterConfigs { + filters = append(filters, config.DistanceFilterConfig{ + Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), + Query: c.Query.GetQuery(), + }) + } - c, err := s.egress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable( - fmt.Sprintf(vald.LinearSearchByIDRPCName+" API egress filter targets %v not found", addrs), - err, - &errdetails.RequestInfo{ - RequestId: req.GetConfig().GetRequestId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.BadRequest{ - FieldViolations: []*errdetails.BadRequestFieldViolation{ - { - Field: "vectorizer targets", - Description: err.Error(), + for _, filterConfig := range filters { + c, err := s.egress.Target(ctx, filterConfig.Addr) + if err != nil { + err = status.WrapWithUnavailable( + fmt.Sprintf(vald.LinearSearchByIDRPCName+" API egress filter target %v not found", filterConfig.Addr), + err, + &errdetails.RequestInfo{ + RequestId: req.GetConfig().GetRequestId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.BadRequest{ + FieldViolations: []*errdetails.BadRequestFieldViolation{ + { + Field: "vectorizer targets", + Description: err.Error(), + }, }, }, - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.LinearSearchByIDRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.LinearSearchByIDRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - for i, dist := range res.GetResults() { - d, err := c.FilterDistance(ctx, dist) + dist := res.GetResults() + q := &payload.Filter_Query{ + Query: filterConfig.Query, + } + d, err := c.FilterDistance(ctx, &payload.Filter_DistanceRequest{ + Distance: dist, + Query: q, + }) if err != nil { err = status.WrapWithInternal( - fmt.Sprintf(vald.LinearSearchByIDRPCName+" API egress filter request to %v failure on id %s", addrs, dist.GetId()), + fmt.Sprintf(vald.LinearSearchByIDRPCName+" API egress filter request to %v failure on distance %v and query %v", filterConfig.Addr, dist, q), err, &errdetails.RequestInfo{ - RequestId: dist.GetId(), + RequestId: req.GetConfig().GetRequestId(), ServingData: errdetails.Serialize(req), }, &errdetails.ResourceInfo{ @@ -2045,7 +2089,7 @@ func (s *server) LinearSearchByID(ctx context.Context, req *payload.Search_IDReq } return nil, err } - res.Results[i] = d + res.Results = d.GetDistance() } } return res, nil @@ -2345,78 +2389,76 @@ func (s *server) Insert(ctx context.Context, req *payload.Insert_Request) (loc * err = errors.ErrMetaDataAlreadyExists(uuid) err = status.WrapWithAlreadyExists(vald.InsertRPCName+" API ID = "+uuid+" already exists", err, &errdetails.RequestInfo{ - RequestId: uuid, + RequestId: uuid, + ServingData: errdetails.Serialize(req), + }, + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.InsertRPCName + "." + vald.ExistsRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeAlreadyExists(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err + } + if req.GetConfig() != nil { + req.GetConfig().SkipStrictExistCheck = true + } else { + req.Config = &payload.Insert_Config{SkipStrictExistCheck: true} + } + } + filterConfigs := req.GetConfig().GetFilters() + if len(filterConfigs) == 0 && len(s.InsertFilters) == 0 { + return s.gateway.Insert(ctx, req) + } + for _, filterConfig := range filterConfigs { + addr := net.JoinHostPort(filterConfig.GetTarget().GetHost(), uint16(filterConfig.GetTarget().GetPort())) + c, err := s.ingress.Target(ctx, addr) + if err != nil { + err = status.WrapWithUnavailable( + fmt.Sprintf(vald.InsertRPCName+" API ingress filter filter target %v not found", addr), err, + &errdetails.RequestInfo{ + RequestId: req.GetVector().GetId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.InsertRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + } + vec, err = c.FilterVector(ctx, req.GetVector()) + if err != nil { + err = status.WrapWithInternal( + fmt.Sprintf(vald.InsertRPCName+" API ingress filter request to %v failure on id: %s\tvec: %v", addr, req.GetVector().GetId(), req.GetVector().GetVector()), err, + &errdetails.RequestInfo{ + RequestId: req.GetVector().GetId(), ServingData: errdetails.Serialize(req), }, &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.InsertRPCName + "." + vald.ExistsRPCName, + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.InsertRPCName, ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), }, info.Get()) + log.Warn(err) if span != nil { span.RecordError(err) - span.SetAttributes(trace.StatusCodeAlreadyExists(err.Error())...) + span.SetAttributes(trace.StatusCodeInternal(err.Error())...) span.SetStatus(trace.StatusError, err.Error()) } return nil, err } - if req.GetConfig() != nil { - req.GetConfig().SkipStrictExistCheck = true - } else { - req.Config = &payload.Insert_Config{SkipStrictExistCheck: true} - } - } - targets := req.GetConfig().GetFilters().GetTargets() - if len(targets) == 0 && len(s.InsertFilters) == 0 { - return s.gateway.Insert(ctx, req) - } - addrs := make([]string, 0, len(targets)+len(s.InsertFilters)) - addrs = append(addrs, s.InsertFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) - } - c, err := s.ingress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable( - fmt.Sprintf(vald.InsertRPCName+" API ingress filter filter targets %v not found", addrs), err, - &errdetails.RequestInfo{ - RequestId: req.GetVector().GetId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.InsertRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) - } - } - vec, err = c.FilterVector(ctx, req.GetVector()) - if err != nil { - err = status.WrapWithInternal( - fmt.Sprintf(vald.InsertRPCName+" API ingress filter request to %v failure on id: %s\tvec: %v", addrs, req.GetVector().GetId(), req.GetVector().GetVector()), err, - &errdetails.RequestInfo{ - RequestId: req.GetVector().GetId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.InsertRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeInternal(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + if vec.GetId() == "" { + vec.Id = req.GetVector().GetId() } - return nil, err - } - if vec.GetId() == "" { - vec.Id = req.GetVector().GetId() + req.Vector = vec } - req.Vector = vec loc, err = s.gateway.Insert(ctx, req, s.copts...) if err != nil { err = status.WrapWithInternal( @@ -2635,59 +2677,57 @@ func (s *server) Update(ctx context.Context, req *payload.Update_Request) (loc * req.Config = &payload.Update_Config{SkipStrictExistCheck: true} } } - targets := req.GetConfig().GetFilters().GetTargets() - if len(targets) == 0 && len(s.UpdateFilters) == 0 { + filterConfigs := req.GetConfig().GetFilters() + if len(filterConfigs) == 0 && len(s.UpdateFilters) == 0 { return s.gateway.Update(ctx, req) } - addrs := make([]string, 0, len(targets)+len(s.UpdateFilters)) - addrs = append(addrs, s.UpdateFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) - } - c, err := s.ingress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable( - fmt.Sprintf(vald.UpdateRPCName+" API ingress filter filter targets %v not found", addrs), err, - &errdetails.RequestInfo{ - RequestId: req.GetVector().GetId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.UpdateRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + for _, filterConfig := range filterConfigs { + addr := net.JoinHostPort(filterConfig.GetTarget().GetHost(), uint16(filterConfig.GetTarget().GetPort())) + c, err := s.ingress.Target(ctx, addr) + if err != nil { + err = status.WrapWithUnavailable( + fmt.Sprintf(vald.UpdateRPCName+" API ingress filter filter target %v not found", addr), err, + &errdetails.RequestInfo{ + RequestId: req.GetVector().GetId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.UpdateRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - vec, err = c.FilterVector(ctx, req.GetVector()) - if err != nil { - err = status.WrapWithInternal( - fmt.Sprintf(vald.UpdateRPCName+" API ingress filter request to %v failure on id: %s\tvec: %v", addrs, req.GetVector().GetId(), req.GetVector().GetVector()), err, - &errdetails.RequestInfo{ - RequestId: req.GetVector().GetId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.UpdateRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeInternal(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + vec, err = c.FilterVector(ctx, req.GetVector()) + if err != nil { + err = status.WrapWithInternal( + fmt.Sprintf(vald.UpdateRPCName+" API ingress filter request to %v failure on id: %s\tvec: %v", addr, req.GetVector().GetId(), req.GetVector().GetVector()), err, + &errdetails.RequestInfo{ + RequestId: req.GetVector().GetId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.UpdateRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeInternal(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - if vec.GetId() == "" { - vec.Id = req.GetVector().GetId() + if vec.GetId() == "" { + vec.Id = req.GetVector().GetId() + } + req.Vector = vec } - req.Vector = vec loc, err = s.gateway.Update(ctx, req, s.copts...) if err != nil { err = status.WrapWithInternal( @@ -2890,59 +2930,57 @@ func (s *server) Upsert(ctx context.Context, req *payload.Upsert_Request) (loc * req.Config = &payload.Upsert_Config{SkipStrictExistCheck: true} } } - targets := req.GetConfig().GetFilters().GetTargets() - if len(targets) == 0 && len(s.UpsertFilters) == 0 { + filterConfigs := req.GetConfig().GetFilters() + if len(filterConfigs) == 0 && len(s.UpsertFilters) == 0 { return s.gateway.Upsert(ctx, req) } - addrs := make([]string, 0, len(targets)) - addrs = append(addrs, s.UpsertFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) - } - c, err := s.ingress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable( - fmt.Sprintf(vald.UpsertRPCName+" API ingress filter filter targets %v not found", addrs), err, - &errdetails.RequestInfo{ - RequestId: req.GetVector().GetId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.UpsertObjectRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + for _, filterConfig := range filterConfigs { + addr := net.JoinHostPort(filterConfig.GetTarget().GetHost(), uint16(filterConfig.GetTarget().GetPort())) + c, err := s.ingress.Target(ctx, addr) + if err != nil { + err = status.WrapWithUnavailable( + fmt.Sprintf(vald.UpsertRPCName+" API ingress filter filter target %v not found", addr), err, + &errdetails.RequestInfo{ + RequestId: req.GetVector().GetId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.UpsertObjectRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - vec, err = c.FilterVector(ctx, req.GetVector()) - if err != nil { - err = status.WrapWithInternal( - fmt.Sprintf(vald.UpsertRPCName+" API ingress filter request to %v failure on id: %s\tvec: %v", addrs, req.GetVector().GetId(), req.GetVector().GetVector()), err, - &errdetails.RequestInfo{ - RequestId: req.GetVector().GetId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.UpsertObjectRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeInternal(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + vec, err = c.FilterVector(ctx, req.GetVector()) + if err != nil { + err = status.WrapWithInternal( + fmt.Sprintf(vald.UpsertRPCName+" API ingress filter request to %v failure on id: %s\tvec: %v", addr, req.GetVector().GetId(), req.GetVector().GetVector()), err, + &errdetails.RequestInfo{ + RequestId: req.GetVector().GetId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.UpsertObjectRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeInternal(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - if vec.GetId() == "" { - vec.Id = req.GetVector().GetId() + if vec.GetId() == "" { + vec.Id = req.GetVector().GetId() + } + req.Vector = vec } - req.Vector = vec loc, err = s.gateway.Upsert(ctx, req, s.copts...) if err != nil { err = status.WrapWithInternal(vald.UpsertRPCName+" API failed to Execute DoMulti ID = "+uuid, err, @@ -3321,58 +3359,70 @@ func (s *server) GetObject(ctx context.Context, req *payload.Object_VectorReques } return nil, err } - targets := req.GetFilters().GetTargets() - if targets != nil || s.ObjectFilters != nil { - addrs := make([]string, 0, len(targets)+len(s.ObjectFilters)) - addrs = append(addrs, s.ObjectFilters...) - for _, target := range targets { - addrs = append(addrs, fmt.Sprintf("%s:%d", target.GetHost(), target.GetPort())) + filterConfigs := req.GetFilters() + if filterConfigs != nil || s.ObjectFilters != nil { + filters := make([]config.ObjectFilterConfig, 0, len(filterConfigs)+len(s.ObjectFilters)) + filters = append(filters, s.ObjectFilters...) + for _, c := range filterConfigs { + filters = append(filters, config.ObjectFilterConfig{ + Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), + Query: c.Query.GetQuery(), + }) + } - c, err := s.egress.Target(ctx, addrs...) - if err != nil { - err = status.WrapWithUnavailable(vald.SearchObjectRPCName+" API target filter API unavailable", err, - &errdetails.RequestInfo{ - RequestId: req.GetId().GetId(), - ServingData: errdetails.Serialize(req), - }, - &errdetails.BadRequest{ - FieldViolations: []*errdetails.BadRequestFieldViolation{ - { - Field: "vectorizer targets", - Description: err.Error(), + for _, filterConfig := range filters { + c, err := s.egress.Target(ctx, filterConfig.Addr) + if err != nil { + err = status.WrapWithUnavailable(vald.SearchObjectRPCName+" API target filter API unavailable", err, + &errdetails.RequestInfo{ + RequestId: req.GetId().GetId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.BadRequest{ + FieldViolations: []*errdetails.BadRequestFieldViolation{ + { + Field: "vectorizer targets", + Description: err.Error(), + }, }, }, - }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.GetObjectRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.GetObjectRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeUnavailable(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err - } - vec, err = c.FilterVector(ctx, vec) - if err != nil { - err = status.WrapWithInternal(vald.GetObjectRPCName+" API egress filter API failed", err, - &errdetails.RequestInfo{ - RequestId: req.GetId().GetId(), - ServingData: errdetails.Serialize(req), + res, err := c.FilterVector(ctx, &payload.Filter_VectorRequest{ + Vector: vec, + Query: &payload.Filter_Query{ + Query: filterConfig.Query, }, - &errdetails.ResourceInfo{ - ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.GetObjectRPCName, - ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), - }, info.Get()) - log.Warn(err) - if span != nil { - span.RecordError(err) - span.SetAttributes(trace.StatusCodeInternal(err.Error())...) - span.SetStatus(trace.StatusError, err.Error()) + }) + if err != nil { + err = status.WrapWithInternal(vald.GetObjectRPCName+" API egress filter API failed", err, + &errdetails.RequestInfo{ + RequestId: req.GetId().GetId(), + ServingData: errdetails.Serialize(req), + }, + &errdetails.ResourceInfo{ + ResourceType: errdetails.ValdGRPCResourceTypePrefix + "/vald.v1." + vald.GetObjectRPCName, + ResourceName: fmt.Sprintf("%s: %s(%s)", apiName, s.name, s.ip), + }, info.Get()) + log.Warn(err) + if span != nil { + span.RecordError(err) + span.SetAttributes(trace.StatusCodeInternal(err.Error())...) + span.SetStatus(trace.StatusError, err.Error()) + } + return nil, err } - return nil, err + vec = res.GetVector() } } return vec, nil diff --git a/pkg/gateway/filter/handler/grpc/option.go b/pkg/gateway/filter/handler/grpc/option.go index f2694c0966..a32016ec57 100644 --- a/pkg/gateway/filter/handler/grpc/option.go +++ b/pkg/gateway/filter/handler/grpc/option.go @@ -24,6 +24,7 @@ import ( "github.com/vdaas/vald/internal/client/v1/client/filter/egress" "github.com/vdaas/vald/internal/client/v1/client/filter/ingress" "github.com/vdaas/vald/internal/client/v1/client/vald" + "github.com/vdaas/vald/internal/config" "github.com/vdaas/vald/internal/log" "github.com/vdaas/vald/internal/net" "github.com/vdaas/vald/internal/sync/errgroup" @@ -111,28 +112,28 @@ func WithVectorizerTargets(addr string) Option { } } -func WithDistanceFilterTargets(addrs ...string) Option { +func WithDistanceFilterTargets(cs ...config.DistanceFilterConfig) Option { return func(s *server) { - if len(addrs) == 0 { + if len(cs) == 0 { return } if len(s.DistanceFilters) == 0 { - s.DistanceFilters = addrs + s.DistanceFilters = cs } else { - s.DistanceFilters = append(s.DistanceFilters, addrs...) + s.DistanceFilters = append(s.DistanceFilters, cs...) } } } -func WithObjectFilterTargets(addrs ...string) Option { +func WithObjectFilterTargets(cs ...config.ObjectFilterConfig) Option { return func(s *server) { - if len(addrs) == 0 { + if len(cs) == 0 { return } if len(s.ObjectFilters) == 0 { - s.ObjectFilters = addrs + s.ObjectFilters = cs } else { - s.ObjectFilters = append(s.ObjectFilters, addrs...) + s.ObjectFilters = append(s.ObjectFilters, cs...) } } } diff --git a/pkg/gateway/filter/usecase/vald.go b/pkg/gateway/filter/usecase/vald.go index 88fa49372e..a15c650e36 100644 --- a/pkg/gateway/filter/usecase/vald.go +++ b/pkg/gateway/filter/usecase/vald.go @@ -121,11 +121,11 @@ func New(cfg *config.Data) (r runner.Runner, err error) { if cfg.EgressFilters.Client != nil && cfg.EgressFilters.Client.Addrs != nil { as = append(as, cfg.EgressFilters.Client.Addrs...) } - if cfg.EgressFilters.DistanceFilters != nil { - as = append(as, cfg.EgressFilters.DistanceFilters...) + for _, df := range cfg.EgressFilters.DistanceFilters { + as = append(as, df.Addr) } - if cfg.EgressFilters.ObjectFilters != nil { - as = append(as, cfg.EgressFilters.ObjectFilters...) + for _, of := range cfg.EgressFilters.ObjectFilters { + as = append(as, of.Addr) } if len(as) != 0 { slices.Sort(as) From d4405415d32338501739ffb514fcaeb81729ae6d Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 29 Jun 2023 05:47:10 +0000 Subject: [PATCH 02/43] style: Format code with prettier and gofumpt --- docs/user-guides/client-api-config.md | 10 +++++----- pkg/gateway/filter/handler/grpc/handler.go | 5 ----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/docs/user-guides/client-api-config.md b/docs/user-guides/client-api-config.md index 2fb1985544..2683c845d7 100644 --- a/docs/user-guides/client-api-config.md +++ b/docs/user-guides/client-api-config.md @@ -115,7 +115,7 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - Target target = 1; + Target target = 1; // The target query. Query query = 2; } @@ -244,7 +244,7 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - Target target = 1; + Target target = 1; // The target query. Query query = 2; } @@ -372,7 +372,7 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - Target target = 1; + Target target = 1; // The target query. Query query = 2; } @@ -594,7 +594,7 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - Target target = 1; + Target target = 1; // The target query. Query query = 2; } @@ -621,7 +621,7 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - Target target = 1; + Target target = 1; // The target query. Query query = 2; } diff --git a/pkg/gateway/filter/handler/grpc/handler.go b/pkg/gateway/filter/handler/grpc/handler.go index 99198675d1..9044fb9632 100644 --- a/pkg/gateway/filter/handler/grpc/handler.go +++ b/pkg/gateway/filter/handler/grpc/handler.go @@ -1443,7 +1443,6 @@ func (s *server) Search(ctx context.Context, req *payload.Search_Request) (res * Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) - } for _, filterConfig := range filters { c, err := s.egress.Target(ctx, filterConfig.Addr) @@ -1535,7 +1534,6 @@ func (s *server) SearchByID(ctx context.Context, req *payload.Search_IDRequest) Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) - } for _, filterConfig := range filters { c, err := s.egress.Target(ctx, filterConfig.Addr) @@ -1941,7 +1939,6 @@ func (s *server) LinearSearch(ctx context.Context, req *payload.Search_Request) Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) - } for _, filterConfig := range filters { c, err := s.egress.Target(ctx, filterConfig.Addr) @@ -2029,7 +2026,6 @@ func (s *server) LinearSearchByID(ctx context.Context, req *payload.Search_IDReq Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) - } for _, filterConfig := range filters { c, err := s.egress.Target(ctx, filterConfig.Addr) @@ -3368,7 +3364,6 @@ func (s *server) GetObject(ctx context.Context, req *payload.Object_VectorReques Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) - } for _, filterConfig := range filters { c, err := s.egress.Target(ctx, filterConfig.Addr) From 4e437a5d3e1c5d1a5e59432f0bf37c3f6c800955 Mon Sep 17 00:00:00 2001 From: kevindiu Date: Thu, 29 Jun 2023 08:52:09 +0000 Subject: [PATCH 03/43] update config type --- Makefile | 1 - Makefile.d/build.mk | 58 ---- Makefile.d/docker.mk | 28 -- Makefile.d/k8s.mk | 24 -- charts/vald/values.schema.json | 4 +- charts/vald/values.yaml | 4 +- example/client/gateway/filter/README.md | 62 ++-- .../filter/egress-filter/{client => }/main.go | 0 .../ingress-filter/{client => }/main.go | 0 example/client/gateway/filter/main.go | 175 ++++++----- .../manifest/filter/egress}/Dockerfile | 29 +- .../manifest/filter/egress}/deployment.yaml | 2 +- .../manifest/filter/egress}/service.yaml | 0 .../manifest/filter/ingress}/Dockerfile | 29 +- .../manifest/filter/ingress}/deployment.yaml | 2 +- .../manifest/filter/ingress}/service.yaml | 0 .../server => server/egress-filter}/main.go | 2 + .../server => server/ingress-filter}/main.go | 10 +- .../v1/client/filter/egress/client_test.go | 48 +-- internal/config/filter.go | 6 +- internal/config/filter_test.go | 280 ++++++++++++++++-- pkg/gateway/filter/handler/grpc/handler.go | 24 +- .../filter/handler/grpc/handler_test.go | 168 +++++------ pkg/gateway/filter/handler/grpc/option.go | 4 +- .../filter/handler/grpc/option_test.go | 16 +- 25 files changed, 596 insertions(+), 380 deletions(-) rename example/client/gateway/filter/egress-filter/{client => }/main.go (100%) rename example/client/gateway/filter/ingress-filter/{client => }/main.go (100%) rename {dockers/example/client/gateway/filter/egress-filter/server => example/manifest/filter/egress}/Dockerfile (75%) rename {k8s/example/client/gateway/filter/egress-filter/server => example/manifest/filter/egress}/deployment.yaml (95%) rename {k8s/example/client/gateway/filter/egress-filter/server => example/manifest/filter/egress}/service.yaml (100%) rename {dockers/example/client/gateway/filter/ingress-filter/server => example/manifest/filter/ingress}/Dockerfile (75%) rename {k8s/example/client/gateway/filter/ingress-filter/server => example/manifest/filter/ingress}/deployment.yaml (95%) rename {k8s/example/client/gateway/filter/ingress-filter/server => example/manifest/filter/ingress}/service.yaml (100%) rename example/{client/gateway/filter/egress-filter/server => server/egress-filter}/main.go (97%) rename example/{client/gateway/filter/ingress-filter/server => server/ingress-filter}/main.go (89%) diff --git a/Makefile b/Makefile index cdd2161217..e54ad1cffc 100644 --- a/Makefile +++ b/Makefile @@ -258,7 +258,6 @@ GO_ALL_TEST_SOURCES = $(GO_TEST_SOURCES) $(GO_OPTION_TEST_SOURCES) DOCKER ?= docker DOCKER_OPTS ?= -YOUR_DOCKERHUB_ID?= change-it DISTROLESS_IMAGE ?= gcr.io/distroless/static DISTROLESS_IMAGE_TAG ?= nonroot diff --git a/Makefile.d/build.mk b/Makefile.d/build.mk index 4e2fb54495..7c46a488a7 100644 --- a/Makefile.d/build.mk +++ b/Makefile.d/build.mk @@ -206,64 +206,6 @@ cmd/manager/index/index: \ $(dir $@)main.go $@ -version -.PHONY: example/client/gateway/filter/ingress-filter/server/ingress-filter -example/client/gateway/filter/ingress-filter/server/ingress-filter: \ - $(GO_SOURCES_INTERNAL) \ - $(PBGOS) \ - $(shell find $(ROOTDIR)/cmd/gateway/filter -type f -name '*.go' -not -name '*_test.go' -not -name 'doc.go') \ - $(shell find $(ROOTDIR)/pkg/gateway/filter -type f -name '*.go' -not -name '*_test.go' -not -name 'doc.go') - $(eval CGO_ENABLED = 0) - CGO_ENABLED=$(CGO_ENABLED) \ - GO111MODULE=on \ - GOPRIVATE=$(GOPRIVATE) \ - go build \ - --ldflags "-w -extldflags=-static \ - -X '$(GOPKG)/internal/info.Version=$(VERSION)' \ - -X '$(GOPKG)/internal/info.GitCommit=$(GIT_COMMIT)' \ - -X '$(GOPKG)/internal/info.BuildTime=$(DATETIME)' \ - -X '$(GOPKG)/internal/info.GoVersion=$(GO_VERSION)' \ - -X '$(GOPKG)/internal/info.GoOS=$(GOOS)' \ - -X '$(GOPKG)/internal/info.GoArch=$(GOARCH)' \ - -X '$(GOPKG)/internal/info.CGOEnabled=$(CGO_ENABLED)' \ - -X '$(GOPKG)/internal/info.BuildCPUInfoFlags=$(CPU_INFO_FLAGS)' \ - -buildid=" \ - -mod=readonly \ - -modcacherw \ - -a \ - -tags "osusergo netgo static_build" \ - -trimpath \ - -o $@ \ - $(dir $@)main.go - -.PHONY: example/client/gateway/filter/egress-filter/server/egress-filter -example/client/gateway/filter/egress-filter/server/egress-filter: \ - $(GO_SOURCES_INTERNAL) \ - $(PBGOS) \ - $(shell find $(ROOTDIR)/cmd/gateway/filter -type f -name '*.go' -not -name '*_test.go' -not -name 'doc.go') \ - $(shell find $(ROOTDIR)/pkg/gateway/filter -type f -name '*.go' -not -name '*_test.go' -not -name 'doc.go') - $(eval CGO_ENABLED = 0) - CGO_ENABLED=$(CGO_ENABLED) \ - GO111MODULE=on \ - GOPRIVATE=$(GOPRIVATE) \ - go build \ - --ldflags "-w -extldflags=-static \ - -X '$(GOPKG)/internal/info.Version=$(VERSION)' \ - -X '$(GOPKG)/internal/info.GitCommit=$(GIT_COMMIT)' \ - -X '$(GOPKG)/internal/info.BuildTime=$(DATETIME)' \ - -X '$(GOPKG)/internal/info.GoVersion=$(GO_VERSION)' \ - -X '$(GOPKG)/internal/info.GoOS=$(GOOS)' \ - -X '$(GOPKG)/internal/info.GoArch=$(GOARCH)' \ - -X '$(GOPKG)/internal/info.CGOEnabled=$(CGO_ENABLED)' \ - -X '$(GOPKG)/internal/info.BuildCPUInfoFlags=$(CPU_INFO_FLAGS)' \ - -buildid=" \ - -mod=readonly \ - -modcacherw \ - -a \ - -tags "osusergo netgo static_build" \ - -trimpath \ - -o $@ \ - $(dir $@)main.go - .PHONY: binary/build/zip ## build all binaries and zip them binary/build/zip: \ diff --git a/Makefile.d/docker.mk b/Makefile.d/docker.mk index 1ee4c572cc..a8858a27a6 100644 --- a/Makefile.d/docker.mk +++ b/Makefile.d/docker.mk @@ -188,31 +188,3 @@ docker/build/loadtest: -t $(ORG)/$(LOADTEST_IMAGE):$(TAG) . \ --build-arg MAINTAINER=$(MAINTAINER) \ --build-arg GO_VERSION=$(GO_VERSION) - -.PHONY: docker/name/example/client/gateway/filter/ingress-filter/server -docker/name/example/client/gateway/filter/ingress-filter/server: - @echo "$(YOUR_DOCKERHUB_ID)/vald-ingress-filter" - -.PHONY: docker/build/example/client/gateway/filter/ingress-filter/server -docker/build/example/client/gateway/filter/ingress-filter/server: - $(DOCKER) build \ - $(DOCKER_OPTS) \ - -f dockers/example/client/gateway/filter/ingress-filter/server/Dockerfile \ - -t $(YOUR_DOCKERHUB_ID)/vald-ingress-filter:latest . \ - --build-arg GO_VERSION=$(GO_VERSION) \ - --build-arg DISTROLESS_IMAGE=$(DISTROLESS_IMAGE) \ - --build-arg DISTROLESS_IMAGE_TAG=$(DISTROLESS_IMAGE_TAG) - -.PHONY: docker/name/example/client/gateway/filter/egress-filter/server -docker/name/example/client/gateway/filter/egress-filter/server: - @echo "$(YOUR_DOCKERHUB_ID)/vald-egress-filter" - -.PHONY: docker/build/example/client/gateway/filter/egress-filter/server -docker/build/example/client/gateway/filter/egress-filter/server: - $(DOCKER) build \ - $(DOCKER_OPTS) \ - -f dockers/example/client/gateway/filter/egress-filter/server/Dockerfile \ - -t $(YOUR_DOCKERHUB_ID)/vald-egress-filter:latest . \ - --build-arg GO_VERSION=$(GO_VERSION) \ - --build-arg DISTROLESS_IMAGE=$(DISTROLESS_IMAGE) \ - --build-arg DISTROLESS_IMAGE_TAG=$(DISTROLESS_IMAGE_TAG) diff --git a/Makefile.d/k8s.mk b/Makefile.d/k8s.mk index c93f3ba45d..515137f54a 100644 --- a/Makefile.d/k8s.mk +++ b/Makefile.d/k8s.mk @@ -394,27 +394,3 @@ $(BINDIR)/kube-linter: cd $(TEMP_DIR) \ && curl -L https://github.com/stackrox/kube-linter/releases/download/$(KUBELINTER_VERSION)/kube-linter-$(shell echo $(UNAME) | tr '[:upper:]' '[:lower:]') -o $(BINDIR)/kube-linter \ && chmod a+x $(BINDIR)/kube-linter - -.PHONY: k8s/example/client/gateway/filter/ingress-filter/server/deploy -## deploy ingrsess-filter -k8s/example/client/gateway/filter/ingress-filter/server/deploy: - sed -e "s/YOUR_DOCKERHUB_ID/${YOUR_DOCKERHUB_ID}/g" $(dir $@)deployment.yaml | kubectl apply -f - \ - && kubectl apply -f $(dir $@)service.yaml - -.PHONY: k8s/example/client/gateway/filter/ingress-filter/server/delete -## delete ingrsess-filter -k8s/example/client/gateway/filter/ingress-filter/server/delete: - sed -e "s/YOUR_DOCKERHUB_ID/${YOUR_DOCKERHUB_ID}/g" $(dir $@)deployment.yaml | kubectl delete -f - \ - && kubectl delete -f $(dir $@)service.yaml - -.PHONY: k8s/example/client/gateway/filter/egress-filter/server/deploy -## deploy egrsess-filter -k8s/example/client/gateway/filter/egress-filter/server/deploy: - sed -e "s/YOUR_DOCKERHUB_ID/${YOUR_DOCKERHUB_ID}/g" $(dir $@)deployment.yaml | kubectl apply -f - \ - && kubectl apply -f $(dir $@)service.yaml - -.PHONY: k8s/example/client/gateway/filter/egress-filter/server/delete -## delete egrsess-filter -k8s/example/client/gateway/filter/egress-filter/server/delete: - sed -e "s/YOUR_DOCKERHUB_ID/${YOUR_DOCKERHUB_ID}/g" $(dir $@)deployment.yaml | kubectl delete -f - \ - && kubectl delete -f $(dir $@)service.yaml diff --git a/charts/vald/values.schema.json b/charts/vald/values.schema.json index 6afe895d45..69eb323e57 100644 --- a/charts/vald/values.schema.json +++ b/charts/vald/values.schema.json @@ -6153,12 +6153,12 @@ "distance_filters": { "type": "array", "description": "distance egress vector filter targets", - "items": { "type": "string" } + "items": { "type": "object" } }, "object_filters": { "type": "array", "description": "object egress vector filter targets", - "items": { "type": "string" } + "items": { "type": "object" } } } }, diff --git a/charts/vald/values.yaml b/charts/vald/values.yaml index 7a7e328d94..5d6c3c4caa 100644 --- a/charts/vald/values.yaml +++ b/charts/vald/values.yaml @@ -1406,10 +1406,10 @@ gateway: # @schema {"name": "gateway.filter.gateway_config.egress_filter.client", "alias": "grpc.client"} # gateway.filter.gateway_config.egress_filter.client -- gRPC client config for egress filter (overrides defaults.grpc.client) client: {} - # @schema {"name": "gateway.filter.gateway_config.egress_filter.object_filters", "type": "array", "items": {"type": "string"}} + # @schema {"name": "gateway.filter.gateway_config.egress_filter.object_filters", "type": "array", "items": {"type": "object"}} # gateway.filter.gateway_config.egress_filter.object_filters -- object egress vector filter targets object_filters: [] - # @schema {"name": "gateway.filter.gateway_config.egress_filter.distance_filters", "type": "array", "items": {"type": "string"}} + # @schema {"name": "gateway.filter.gateway_config.egress_filter.distance_filters", "type": "array", "items": {"type": "object"}} # gateway.filter.gateway_config.egress_filter.distance_filters -- distance egress vector filter targets distance_filters: [] # @schema {"name": "agent", "type": "object"} diff --git a/example/client/gateway/filter/README.md b/example/client/gateway/filter/README.md index 2a9ab39140..f0e52d54bd 100644 --- a/example/client/gateway/filter/README.md +++ b/example/client/gateway/filter/README.md @@ -2,7 +2,7 @@ After launching the k8s cluster, do the following steps at the root directory. 1. Deploy Vald cluster with filter-gateway -``` +```bash vim example/helm/values.yaml --- ... @@ -17,33 +17,57 @@ agent: distance_type: l2 ... -// deploy vald cluster +# deploy vald cluster helm repo add vald https://vald.vdaas.org/charts helm install vald vald/vald --values example/helm/values.yaml - -// if you don't use the Kubernetes ingress, set the port forward -kubectl port-forward deployment/vald-filter-gateway 8081:8081 ``` -2. Deploy an ingress filter server and an egress filter server -``` -// prepare for pushing images to your dockerhub +2. Build and publish example ingress filter and egress filter docker image + +```bash +# login to docker if needed, and setup your DockerHub ID docker login -export YOUR_DOCKERHUB_ID= +export DOCKERHUB_ID= + +# build and publish ingress filter image +docker build \ + -f example/manifest/filter/ingress/Dockerfile \ + -t $DOCKERHUB_ID/vald-ingress-filter:latest . \ + --build-arg GO_VERSION=$(make version/go) + +docker push ${DOCKERHUB_ID}/vald-ingress-filter:latest -// deploy ingress filter -make docker/build/example/client/gateway/filter/ingress-filter/server -docker push ${YOUR_DOCKERHUB_ID}/vald-ingress-filter:latest -make k8s/example/client/gateway/filter/ingress-filter/server/deploy +# build and publish egress filter image +docker build \ + -f example/manifest/filter/egress/Dockerfile \ + -t $DOCKERHUB_ID/vald-egress-filter:latest . \ + --build-arg GO_VERSION=$(make version/go) -// deploy egress filter -make docker/build/example/client/gateway/filter/egress-filter/server -docker push ${YOUR_DOCKERHUB_ID}/vald-egress-filter:latest -make k8s/example/client/gateway/filter/egress-filter/server/deploy +docker push ${DOCKERHUB_ID}/vald-egress-filter:latest ``` -3. Run test +3. Deploy ingress filter server and egress filter server +```bash +# deploy ingress filter +sed -e "s/DOCKERHUB_ID/${DOCKERHUB_ID}/g" example/manifest/filter/egress/deployment.yaml | kubectl apply -f - \ +&& kubectl apply -f example/manifest/filter/egress/service.yaml + +# deploy egress filter +sed -e "s/DOCKERHUB_ID/${DOCKERHUB_ID}/g" example/manifest/filter/ingress/deployment.yaml | kubectl apply -f - \ +&& kubectl apply -f example/manifest/filter/ingress/service.yaml ``` -// Please change the argument according to your environment. + +4. Run test +```bash +# if you don't use the Kubernetes ingress, set the port forward +kubectl port-forward deployment/vald-filter-gateway 8081:8081 + +# Please change the argument according to your environment. go run ./example/client/gateway/filter/main.go -addr "localhost:8081" -ingresshost "vald-ingress-filter.default.svc.cluster.local" -ingressport 8082 -egresshost "vald-egress-filter.default.svc.cluster.local" -egressport 8083 +``` + +5. Cleanup +```bash +helm uninstall vald +kubectl delete -f ./example/manifest/filter/egress/deployment.yaml -f ./example/manifest/filter/egress/service.yaml -f ./example/manifest/filter/ingress/deployment.yaml -f ./example/manifest/filter/ingress/service.yaml ``` \ No newline at end of file diff --git a/example/client/gateway/filter/egress-filter/client/main.go b/example/client/gateway/filter/egress-filter/main.go similarity index 100% rename from example/client/gateway/filter/egress-filter/client/main.go rename to example/client/gateway/filter/egress-filter/main.go diff --git a/example/client/gateway/filter/ingress-filter/client/main.go b/example/client/gateway/filter/ingress-filter/main.go similarity index 100% rename from example/client/gateway/filter/ingress-filter/client/main.go rename to example/client/gateway/filter/ingress-filter/main.go diff --git a/example/client/gateway/filter/main.go b/example/client/gateway/filter/main.go index 9c6f8dd7e3..d78ff78c57 100644 --- a/example/client/gateway/filter/main.go +++ b/example/client/gateway/filter/main.go @@ -25,6 +25,11 @@ import ( "google.golang.org/grpc" ) +type dataset struct { + id string + vector []float32 +} + var ( grpcServerAddr string ingressServerHost string @@ -57,35 +62,7 @@ func init() { // Please execute after setting up the server of vald cluster and ingress/egress filter func main() { - // create a data set for operation confirmation - makeVecFn := func(dim int, value float32) []float32 { - vec := make([]float32, dim) - for i := 0; i < dim; i++ { - vec[i] = value - } - return vec - } - dataset := []struct { - id string - vector []float32 - }{ - { - id: "1_fashion", - vector: makeVecFn(int(dimension), 0.1), - }, - { - id: "2_food", - vector: makeVecFn(int(dimension), 0.2), - }, - { - id: "3_fashion", - vector: makeVecFn(int(dimension), 0.3), - }, - { - id: "4_pet", - vector: makeVecFn(int(dimension), 0.4), - }, - } + dataset := genDataset() query := "category=fashion" // connect to the Vald cluster @@ -97,14 +74,15 @@ func main() { } // create a filter client + glg.Info("Start inserting object via vald filter client") var object []byte fclient := vald.NewFilterClient(conn) - for i := 0; i < len(dataset); i++ { + for _, ds := range dataset { icfg := &payload.Insert_ObjectRequest{ // object data to pass to GenVector function of your ingress filter Object: &payload.Object_Blob{ - Id: dataset[i].id, + Id: ds.id, Object: object, }, // insert config @@ -144,62 +122,113 @@ func main() { time.Sleep(wt) // create a search client + glg.Log("Start searching dataset") sclient := vald.NewSearchClient(conn) - scfg := &payload.Search_Config{ - Num: 10, - Epsilon: 0.1, - Radius: -1, - // config to call DistanceVector function of your egress filter - EgressFilters: []*payload.Filter_Config{ - { - Target: &payload.Filter_Target{ - Host: egressServerHost, - Port: uint32(egressServerPort), - }, - Query: &payload.Filter_Query{ - Query: query, + for _, ds := range dataset { + scfg := &payload.Search_Config{ + Num: 10, + Epsilon: 0.1, + Radius: -1, + // config to call DistanceVector function of your egress filter + EgressFilters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ + Host: egressServerHost, + Port: uint32(egressServerPort), + }, + Query: &payload.Filter_Query{ + Query: query, + }, }, }, - }, - } + } - // send Search request - res, err := sclient.Search(ctx, &payload.Search_Request{ - Vector: dataset[0].vector, - Config: scfg, - }) - if err != nil { - glg.Error(err) - return + // send Search request + res, err := sclient.Search(ctx, &payload.Search_Request{ + Vector: ds.vector, + Config: scfg, + }) + if err != nil { + glg.Error(err) + return + } + b, _ := json.MarshalIndent(res.GetResults(), "", " ") + glg.Infof("Results : %s\n\n", string(b)) } - b, _ := json.MarshalIndent(res.GetResults(), "", " ") - glg.Infof("Results : %s\n\n", string(b)) // create an object client + glg.Info("Start GetObject") oclient := vald.NewObjectClient(conn) - vreq := &payload.Object_VectorRequest{ - Id: &payload.Object_ID{Id: dataset[0].id}, - // config to call FilterVector function of your egress filter - Filters: []*payload.Filter_Config{ - { - Target: &payload.Filter_Target{ - Host: egressServerHost, - Port: uint32(egressServerPort), + for _, ds := range dataset { + vreq := &payload.Object_VectorRequest{ + Id: &payload.Object_ID{Id: ds.id}, + // config to call FilterVector function of your egress filter + Filters: []*payload.Filter_Config{ + { + Target: &payload.Filter_Target{ + Host: egressServerHost, + Port: uint32(egressServerPort), + }, + Query: &payload.Filter_Query{}, }, - Query: &payload.Filter_Query{}, }, - }, + } + + // send GetObject request + r, err := oclient.GetObject(ctx, vreq) + if err != nil { + glg.Error(err) + return + } + b, _ := json.Marshal(r.GetVector()) + glg.Infof("Get Object result: %s\n", string(b)) } - // send GetObject request - r, err := oclient.GetObject(ctx, vreq) - if err != nil { - glg.Error(err) - return + // send remove request + glg.Info("Start removing data") + rclient := vald.NewRemoveClient(conn) + + for _, ds := range dataset { + rreq := &payload.Remove_Request{ + Id: &payload.Object_ID{ + Id: ds.id, + }, + } + if _, err := rclient.Remove(ctx, rreq); err != nil { + glg.Errorf("Failed to remove, ID: %v", ds.id) + } else { + glg.Info("Remove ID %v successed", ds.id) + } } +} - b, _ = json.Marshal(r.GetVector()) - glg.Infof("Results : %s\n", string(b)) +func genDataset() []dataset { + // create a data set for operation confirmation + makeVecFn := func(dim int, value float32) []float32 { + vec := make([]float32, dim) + for i := 0; i < dim; i++ { + vec[i] = value + } + return vec + } + return []dataset{ + { + id: "1_fashion", + vector: makeVecFn(int(dimension), 0.1), + }, + { + id: "2_food", + vector: makeVecFn(int(dimension), 0.2), + }, + { + id: "3_fashion", + vector: makeVecFn(int(dimension), 0.3), + }, + { + id: "4_pet", + vector: makeVecFn(int(dimension), 0.4), + }, + } } diff --git a/dockers/example/client/gateway/filter/egress-filter/server/Dockerfile b/example/manifest/filter/egress/Dockerfile similarity index 75% rename from dockers/example/client/gateway/filter/egress-filter/server/Dockerfile rename to example/manifest/filter/egress/Dockerfile index c5a0fa6eea..246b0d41ae 100644 --- a/dockers/example/client/gateway/filter/egress-filter/server/Dockerfile +++ b/example/manifest/filter/egress/Dockerfile @@ -19,22 +19,33 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static ARG DISTROLESS_IMAGE_TAG=nonroot ARG MAINTAINER="vdaas.org vald team " -FROM golang:${GO_VERSION} AS builder +FROM golang:${GO_VERSION} AS golang + +FROM ubuntu:devel AS builder ENV GO111MODULE on +ENV DEBIAN_FRONTEND noninteractive +ENV INITRD No ENV LANG en_US.UTF-8 +ENV GOROOT /opt/go +ENV GOPATH /go +ENV PATH ${PATH}:${GOROOT}/bin:${GOPATH}/bin ENV ORG vdaas ENV REPO vald +ENV PKG filter/egress-filter ENV APP_NAME egress-filter -ENV DIR example/client/gateway/filter/${APP_NAME}/server +ENV DIR example/server/egress-filter # skipcq: DOK-DL3008 RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ + build-essential \ upx \ git \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +COPY --from=golang /usr/local/go $GOROOT RUN mkdir -p "$GOPATH/src" WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} @@ -65,8 +76,18 @@ COPY Makefile.d . WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} COPY Makefile . -RUN make REPO=${ORG} NAME=${REPO} ${DIR}/${APP_NAME} \ - && mv "${DIR}/${APP_NAME}" "/usr/bin/${APP_NAME}" +RUN GO111MODULE=on \ + go build \ + --ldflags "-w -extldflags=-static \ + -buildid=" \ + -mod=readonly \ + -modcacherw \ + -a \ + -tags "osusergo netgo static_build" \ + -trimpath \ + -o ${DIR}/${APP_NAME} \ + ${DIR}/main.go +RUN mv "${DIR}/${APP_NAME}" "/usr/bin/${APP_NAME}" FROM ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG} diff --git a/k8s/example/client/gateway/filter/egress-filter/server/deployment.yaml b/example/manifest/filter/egress/deployment.yaml similarity index 95% rename from k8s/example/client/gateway/filter/egress-filter/server/deployment.yaml rename to example/manifest/filter/egress/deployment.yaml index 62a9b909f7..aa5b122e4f 100644 --- a/k8s/example/client/gateway/filter/egress-filter/server/deployment.yaml +++ b/example/manifest/filter/egress/deployment.yaml @@ -36,7 +36,7 @@ spec: fsGroup: 65532 containers: - name: vald-egress-filter - image: YOUR_DOCKERHUB_ID/vald-egress-filter:latest + image: DOCKERHUB_ID/vald-egress-filter:latest imagePullPolicy: Always ports: - name: grpc diff --git a/k8s/example/client/gateway/filter/egress-filter/server/service.yaml b/example/manifest/filter/egress/service.yaml similarity index 100% rename from k8s/example/client/gateway/filter/egress-filter/server/service.yaml rename to example/manifest/filter/egress/service.yaml diff --git a/dockers/example/client/gateway/filter/ingress-filter/server/Dockerfile b/example/manifest/filter/ingress/Dockerfile similarity index 75% rename from dockers/example/client/gateway/filter/ingress-filter/server/Dockerfile rename to example/manifest/filter/ingress/Dockerfile index 9b4debd877..62e9ebe58b 100644 --- a/dockers/example/client/gateway/filter/ingress-filter/server/Dockerfile +++ b/example/manifest/filter/ingress/Dockerfile @@ -19,22 +19,33 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static ARG DISTROLESS_IMAGE_TAG=nonroot ARG MAINTAINER="vdaas.org vald team " -FROM golang:${GO_VERSION} AS builder +FROM golang:${GO_VERSION} AS golang + +FROM ubuntu:devel AS builder ENV GO111MODULE on +ENV DEBIAN_FRONTEND noninteractive +ENV INITRD No ENV LANG en_US.UTF-8 +ENV GOROOT /opt/go +ENV GOPATH /go +ENV PATH ${PATH}:${GOROOT}/bin:${GOPATH}/bin ENV ORG vdaas ENV REPO vald +ENV PKG filter/ingress-filter ENV APP_NAME ingress-filter -ENV DIR example/client/gateway/filter/${APP_NAME}/server +ENV DIR example/server/ingress-filter # skipcq: DOK-DL3008 RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ + build-essential \ upx \ git \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +COPY --from=golang /usr/local/go $GOROOT RUN mkdir -p "$GOPATH/src" WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} @@ -65,8 +76,18 @@ COPY Makefile.d . WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO} COPY Makefile . -RUN make REPO=${ORG} NAME=${REPO} ${DIR}/${APP_NAME} \ - && mv "${DIR}/${APP_NAME}" "/usr/bin/${APP_NAME}" +RUN GO111MODULE=on \ + go build \ + --ldflags "-w -extldflags=-static \ + -buildid=" \ + -mod=readonly \ + -modcacherw \ + -a \ + -tags "osusergo netgo static_build" \ + -trimpath \ + -o ${DIR}/${APP_NAME} \ + ${DIR}/main.go +RUN mv "${DIR}/${APP_NAME}" "/usr/bin/${APP_NAME}" FROM ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG} diff --git a/k8s/example/client/gateway/filter/ingress-filter/server/deployment.yaml b/example/manifest/filter/ingress/deployment.yaml similarity index 95% rename from k8s/example/client/gateway/filter/ingress-filter/server/deployment.yaml rename to example/manifest/filter/ingress/deployment.yaml index 9a1e27b3ad..46e3c0dcfe 100644 --- a/k8s/example/client/gateway/filter/ingress-filter/server/deployment.yaml +++ b/example/manifest/filter/ingress/deployment.yaml @@ -36,7 +36,7 @@ spec: fsGroup: 65532 containers: - name: vald-ingress-filter - image: YOUR_DOCKERHUB_ID/vald-ingress-filter:latest + image: DOCKERHUB_ID/vald-ingress-filter:latest imagePullPolicy: Always ports: - name: grpc diff --git a/k8s/example/client/gateway/filter/ingress-filter/server/service.yaml b/example/manifest/filter/ingress/service.yaml similarity index 100% rename from k8s/example/client/gateway/filter/ingress-filter/server/service.yaml rename to example/manifest/filter/ingress/service.yaml diff --git a/example/client/gateway/filter/egress-filter/server/main.go b/example/server/egress-filter/main.go similarity index 97% rename from example/client/gateway/filter/egress-filter/server/main.go rename to example/server/egress-filter/main.go index 7a53af0146..d29c3fb652 100644 --- a/example/client/gateway/filter/egress-filter/server/main.go +++ b/example/server/egress-filter/main.go @@ -60,6 +60,7 @@ type myEgressServer struct { func (s *myEgressServer) FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error) { // Write your own logic + glg.Log("filtering vector %#v", in) qCategory, ok := getSplitValue(in.GetQuery().GetQuery(), "=", 1) if !ok { return &payload.Filter_DistanceResponse{ @@ -93,6 +94,7 @@ func (s *myEgressServer) FilterDistance(ctx context.Context, in *payload.Filter_ func (s *myEgressServer) FilterVector(ctx context.Context, in *payload.Filter_VectorRequest) (*payload.Filter_VectorResponse, error) { // Write your own logic + glg.Logf("filtering the vector %#v", in) return &payload.Filter_VectorResponse{ Vector: in.GetVector(), }, nil diff --git a/example/client/gateway/filter/ingress-filter/server/main.go b/example/server/ingress-filter/main.go similarity index 89% rename from example/client/gateway/filter/ingress-filter/server/main.go rename to example/server/ingress-filter/main.go index 9aa52d9479..ab9f5d07ce 100644 --- a/example/client/gateway/filter/ingress-filter/server/main.go +++ b/example/server/ingress-filter/main.go @@ -24,6 +24,7 @@ import ( "github.com/kpango/glg" "github.com/vdaas/vald/apis/grpc/v1/filter/ingress" "github.com/vdaas/vald/apis/grpc/v1/payload" + "github.com/vdaas/vald/internal/test/data/vector" "google.golang.org/grpc" ) @@ -48,15 +49,20 @@ type myIngressServer struct { func (s *myIngressServer) GenVector(ctx context.Context, in *payload.Object_Blob) (*payload.Object_Vector, error) { // Write your own logic - vec := make([]float32, dimension) + glg.Logf("generating vector %#v", in) + vec, err := vector.GenF32Vec(vector.Gaussian, 1, int(dimension)) + if err != nil { + return nil, err + } return &payload.Object_Vector{ Id: in.GetId(), - Vector: vec, + Vector: vec[0], }, nil } func (s *myIngressServer) FilterVector(ctx context.Context, in *payload.Object_Vector) (*payload.Object_Vector, error) { // Write your own logic + glg.Logf("filtering vector %#v", in) return in, nil } diff --git a/internal/client/v1/client/filter/egress/client_test.go b/internal/client/v1/client/filter/egress/client_test.go index 61ef1db072..79c40466da 100644 --- a/internal/client/v1/client/filter/egress/client_test.go +++ b/internal/client/v1/client/filter/egress/client_test.go @@ -541,7 +541,7 @@ package egress // func Test_client_FilterDistance(t *testing.T) { // type args struct { // ctx context.Context -// in *payload.Object_Distance +// in *payload.Filter_DistanceRequest // opts []grpc.CallOption // } // type fields struct { @@ -550,7 +550,7 @@ package egress // c grpc.Client // } // type want struct { -// wantRes *payload.Object_Distance +// wantRes *payload.Filter_DistanceResponse // err error // } // type test struct { @@ -558,11 +558,11 @@ package egress // args args // fields fields // want want -// checkFunc func(want, *payload.Object_Distance, error) error +// checkFunc func(want, *payload.Filter_DistanceResponse, error) error // beforeFunc func(*testing.T, args) // afterFunc func(*testing.T, args) // } -// defaultCheckFunc := func(w want, gotRes *payload.Object_Distance, err error) error { +// defaultCheckFunc := func(w want, gotRes *payload.Filter_DistanceResponse, err error) error { // if !errors.Is(err, w.err) { // return errors.Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err) // } @@ -658,7 +658,7 @@ package egress // func Test_specificAddrClient_FilterDistance(t *testing.T) { // type args struct { // ctx context.Context -// in *payload.Object_Distance +// in *payload.Filter_DistanceRequest // opts []grpc.CallOption // } // type fields struct { @@ -666,7 +666,7 @@ package egress // c grpc.Client // } // type want struct { -// wantRes *payload.Object_Distance +// wantRes *payload.Filter_DistanceResponse // err error // } // type test struct { @@ -674,11 +674,11 @@ package egress // args args // fields fields // want want -// checkFunc func(want, *payload.Object_Distance, error) error +// checkFunc func(want, *payload.Filter_DistanceResponse, error) error // beforeFunc func(*testing.T, args) // afterFunc func(*testing.T, args) // } -// defaultCheckFunc := func(w want, gotRes *payload.Object_Distance, err error) error { +// defaultCheckFunc := func(w want, gotRes *payload.Filter_DistanceResponse, err error) error { // if !errors.Is(err, w.err) { // return errors.Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err) // } @@ -771,7 +771,7 @@ package egress // func Test_multipleAddrsClient_FilterDistance(t *testing.T) { // type args struct { // ctx context.Context -// in *payload.Object_Distance +// in *payload.Filter_DistanceRequest // opts []grpc.CallOption // } // type fields struct { @@ -779,7 +779,7 @@ package egress // c grpc.Client // } // type want struct { -// wantRes *payload.Object_Distance +// wantRes *payload.Filter_DistanceResponse // err error // } // type test struct { @@ -787,11 +787,11 @@ package egress // args args // fields fields // want want -// checkFunc func(want, *payload.Object_Distance, error) error +// checkFunc func(want, *payload.Filter_DistanceResponse, error) error // beforeFunc func(*testing.T, args) // afterFunc func(*testing.T, args) // } -// defaultCheckFunc := func(w want, gotRes *payload.Object_Distance, err error) error { +// defaultCheckFunc := func(w want, gotRes *payload.Filter_DistanceResponse, err error) error { // if !errors.Is(err, w.err) { // return errors.Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err) // } @@ -884,7 +884,7 @@ package egress // func Test_client_FilterVector(t *testing.T) { // type args struct { // ctx context.Context -// in *payload.Object_Vector +// in *payload.Filter_VectorRequest // opts []grpc.CallOption // } // type fields struct { @@ -893,7 +893,7 @@ package egress // c grpc.Client // } // type want struct { -// wantRes *payload.Object_Vector +// wantRes *payload.Filter_VectorResponse // err error // } // type test struct { @@ -901,11 +901,11 @@ package egress // args args // fields fields // want want -// checkFunc func(want, *payload.Object_Vector, error) error +// checkFunc func(want, *payload.Filter_VectorResponse, error) error // beforeFunc func(*testing.T, args) // afterFunc func(*testing.T, args) // } -// defaultCheckFunc := func(w want, gotRes *payload.Object_Vector, err error) error { +// defaultCheckFunc := func(w want, gotRes *payload.Filter_VectorResponse, err error) error { // if !errors.Is(err, w.err) { // return errors.Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err) // } @@ -1001,7 +1001,7 @@ package egress // func Test_specificAddrClient_FilterVector(t *testing.T) { // type args struct { // ctx context.Context -// in *payload.Object_Vector +// in *payload.Filter_VectorRequest // opts []grpc.CallOption // } // type fields struct { @@ -1009,7 +1009,7 @@ package egress // c grpc.Client // } // type want struct { -// wantRes *payload.Object_Vector +// wantRes *payload.Filter_VectorResponse // err error // } // type test struct { @@ -1017,11 +1017,11 @@ package egress // args args // fields fields // want want -// checkFunc func(want, *payload.Object_Vector, error) error +// checkFunc func(want, *payload.Filter_VectorResponse, error) error // beforeFunc func(*testing.T, args) // afterFunc func(*testing.T, args) // } -// defaultCheckFunc := func(w want, gotRes *payload.Object_Vector, err error) error { +// defaultCheckFunc := func(w want, gotRes *payload.Filter_VectorResponse, err error) error { // if !errors.Is(err, w.err) { // return errors.Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err) // } @@ -1114,7 +1114,7 @@ package egress // func Test_multipleAddrsClient_FilterVector(t *testing.T) { // type args struct { // ctx context.Context -// in *payload.Object_Vector +// in *payload.Filter_VectorRequest // opts []grpc.CallOption // } // type fields struct { @@ -1122,7 +1122,7 @@ package egress // c grpc.Client // } // type want struct { -// wantRes *payload.Object_Vector +// wantRes *payload.Filter_VectorResponse // err error // } // type test struct { @@ -1130,11 +1130,11 @@ package egress // args args // fields fields // want want -// checkFunc func(want, *payload.Object_Vector, error) error +// checkFunc func(want, *payload.Filter_VectorResponse, error) error // beforeFunc func(*testing.T, args) // afterFunc func(*testing.T, args) // } -// defaultCheckFunc := func(w want, gotRes *payload.Object_Vector, err error) error { +// defaultCheckFunc := func(w want, gotRes *payload.Filter_VectorResponse, err error) error { // if !errors.Is(err, w.err) { // return errors.Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err) // } diff --git a/internal/config/filter.go b/internal/config/filter.go index 9243c031b3..ac735b4fc8 100644 --- a/internal/config/filter.go +++ b/internal/config/filter.go @@ -19,9 +19,9 @@ package config // EgressFilter represents the EgressFilter configuration. type EgressFilter struct { - Client *GRPCClient `json:"client,omitempty" yaml:"client"` - DistanceFilters []DistanceFilterConfig `json:"distance_filters,omitempty" yaml:"distance_filters"` - ObjectFilters []ObjectFilterConfig `json:"object_filters,omitempty" yaml:"object_filters"` + Client *GRPCClient `json:"client,omitempty" yaml:"client"` + DistanceFilters []*DistanceFilterConfig `json:"distance_filters,omitempty" yaml:"distance_filters"` + ObjectFilters []*ObjectFilterConfig `json:"object_filters,omitempty" yaml:"object_filters"` } // IngressFilter represents the IngressFilter configuration. diff --git a/internal/config/filter_test.go b/internal/config/filter_test.go index ad134e889c..4e7078ea67 100644 --- a/internal/config/filter_test.go +++ b/internal/config/filter_test.go @@ -28,8 +28,8 @@ import ( func TestEgressFilter_Bind(t *testing.T) { type fields struct { Client *GRPCClient - DistanceFilters []string - ObjectFilters []string + DistanceFilters []*DistanceFilterConfig + ObjectFilters []*ObjectFilterConfig } type want struct { want *EgressFilter @@ -53,20 +53,32 @@ func TestEgressFilter_Bind(t *testing.T) { return test{ name: "return EgressFilter when the bind successes", fields: fields{ - DistanceFilters: []string{ - "192.168.1.2", + DistanceFilters: []*DistanceFilterConfig{ + { + Addr: "192.168.1.2", + Query: "distQuery", + }, }, - ObjectFilters: []string{ - "192.168.1.3", + ObjectFilters: []*ObjectFilterConfig{ + { + Addr: "192.168.1.3", + Query: "objQuery", + }, }, }, want: want{ want: &EgressFilter{ - DistanceFilters: []string{ - "192.168.1.2", + DistanceFilters: []*DistanceFilterConfig{ + { + Addr: "192.168.1.2", + Query: "distQuery", + }, }, - ObjectFilters: []string{ - "192.168.1.3", + ObjectFilters: []*ObjectFilterConfig{ + { + Addr: "192.168.1.3", + Query: "objQuery", + }, }, }, }, @@ -76,21 +88,33 @@ func TestEgressFilter_Bind(t *testing.T) { return test{ name: "return EgressFilter when the bind successes and the Client is not nil", fields: fields{ - DistanceFilters: []string{ - "192.168.1.2", + DistanceFilters: []*DistanceFilterConfig{ + { + Addr: "192.168.1.2", + Query: "distQuery", + }, }, - ObjectFilters: []string{ - "192.168.1.3", + ObjectFilters: []*ObjectFilterConfig{ + { + Addr: "192.168.1.3", + Query: "objQuery", + }, }, Client: new(GRPCClient), }, want: want{ want: &EgressFilter{ - DistanceFilters: []string{ - "192.168.1.2", + DistanceFilters: []*DistanceFilterConfig{ + { + Addr: "192.168.1.2", + Query: "distQuery", + }, }, - ObjectFilters: []string{ - "192.168.1.3", + ObjectFilters: []*ObjectFilterConfig{ + { + Addr: "192.168.1.3", + Query: "objQuery", + }, }, Client: &GRPCClient{ ConnectionPool: new(ConnectionPool), @@ -106,17 +130,25 @@ func TestEgressFilter_Bind(t *testing.T) { func() test { suffix := "_FOR_TEST_EGRESS_FILTER_BIND" m := map[string]string{ - "DISTANCE_FILTERS" + suffix: "192.168.1.2", - "OBJECT_FILTERS" + suffix: "192.168.1.3", + "DISTANCE_FILTERS" + suffix: "192.168.1.2", + "OBJECT_FILTERS" + suffix: "192.168.1.3", + "DISTANCE_FILTERS_QUERY" + suffix: "distQuery", + "OBJECT_FILTERS_QUERY" + suffix: "objQuery", } return test{ name: "return EgressFilter when the bind successes and the data is loaded from the environment variable", fields: fields{ - DistanceFilters: []string{ - "_DISTANCE_FILTERS" + suffix + "_", + DistanceFilters: []*DistanceFilterConfig{ + { + Addr: "_DISTANCE_FILTERS" + suffix + "_", + Query: "_DISTANCE_FILTERS_QUERY" + suffix + "_", + }, }, - ObjectFilters: []string{ - "_OBJECT_FILTERS" + suffix + "_", + ObjectFilters: []*ObjectFilterConfig{ + { + Addr: "_OBJECT_FILTERS" + suffix + "_", + Query: "_OBJECT_FILTERS_QUERY" + suffix + "_", + }, }, }, beforeFunc: func(t *testing.T) { @@ -127,11 +159,17 @@ func TestEgressFilter_Bind(t *testing.T) { }, want: want{ want: &EgressFilter{ - DistanceFilters: []string{ - "192.168.1.2", + DistanceFilters: []*DistanceFilterConfig{ + { + Addr: "192.168.1.2", + Query: "distQuery", + }, }, - ObjectFilters: []string{ - "192.168.1.3", + ObjectFilters: []*ObjectFilterConfig{ + { + Addr: "192.168.1.3", + Query: "objQuery", + }, }, }, }, @@ -362,3 +400,189 @@ func TestIngressFilter_Bind(t *testing.T) { } // NOT IMPLEMENTED BELOW +// +// func TestDistanceFilterConfig_Bind(t *testing.T) { +// type fields struct { +// Addr string +// Query string +// } +// type want struct { +// want *DistanceFilterConfig +// } +// type test struct { +// name string +// fields fields +// want want +// checkFunc func(want, *DistanceFilterConfig) error +// beforeFunc func(*testing.T) +// afterFunc func(*testing.T) +// } +// defaultCheckFunc := func(w want, got *DistanceFilterConfig) error { +// if !reflect.DeepEqual(got, w.want) { +// return errors.Errorf("got: \"%#v\",\n\t\t\t\twant: \"%#v\"", got, w.want) +// } +// return nil +// } +// tests := []test{ +// // TODO test cases +// /* +// { +// name: "test_case_1", +// fields: fields { +// Addr:"", +// Query:"", +// }, +// want: want{}, +// checkFunc: defaultCheckFunc, +// beforeFunc: func(t *testing.T,) { +// t.Helper() +// }, +// afterFunc: func(t *testing.T,) { +// t.Helper() +// }, +// }, +// */ +// +// // TODO test cases +// /* +// func() test { +// return test { +// name: "test_case_2", +// fields: fields { +// Addr:"", +// Query:"", +// }, +// want: want{}, +// checkFunc: defaultCheckFunc, +// beforeFunc: func(t *testing.T,) { +// t.Helper() +// }, +// afterFunc: func(t *testing.T,) { +// t.Helper() +// }, +// } +// }(), +// */ +// } +// +// for _, tc := range tests { +// test := tc +// t.Run(test.name, func(tt *testing.T) { +// tt.Parallel() +// defer goleak.VerifyNone(tt, goleak.IgnoreCurrent()) +// if test.beforeFunc != nil { +// test.beforeFunc(tt) +// } +// if test.afterFunc != nil { +// defer test.afterFunc(tt) +// } +// checkFunc := test.checkFunc +// if test.checkFunc == nil { +// checkFunc = defaultCheckFunc +// } +// c := &DistanceFilterConfig{ +// Addr: test.fields.Addr, +// Query: test.fields.Query, +// } +// +// got := c.Bind() +// if err := checkFunc(test.want, got); err != nil { +// tt.Errorf("error = %v", err) +// } +// +// }) +// } +// } +// +// func TestObjectFilterConfig_Bind(t *testing.T) { +// type fields struct { +// Addr string +// Query string +// } +// type want struct { +// want *ObjectFilterConfig +// } +// type test struct { +// name string +// fields fields +// want want +// checkFunc func(want, *ObjectFilterConfig) error +// beforeFunc func(*testing.T) +// afterFunc func(*testing.T) +// } +// defaultCheckFunc := func(w want, got *ObjectFilterConfig) error { +// if !reflect.DeepEqual(got, w.want) { +// return errors.Errorf("got: \"%#v\",\n\t\t\t\twant: \"%#v\"", got, w.want) +// } +// return nil +// } +// tests := []test{ +// // TODO test cases +// /* +// { +// name: "test_case_1", +// fields: fields { +// Addr:"", +// Query:"", +// }, +// want: want{}, +// checkFunc: defaultCheckFunc, +// beforeFunc: func(t *testing.T,) { +// t.Helper() +// }, +// afterFunc: func(t *testing.T,) { +// t.Helper() +// }, +// }, +// */ +// +// // TODO test cases +// /* +// func() test { +// return test { +// name: "test_case_2", +// fields: fields { +// Addr:"", +// Query:"", +// }, +// want: want{}, +// checkFunc: defaultCheckFunc, +// beforeFunc: func(t *testing.T,) { +// t.Helper() +// }, +// afterFunc: func(t *testing.T,) { +// t.Helper() +// }, +// } +// }(), +// */ +// } +// +// for _, tc := range tests { +// test := tc +// t.Run(test.name, func(tt *testing.T) { +// tt.Parallel() +// defer goleak.VerifyNone(tt, goleak.IgnoreCurrent()) +// if test.beforeFunc != nil { +// test.beforeFunc(tt) +// } +// if test.afterFunc != nil { +// defer test.afterFunc(tt) +// } +// checkFunc := test.checkFunc +// if test.checkFunc == nil { +// checkFunc = defaultCheckFunc +// } +// c := &ObjectFilterConfig{ +// Addr: test.fields.Addr, +// Query: test.fields.Query, +// } +// +// got := c.Bind() +// if err := checkFunc(test.want, got); err != nil { +// tt.Errorf("error = %v", err) +// } +// +// }) +// } +// } diff --git a/pkg/gateway/filter/handler/grpc/handler.go b/pkg/gateway/filter/handler/grpc/handler.go index 9044fb9632..5b14826b00 100644 --- a/pkg/gateway/filter/handler/grpc/handler.go +++ b/pkg/gateway/filter/handler/grpc/handler.go @@ -55,8 +55,8 @@ type server struct { copts []grpc.CallOption streamConcurrency int Vectorizer string - DistanceFilters []config.DistanceFilterConfig - ObjectFilters []config.ObjectFilterConfig + DistanceFilters []*config.DistanceFilterConfig + ObjectFilters []*config.ObjectFilterConfig SearchFilters []string InsertFilters []string UpdateFilters []string @@ -1436,10 +1436,10 @@ func (s *server) Search(ctx context.Context, req *payload.Search_Request) (res * } filterConfigs = req.GetConfig().GetEgressFilters() if filterConfigs != nil || s.DistanceFilters != nil { - filters := make([]config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) + filters := make([]*config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) filters = append(filters, s.DistanceFilters...) for _, c := range filterConfigs { - filters = append(filters, config.DistanceFilterConfig{ + filters = append(filters, &config.DistanceFilterConfig{ Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) @@ -1527,10 +1527,10 @@ func (s *server) SearchByID(ctx context.Context, req *payload.Search_IDRequest) } filterConfigs := req.GetConfig().GetEgressFilters() if filterConfigs != nil || s.DistanceFilters != nil { - filters := make([]config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) + filters := make([]*config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) filters = append(filters, s.DistanceFilters...) for _, c := range filterConfigs { - filters = append(filters, config.DistanceFilterConfig{ + filters = append(filters, &config.DistanceFilterConfig{ Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) @@ -1932,10 +1932,10 @@ func (s *server) LinearSearch(ctx context.Context, req *payload.Search_Request) } filterConfigs = req.GetConfig().GetEgressFilters() if filterConfigs != nil || s.DistanceFilters != nil { - filters := make([]config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) + filters := make([]*config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) filters = append(filters, s.DistanceFilters...) for _, c := range filterConfigs { - filters = append(filters, config.DistanceFilterConfig{ + filters = append(filters, &config.DistanceFilterConfig{ Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) @@ -2019,10 +2019,10 @@ func (s *server) LinearSearchByID(ctx context.Context, req *payload.Search_IDReq } filterConfigs := req.GetConfig().GetEgressFilters() if filterConfigs != nil || s.DistanceFilters != nil { - filters := make([]config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) + filters := make([]*config.DistanceFilterConfig, 0, len(filterConfigs)+len(s.DistanceFilters)) filters = append(filters, s.DistanceFilters...) for _, c := range filterConfigs { - filters = append(filters, config.DistanceFilterConfig{ + filters = append(filters, &config.DistanceFilterConfig{ Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) @@ -3357,10 +3357,10 @@ func (s *server) GetObject(ctx context.Context, req *payload.Object_VectorReques } filterConfigs := req.GetFilters() if filterConfigs != nil || s.ObjectFilters != nil { - filters := make([]config.ObjectFilterConfig, 0, len(filterConfigs)+len(s.ObjectFilters)) + filters := make([]*config.ObjectFilterConfig, 0, len(filterConfigs)+len(s.ObjectFilters)) filters = append(filters, s.ObjectFilters...) for _, c := range filterConfigs { - filters = append(filters, config.ObjectFilterConfig{ + filters = append(filters, &config.ObjectFilterConfig{ Addr: net.JoinHostPort(c.GetTarget().GetHost(), uint16(c.GetTarget().GetPort())), Query: c.Query.GetQuery(), }) diff --git a/pkg/gateway/filter/handler/grpc/handler_test.go b/pkg/gateway/filter/handler/grpc/handler_test.go index f0e5ff8a2e..b49b19276c 100644 --- a/pkg/gateway/filter/handler/grpc/handler_test.go +++ b/pkg/gateway/filter/handler/grpc/handler_test.go @@ -122,8 +122,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -296,8 +296,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -469,8 +469,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -637,8 +637,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -811,8 +811,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -984,8 +984,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -1152,8 +1152,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -1325,8 +1325,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -1493,8 +1493,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -1667,8 +1667,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -1840,8 +1840,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -2008,8 +2008,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -2182,8 +2182,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -2355,8 +2355,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -2523,8 +2523,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -2697,8 +2697,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -2871,8 +2871,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -3045,8 +3045,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -3218,8 +3218,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -3385,8 +3385,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -3553,8 +3553,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -3727,8 +3727,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -3901,8 +3901,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -4075,8 +4075,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -4248,8 +4248,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -4415,8 +4415,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -4583,8 +4583,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -4757,8 +4757,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -4931,8 +4931,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -5104,8 +5104,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -5272,8 +5272,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -5446,8 +5446,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -5619,8 +5619,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -5787,8 +5787,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -5961,8 +5961,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -6134,8 +6134,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -6302,8 +6302,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -6476,8 +6476,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -6649,8 +6649,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -6817,8 +6817,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -6991,8 +6991,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string @@ -7164,8 +7164,8 @@ package grpc // copts []grpc.CallOption // streamConcurrency int // Vectorizer string -// DistanceFilters []string -// ObjectFilters []string +// DistanceFilters []*config.DistanceFilterConfig +// ObjectFilters []*config.ObjectFilterConfig // SearchFilters []string // InsertFilters []string // UpdateFilters []string diff --git a/pkg/gateway/filter/handler/grpc/option.go b/pkg/gateway/filter/handler/grpc/option.go index a32016ec57..310221444c 100644 --- a/pkg/gateway/filter/handler/grpc/option.go +++ b/pkg/gateway/filter/handler/grpc/option.go @@ -112,7 +112,7 @@ func WithVectorizerTargets(addr string) Option { } } -func WithDistanceFilterTargets(cs ...config.DistanceFilterConfig) Option { +func WithDistanceFilterTargets(cs ...*config.DistanceFilterConfig) Option { return func(s *server) { if len(cs) == 0 { return @@ -125,7 +125,7 @@ func WithDistanceFilterTargets(cs ...config.DistanceFilterConfig) Option { } } -func WithObjectFilterTargets(cs ...config.ObjectFilterConfig) Option { +func WithObjectFilterTargets(cs ...*config.ObjectFilterConfig) Option { return func(s *server) { if len(cs) == 0 { return diff --git a/pkg/gateway/filter/handler/grpc/option_test.go b/pkg/gateway/filter/handler/grpc/option_test.go index 55334164c0..fc5037e98a 100644 --- a/pkg/gateway/filter/handler/grpc/option_test.go +++ b/pkg/gateway/filter/handler/grpc/option_test.go @@ -709,7 +709,7 @@ package grpc // // func TestWithDistanceFilterTargets(t *testing.T) { // type args struct { -// addrs []string +// cs []*config.DistanceFilterConfig // } // type want struct { // want Option @@ -734,7 +734,7 @@ package grpc // { // name: "test_case_1", // args: args { -// addrs:nil, +// cs:nil, // }, // want: want{}, // checkFunc: defaultCheckFunc, @@ -753,7 +753,7 @@ package grpc // return test { // name: "test_case_2", // args: args { -// addrs:nil, +// cs:nil, // }, // want: want{}, // checkFunc: defaultCheckFunc, @@ -784,7 +784,7 @@ package grpc // checkFunc = defaultCheckFunc // } // -// got := WithDistanceFilterTargets(test.args.addrs...) +// got := WithDistanceFilterTargets(test.args.cs...) // if err := checkFunc(test.want, got); err != nil { // tt.Errorf("error = %v", err) // } @@ -795,7 +795,7 @@ package grpc // // func TestWithObjectFilterTargets(t *testing.T) { // type args struct { -// addrs []string +// cs []*config.ObjectFilterConfig // } // type want struct { // want Option @@ -820,7 +820,7 @@ package grpc // { // name: "test_case_1", // args: args { -// addrs:nil, +// cs:nil, // }, // want: want{}, // checkFunc: defaultCheckFunc, @@ -839,7 +839,7 @@ package grpc // return test { // name: "test_case_2", // args: args { -// addrs:nil, +// cs:nil, // }, // want: want{}, // checkFunc: defaultCheckFunc, @@ -870,7 +870,7 @@ package grpc // checkFunc = defaultCheckFunc // } // -// got := WithObjectFilterTargets(test.args.addrs...) +// got := WithObjectFilterTargets(test.args.cs...) // if err := checkFunc(test.want, got); err != nil { // tt.Errorf("error = %v", err) // } From 84858ab2036e99048526c5d567a3e530272ba996 Mon Sep 17 00:00:00 2001 From: kevindiu Date: Tue, 10 Oct 2023 04:20:47 +0000 Subject: [PATCH 04/43] fix example client Signed-off-by: kevindiu --- example/client/gateway/filter/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/client/gateway/filter/main.go b/example/client/gateway/filter/main.go index d78ff78c57..72342d38c4 100644 --- a/example/client/gateway/filter/main.go +++ b/example/client/gateway/filter/main.go @@ -199,7 +199,7 @@ func main() { if _, err := rclient.Remove(ctx, rreq); err != nil { glg.Errorf("Failed to remove, ID: %v", ds.id) } else { - glg.Info("Remove ID %v successed", ds.id) + glg.Infof("Remove ID %v successed", ds.id) } } } From 5868c55fa00595e93b14fecce7f87d9624027cfe Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 16 Oct 2023 17:28:25 +0900 Subject: [PATCH 05/43] refactor: example code Signed-off-by: hlts2 --- example/client/gateway/filter/egress-filter/main.go | 4 ++-- example/client/gateway/filter/ingress-filter/main.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/client/gateway/filter/egress-filter/main.go b/example/client/gateway/filter/egress-filter/main.go index 5b243f33c1..08bf668749 100644 --- a/example/client/gateway/filter/egress-filter/main.go +++ b/example/client/gateway/filter/egress-filter/main.go @@ -99,7 +99,7 @@ func main() { }) if err != nil { glg.Error(err) - } else { - glg.Info("FilterVector Vector: ", r.GetVector()) + return } + glg.Info("FilterVector Vector: ", r.GetVector()) } diff --git a/example/client/gateway/filter/ingress-filter/main.go b/example/client/gateway/filter/ingress-filter/main.go index 8769665363..533ef2b24a 100644 --- a/example/client/gateway/filter/ingress-filter/main.go +++ b/example/client/gateway/filter/ingress-filter/main.go @@ -71,7 +71,7 @@ func main() { res, err = client.FilterVector(context.Background(), &payload.Object_Vector{Id: "1", Vector: make([]float32, dimension)}) if err != nil { glg.Error(err) - } else { - glg.Info("FilterVector Id: ", res.GetId()) + return } + glg.Info("FilterVector Id: ", res.GetId()) } From 836ae35892602a16acc61d9e23033a61a166d55c Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 16 Oct 2023 17:32:26 +0900 Subject: [PATCH 06/43] fix: execute make format Signed-off-by: hlts2 --- .../filter/egress/egress_filter_vtproto.pb.go | 19 ++++++++++++++++--- apis/grpc/v1/payload/payload.pb.go | 5 +++-- .../v1/filter/egress/egress_filter.proto | 6 ++---- apis/proto/v1/payload/payload.proto | 2 +- .../gateway/filter/egress-filter/main.go | 2 +- .../gateway/filter/ingress-filter/main.go | 2 +- example/client/gateway/filter/main.go | 2 +- example/manifest/filter/egress/Dockerfile | 2 +- .../manifest/filter/egress/deployment.yaml | 2 +- example/manifest/filter/egress/service.yaml | 2 +- example/manifest/filter/ingress/Dockerfile | 2 +- .../manifest/filter/ingress/deployment.yaml | 2 +- example/manifest/filter/ingress/service.yaml | 2 +- example/server/egress-filter/main.go | 2 +- example/server/ingress-filter/main.go | 2 +- 15 files changed, 33 insertions(+), 21 deletions(-) diff --git a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go index 2493cd9b8d..737a20d42d 100644 --- a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go @@ -1,11 +1,24 @@ -// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.5.0 -// source: apis/proto/v1/filter/egress/egress_filter.proto +// +// Copyright (C) 2019-2023 vdaas.org vald team +// +// 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 +// +// https://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. +// package egress import ( context "context" + payload "github.com/vdaas/vald/apis/grpc/v1/payload" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index 60f7bbad35..e20b8d83d1 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -23,13 +23,14 @@ package payload import ( + reflect "reflect" + sync "sync" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/planetscale/vtprotobuf/vtproto" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( diff --git a/apis/proto/v1/filter/egress/egress_filter.proto b/apis/proto/v1/filter/egress/egress_filter.proto index d4526d0928..96f66e0ba0 100644 --- a/apis/proto/v1/filter/egress/egress_filter.proto +++ b/apis/proto/v1/filter/egress/egress_filter.proto @@ -29,8 +29,7 @@ option java_package = "org.vdaas.vald.api.v1.filter.egress"; // Represent the egress filter service. service Filter { // Represent the RPC to filter the distance. - rpc FilterDistance(payload.v1.Filter.DistanceRequest) - returns (payload.v1.Filter.DistanceResponse) { + rpc FilterDistance(payload.v1.Filter.DistanceRequest) returns (payload.v1.Filter.DistanceResponse) { option (google.api.http) = { post: "/filter/egress/distance" body: "*" @@ -38,8 +37,7 @@ service Filter { } // Represent the RPC to filter the vector. - rpc FilterVector(payload.v1.Filter.VectorRequest) - returns (payload.v1.Filter.VectorResponse) { + rpc FilterVector(payload.v1.Filter.VectorRequest) returns (payload.v1.Filter.VectorResponse) { option (google.api.http) = { post: "/filter/egress/vector" body: "*" diff --git a/apis/proto/v1/payload/payload.proto b/apis/proto/v1/payload/payload.proto index fb83d5256d..7f06056d01 100644 --- a/apis/proto/v1/payload/payload.proto +++ b/apis/proto/v1/payload/payload.proto @@ -149,7 +149,7 @@ message Filter { // Represent filter configuration. message Config { // Represent the filter target configuration. - Target target = 1; + Target target = 1; // The target query. Query query = 2; } diff --git a/example/client/gateway/filter/egress-filter/main.go b/example/client/gateway/filter/egress-filter/main.go index 08bf668749..93a69db4cd 100644 --- a/example/client/gateway/filter/egress-filter/main.go +++ b/example/client/gateway/filter/egress-filter/main.go @@ -1,7 +1,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/client/gateway/filter/ingress-filter/main.go b/example/client/gateway/filter/ingress-filter/main.go index 533ef2b24a..0a89023491 100644 --- a/example/client/gateway/filter/ingress-filter/main.go +++ b/example/client/gateway/filter/ingress-filter/main.go @@ -1,7 +1,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/client/gateway/filter/main.go b/example/client/gateway/filter/main.go index 72342d38c4..b09675349c 100644 --- a/example/client/gateway/filter/main.go +++ b/example/client/gateway/filter/main.go @@ -1,7 +1,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/manifest/filter/egress/Dockerfile b/example/manifest/filter/egress/Dockerfile index 246b0d41ae..1422c00739 100644 --- a/example/manifest/filter/egress/Dockerfile +++ b/example/manifest/filter/egress/Dockerfile @@ -2,7 +2,7 @@ # Copyright (C) 2019-2023 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. +# You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/manifest/filter/egress/deployment.yaml b/example/manifest/filter/egress/deployment.yaml index aa5b122e4f..7fa4adeb72 100644 --- a/example/manifest/filter/egress/deployment.yaml +++ b/example/manifest/filter/egress/deployment.yaml @@ -2,7 +2,7 @@ # Copyright (C) 2019-2023 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. +# You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/manifest/filter/egress/service.yaml b/example/manifest/filter/egress/service.yaml index ee5ca19505..fb7ae334ae 100644 --- a/example/manifest/filter/egress/service.yaml +++ b/example/manifest/filter/egress/service.yaml @@ -2,7 +2,7 @@ # Copyright (C) 2019-2023 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. +# You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/manifest/filter/ingress/Dockerfile b/example/manifest/filter/ingress/Dockerfile index 62e9ebe58b..4a7f0a08fe 100644 --- a/example/manifest/filter/ingress/Dockerfile +++ b/example/manifest/filter/ingress/Dockerfile @@ -2,7 +2,7 @@ # Copyright (C) 2019-2023 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. +# You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/manifest/filter/ingress/deployment.yaml b/example/manifest/filter/ingress/deployment.yaml index 46e3c0dcfe..a83124a8b7 100644 --- a/example/manifest/filter/ingress/deployment.yaml +++ b/example/manifest/filter/ingress/deployment.yaml @@ -2,7 +2,7 @@ # Copyright (C) 2019-2023 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. +# You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/manifest/filter/ingress/service.yaml b/example/manifest/filter/ingress/service.yaml index 6d6872e97a..3a52fbd133 100644 --- a/example/manifest/filter/ingress/service.yaml +++ b/example/manifest/filter/ingress/service.yaml @@ -2,7 +2,7 @@ # Copyright (C) 2019-2023 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. +# You may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/server/egress-filter/main.go b/example/server/egress-filter/main.go index d29c3fb652..48ebf23d8f 100644 --- a/example/server/egress-filter/main.go +++ b/example/server/egress-filter/main.go @@ -1,7 +1,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 diff --git a/example/server/ingress-filter/main.go b/example/server/ingress-filter/main.go index ab9f5d07ce..7610cdc796 100644 --- a/example/server/ingress-filter/main.go +++ b/example/server/ingress-filter/main.go @@ -1,7 +1,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 From 7700e8d5abcfb8e487f64ed27abf5ffd244224ee Mon Sep 17 00:00:00 2001 From: hlts2 Date: Tue, 17 Oct 2023 11:16:51 +0900 Subject: [PATCH 07/43] fix: refactor example code Signed-off-by: hlts2 --- example/client/gateway/filter/egress-filter/main.go | 4 ++-- example/client/gateway/filter/ingress-filter/main.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/client/gateway/filter/egress-filter/main.go b/example/client/gateway/filter/egress-filter/main.go index 93a69db4cd..7a142ca6c0 100644 --- a/example/client/gateway/filter/egress-filter/main.go +++ b/example/client/gateway/filter/egress-filter/main.go @@ -87,9 +87,9 @@ func main() { res, err := client.FilterDistance(context.Background(), fdr) if err != nil { glg.Error(err) - } else { - glg.Info("FilterDistance Distance: ", res.GetDistance()) + return } + glg.Info("FilterDistance Distance: ", res.GetDistance()) r, err := client.FilterVector(context.Background(), &payload.Filter_VectorRequest{ Vector: &payload.Object_Vector{ diff --git a/example/client/gateway/filter/ingress-filter/main.go b/example/client/gateway/filter/ingress-filter/main.go index 0a89023491..abf7204c29 100644 --- a/example/client/gateway/filter/ingress-filter/main.go +++ b/example/client/gateway/filter/ingress-filter/main.go @@ -64,9 +64,9 @@ func main() { res, err := client.GenVector(context.Background(), &payload.Object_Blob{Id: "1", Object: make([]byte, 0)}) if err != nil { glg.Error(err) - } else { - glg.Info("GenVector Vector: ", res.GetVector()) + return } + glg.Info("GenVector Vector: ", res.GetVector()) res, err = client.FilterVector(context.Background(), &payload.Object_Vector{Id: "1", Vector: make([]float32, dimension)}) if err != nil { From 5c42cb997c7d4f4d954bdf9de1d6fc364f732b8f Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Tue, 24 Oct 2023 14:23:45 +0900 Subject: [PATCH 08/43] Update example/client/gateway/filter/README.md Co-authored-by: Kiichiro YUKAWA --- example/client/gateway/filter/README.md | 37 +++++++++++++------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/example/client/gateway/filter/README.md b/example/client/gateway/filter/README.md index f0e52d54bd..700a58e145 100644 --- a/example/client/gateway/filter/README.md +++ b/example/client/gateway/filter/README.md @@ -2,25 +2,26 @@ After launching the k8s cluster, do the following steps at the root directory. 1. Deploy Vald cluster with filter-gateway -```bash -vim example/helm/values.yaml ---- -... -gateway: -... - filter: - enabled: true -... -agent: - ngt: - dimension: 784 - distance_type: l2 -... -# deploy vald cluster -helm repo add vald https://vald.vdaas.org/charts -helm install vald vald/vald --values example/helm/values.yaml -``` + ```bash + vim example/helm/values.yaml + --- + ... + gateway: + ... + filter: + enabled: true + ... + agent: + ngt: + dimension: 784 + distance_type: l2 + ... + + # deploy vald cluster + helm repo add vald https://vald.vdaas.org/charts + helm install vald vald/vald --values example/helm/values.yaml + ``` 2. Build and publish example ingress filter and egress filter docker image From 7d323967db97f5a8280a02a8cfbf46dfb260cb86 Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Tue, 24 Oct 2023 14:23:58 +0900 Subject: [PATCH 09/43] Update example/client/gateway/filter/README.md Co-authored-by: Kiichiro YUKAWA --- example/client/gateway/filter/README.md | 42 ++++++++++++------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/example/client/gateway/filter/README.md b/example/client/gateway/filter/README.md index 700a58e145..bd943df1f3 100644 --- a/example/client/gateway/filter/README.md +++ b/example/client/gateway/filter/README.md @@ -25,27 +25,27 @@ After launching the k8s cluster, do the following steps at the root directory. 2. Build and publish example ingress filter and egress filter docker image -```bash -# login to docker if needed, and setup your DockerHub ID -docker login -export DOCKERHUB_ID= - -# build and publish ingress filter image -docker build \ - -f example/manifest/filter/ingress/Dockerfile \ - -t $DOCKERHUB_ID/vald-ingress-filter:latest . \ - --build-arg GO_VERSION=$(make version/go) - -docker push ${DOCKERHUB_ID}/vald-ingress-filter:latest - -# build and publish egress filter image -docker build \ - -f example/manifest/filter/egress/Dockerfile \ - -t $DOCKERHUB_ID/vald-egress-filter:latest . \ - --build-arg GO_VERSION=$(make version/go) - -docker push ${DOCKERHUB_ID}/vald-egress-filter:latest -``` + ```bash + # login to docker if needed, and setup your DockerHub ID + docker login + export DOCKERHUB_ID= + + # build and publish ingress filter image + docker build \ + -f example/manifest/filter/ingress/Dockerfile \ + -t $DOCKERHUB_ID/vald-ingress-filter:latest . \ + --build-arg GO_VERSION=$(make version/go) + + docker push ${DOCKERHUB_ID}/vald-ingress-filter:latest + + # build and publish egress filter image + docker build \ + -f example/manifest/filter/egress/Dockerfile \ + -t $DOCKERHUB_ID/vald-egress-filter:latest . \ + --build-arg GO_VERSION=$(make version/go) + + docker push ${DOCKERHUB_ID}/vald-egress-filter:latest + ``` 3. Deploy ingress filter server and egress filter server ```bash From f274d39fe6a7540c09d49c69ca32e1cad23bc8e5 Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Tue, 24 Oct 2023 14:24:09 +0900 Subject: [PATCH 10/43] Update example/client/gateway/filter/README.md Co-authored-by: Kiichiro YUKAWA --- example/client/gateway/filter/README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/example/client/gateway/filter/README.md b/example/client/gateway/filter/README.md index bd943df1f3..2458d11736 100644 --- a/example/client/gateway/filter/README.md +++ b/example/client/gateway/filter/README.md @@ -59,13 +59,14 @@ sed -e "s/DOCKERHUB_ID/${DOCKERHUB_ID}/g" example/manifest/filter/ingress/deploy ``` 4. Run test -```bash -# if you don't use the Kubernetes ingress, set the port forward -kubectl port-forward deployment/vald-filter-gateway 8081:8081 -# Please change the argument according to your environment. -go run ./example/client/gateway/filter/main.go -addr "localhost:8081" -ingresshost "vald-ingress-filter.default.svc.cluster.local" -ingressport 8082 -egresshost "vald-egress-filter.default.svc.cluster.local" -egressport 8083 -``` + ```bash + # if you don't use the Kubernetes ingress, set the port forward + kubectl port-forward deployment/vald-filter-gateway 8081:8081 + + # Please change the argument according to your environment. + go run ./example/client/gateway/filter/main.go -addr "localhost:8081" -ingresshost "vald-ingress-filter.default.svc.cluster.local" -ingressport 8082 -egresshost "vald-egress-filter.default.svc.cluster.local" -egressport 8083 + ``` 5. Cleanup ```bash From 897673e67503e3adc5c00f871459fe9daf84f859 Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Tue, 24 Oct 2023 14:24:19 +0900 Subject: [PATCH 11/43] Update example/client/gateway/filter/README.md Co-authored-by: Kiichiro YUKAWA --- example/client/gateway/filter/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/example/client/gateway/filter/README.md b/example/client/gateway/filter/README.md index 2458d11736..45885b79bf 100644 --- a/example/client/gateway/filter/README.md +++ b/example/client/gateway/filter/README.md @@ -69,7 +69,8 @@ sed -e "s/DOCKERHUB_ID/${DOCKERHUB_ID}/g" example/manifest/filter/ingress/deploy ``` 5. Cleanup -```bash -helm uninstall vald -kubectl delete -f ./example/manifest/filter/egress/deployment.yaml -f ./example/manifest/filter/egress/service.yaml -f ./example/manifest/filter/ingress/deployment.yaml -f ./example/manifest/filter/ingress/service.yaml -``` \ No newline at end of file + + ```bash + helm uninstall vald + kubectl delete -f ./example/manifest/filter/egress/deployment.yaml -f ./example/manifest/filter/egress/service.yaml -f ./example/manifest/filter/ingress/deployment.yaml -f ./example/manifest/filter/ingress/service.yaml + ``` \ No newline at end of file From 1ab1494804c7eec36b8078f44a73c3f6a8471210 Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Tue, 24 Oct 2023 14:24:37 +0900 Subject: [PATCH 12/43] Update example/client/gateway/filter/README.md Co-authored-by: Kiichiro YUKAWA --- example/client/gateway/filter/README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/example/client/gateway/filter/README.md b/example/client/gateway/filter/README.md index 45885b79bf..f2ecc00174 100644 --- a/example/client/gateway/filter/README.md +++ b/example/client/gateway/filter/README.md @@ -48,15 +48,16 @@ After launching the k8s cluster, do the following steps at the root directory. ``` 3. Deploy ingress filter server and egress filter server -```bash -# deploy ingress filter -sed -e "s/DOCKERHUB_ID/${DOCKERHUB_ID}/g" example/manifest/filter/egress/deployment.yaml | kubectl apply -f - \ -&& kubectl apply -f example/manifest/filter/egress/service.yaml -# deploy egress filter -sed -e "s/DOCKERHUB_ID/${DOCKERHUB_ID}/g" example/manifest/filter/ingress/deployment.yaml | kubectl apply -f - \ -&& kubectl apply -f example/manifest/filter/ingress/service.yaml -``` + ```bash + # deploy ingress filter + sed -e "s/DOCKERHUB_ID/${DOCKERHUB_ID}/g" example/manifest/filter/egress/deployment.yaml | kubectl apply -f - \ + && kubectl apply -f example/manifest/filter/egress/service.yaml + + # deploy egress filter + sed -e "s/DOCKERHUB_ID/${DOCKERHUB_ID}/g" example/manifest/filter/ingress/deployment.yaml | kubectl apply -f - \ + && kubectl apply -f example/manifest/filter/ingress/service.yaml + ``` 4. Run test From c7a94e0f151ceab1367fe0e8b898eaa96ad1d8ff Mon Sep 17 00:00:00 2001 From: hlts2 Date: Tue, 28 Nov 2023 14:25:56 +0900 Subject: [PATCH 13/43] fix: make proto/all format Signed-off-by: hlts2 --- apis/docs/v1/docs.md | 1760 ++++++++--------- apis/grpc/v1/agent/core/agent.pb.go | 2 +- apis/grpc/v1/agent/sidecar/sidecar.pb.go | 2 +- apis/grpc/v1/discoverer/discoverer.pb.go | 2 +- .../grpc/v1/filter/egress/egress_filter.pb.go | 2 +- .../filter/egress/egress_filter_vtproto.pb.go | 4 +- .../v1/filter/ingress/ingress_filter.pb.go | 2 +- .../grpc/v1/manager/index/index_manager.pb.go | 2 +- apis/grpc/v1/payload/payload.pb.go | 1007 +++++++--- apis/grpc/v1/payload/payload_vtproto.pb.go | 4 +- .../v1/rpc/errdetails/error_details.pb.go | 2 +- apis/grpc/v1/vald/filter.pb.go | 2 +- apis/grpc/v1/vald/insert.pb.go | 2 +- apis/grpc/v1/vald/object.pb.go | 2 +- apis/grpc/v1/vald/remove.pb.go | 2 +- apis/grpc/v1/vald/search.pb.go | 2 +- apis/grpc/v1/vald/update.pb.go | 2 +- apis/grpc/v1/vald/upsert.pb.go | 2 +- 18 files changed, 1588 insertions(+), 1215 deletions(-) diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index ab00a44a5f..8e09b0cc11 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -4,32 +4,18 @@ ## Table of Contents +- [apis/proto/v1/agent/core/agent.proto](#apis_proto_v1_agent_core_agent-proto) + - [Agent](#core-v1-Agent) +- [apis/proto/v1/agent/sidecar/sidecar.proto](#apis_proto_v1_agent_sidecar_sidecar-proto) + - [Sidecar](#sidecar-v1-Sidecar) +- [apis/proto/v1/discoverer/discoverer.proto](#apis_proto_v1_discoverer_discoverer-proto) + - [Discoverer](#discoverer-v1-Discoverer) - [apis/proto/v1/filter/egress/egress_filter.proto](#apis_proto_v1_filter_egress_egress_filter-proto) - [Filter](#filter-egress-v1-Filter) - [apis/proto/v1/filter/ingress/ingress_filter.proto](#apis_proto_v1_filter_ingress_ingress_filter-proto) - [Filter](#filter-ingress-v1-Filter) -- [apis/proto/v1/rpc/error_details.proto](#apis_proto_v1_rpc_error_details-proto) - - [BadRequest](#rpc-v1-BadRequest) - - [BadRequest.FieldViolation](#rpc-v1-BadRequest-FieldViolation) - - [DebugInfo](#rpc-v1-DebugInfo) - - [ErrorInfo](#rpc-v1-ErrorInfo) - - [ErrorInfo.MetadataEntry](#rpc-v1-ErrorInfo-MetadataEntry) - - [Help](#rpc-v1-Help) - - [Help.Link](#rpc-v1-Help-Link) - - [LocalizedMessage](#rpc-v1-LocalizedMessage) - - [PreconditionFailure](#rpc-v1-PreconditionFailure) - - [PreconditionFailure.Violation](#rpc-v1-PreconditionFailure-Violation) - - [QuotaFailure](#rpc-v1-QuotaFailure) - - [QuotaFailure.Violation](#rpc-v1-QuotaFailure-Violation) - - [RequestInfo](#rpc-v1-RequestInfo) - - [ResourceInfo](#rpc-v1-ResourceInfo) - - [RetryInfo](#rpc-v1-RetryInfo) - [apis/proto/v1/manager/index/index_manager.proto](#apis_proto_v1_manager_index_index_manager-proto) - [Index](#manager-index-v1-Index) -- [apis/proto/v1/agent/sidecar/sidecar.proto](#apis_proto_v1_agent_sidecar_sidecar-proto) - - [Sidecar](#sidecar-v1-Sidecar) -- [apis/proto/v1/agent/core/agent.proto](#apis_proto_v1_agent_core_agent-proto) - - [Agent](#core-v1-Agent) - [apis/proto/v1/payload/payload.proto](#apis_proto_v1_payload_payload-proto) - [Control](#payload-v1-Control) @@ -117,24 +103,90 @@ - [Remove.Timestamp.Operator](#payload-v1-Remove-Timestamp-Operator) - [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) -- [apis/proto/v1/discoverer/discoverer.proto](#apis_proto_v1_discoverer_discoverer-proto) - - [Discoverer](#discoverer-v1-Discoverer) -- [apis/proto/v1/vald/remove.proto](#apis_proto_v1_vald_remove-proto) - - [Remove](#vald-v1-Remove) +- [apis/proto/v1/vald/filter.proto](#apis_proto_v1_vald_filter-proto) + - [Filter](#vald-v1-Filter) - [apis/proto/v1/vald/insert.proto](#apis_proto_v1_vald_insert-proto) - [Insert](#vald-v1-Insert) -- [apis/proto/v1/vald/upsert.proto](#apis_proto_v1_vald_upsert-proto) - - [Upsert](#vald-v1-Upsert) - [apis/proto/v1/vald/object.proto](#apis_proto_v1_vald_object-proto) - [Object](#vald-v1-Object) -- [apis/proto/v1/vald/filter.proto](#apis_proto_v1_vald_filter-proto) - - [Filter](#vald-v1-Filter) +- [apis/proto/v1/vald/remove.proto](#apis_proto_v1_vald_remove-proto) + - [Remove](#vald-v1-Remove) - [apis/proto/v1/vald/search.proto](#apis_proto_v1_vald_search-proto) - [Search](#vald-v1-Search) - [apis/proto/v1/vald/update.proto](#apis_proto_v1_vald_update-proto) - [Update](#vald-v1-Update) +- [apis/proto/v1/vald/upsert.proto](#apis_proto_v1_vald_upsert-proto) + - [Upsert](#vald-v1-Upsert) +- [apis/proto/v1/rpc/error_details.proto](#apis_proto_v1_rpc_error_details-proto) + - [BadRequest](#rpc-v1-BadRequest) + - [BadRequest.FieldViolation](#rpc-v1-BadRequest-FieldViolation) + - [DebugInfo](#rpc-v1-DebugInfo) + - [ErrorInfo](#rpc-v1-ErrorInfo) + - [ErrorInfo.MetadataEntry](#rpc-v1-ErrorInfo-MetadataEntry) + - [Help](#rpc-v1-Help) + - [Help.Link](#rpc-v1-Help-Link) + - [LocalizedMessage](#rpc-v1-LocalizedMessage) + - [PreconditionFailure](#rpc-v1-PreconditionFailure) + - [PreconditionFailure.Violation](#rpc-v1-PreconditionFailure-Violation) + - [QuotaFailure](#rpc-v1-QuotaFailure) + - [QuotaFailure.Violation](#rpc-v1-QuotaFailure-Violation) + - [RequestInfo](#rpc-v1-RequestInfo) + - [ResourceInfo](#rpc-v1-ResourceInfo) + - [RetryInfo](#rpc-v1-RetryInfo) - [Scalar Value Types](#scalar-value-types) + + +

Top

+ +## apis/proto/v1/agent/core/agent.proto + + + +### Agent + +Represent the agent service. + +| Method Name | Request Type | Response Type | Description | +| ------------------ | -------------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- | +| CreateIndex | [.payload.v1.Control.CreateIndexRequest](#payload-v1-Control-CreateIndexRequest) | [.payload.v1.Empty](#payload-v1-Empty) | Represent the creating index RPC. | +| SaveIndex | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Empty](#payload-v1-Empty) | Represent the saving index RPC. | +| CreateAndSaveIndex | [.payload.v1.Control.CreateIndexRequest](#payload-v1-Control-CreateIndexRequest) | [.payload.v1.Empty](#payload-v1-Empty) | Represent the creating and saving index RPC. | +| IndexInfo | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Count](#payload-v1-Info-Index-Count) | Represent the RPC to get the agent index information. | +| GetTimestamp | [.payload.v1.Object.GetTimestampRequest](#payload-v1-Object-GetTimestampRequest) | [.payload.v1.Object.Timestamp](#payload-v1-Object-Timestamp) | Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process | + + + +

Top

+ +## apis/proto/v1/agent/sidecar/sidecar.proto + + + +### Sidecar + +Represent the agent sidecar service. + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ----------- | + + + +

Top

+ +## apis/proto/v1/discoverer/discoverer.proto + + + +### Discoverer + +Represent the discoverer service. + +| Method Name | Request Type | Response Type | Description | +| ----------- | ---------------------------------------------------------------- | ------------------------------------------------ | ---------------------------------------------------- | +| Pods | [.payload.v1.Discoverer.Request](#payload-v1-Discoverer-Request) | [.payload.v1.Info.Pods](#payload-v1-Info-Pods) | Represent the RPC to get the agent pods information. | +| Nodes | [.payload.v1.Discoverer.Request](#payload-v1-Discoverer-Request) | [.payload.v1.Info.Nodes](#payload-v1-Info-Nodes) | Represent the RPC to get the node information. | +

Top

@@ -169,1319 +221,1267 @@ Represent the ingress filter service. | GenVector | [.payload.v1.Object.Blob](#payload-v1-Object-Blob) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to generate the vector. | | FilterVector | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to filter the vector. | - +

Top

-## apis/proto/v1/rpc/error_details.proto +## apis/proto/v1/manager/index/index_manager.proto - + -### BadRequest +### Index -Describes violations in a client request. This error type focuses on the -syntactic aspects of the request. +Represent the index manager service. -| Field | Type | Label | Description | -| ---------------- | -------------------------------------------------------------- | -------- | --------------------------------------------- | -| field_violations | [BadRequest.FieldViolation](#rpc-v1-BadRequest-FieldViolation) | repeated | Describes all violations in a client request. | +| Method Name | Request Type | Response Type | Description | +| ----------- | -------------------------------------- | ------------------------------------------------------------ | ----------------------------------------------- | +| IndexInfo | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Count](#payload-v1-Info-Index-Count) | Represent the RPC to get the index information. | - + -### BadRequest.FieldViolation +

Top

-A message type used to describe a single bad request field. +## apis/proto/v1/payload/payload.proto -| Field | Type | Label | Description | -| ----- | ----------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| field | [string](#string) | | A path that leads to a field in the request body. The value will be a sequence of dot-separated identifiers that identify a protocol buffer field. | + -Consider the following: +### Control -message CreateContactRequest { message EmailAddress { enum Type { TYPE_UNSPECIFIED = 0; HOME = 1; WORK = 2; } +Control related messages. -optional string email = 1; repeated EmailType type = 2; } + -string full_name = 1; repeated EmailAddress email_addresses = 2; } +### Control.CreateIndexRequest -In this example, in proto `field` could take one of the following values: +Represent the create index request. -- `full_name` for a violation in the `full_name` value _ `email_addresses[1].email` for a violation in the `email` field of the first `email_addresses` message _ `email_addresses[3].type[2]` for a violation in the second `type` value in the third `email_addresses` message. +| Field | Type | Label | Description | +| --------- | ----------------- | ----- | -------------------------------------------- | +| pool_size | [uint32](#uint32) | | The pool size of the create index operation. | -In JSON, the same values are represented as: + -- `fullName` for a violation in the `fullName` value _ `emailAddresses[1].email` for a violation in the `email` field of the first `emailAddresses` message _ `emailAddresses[3].type[2]` for a violation in the second `type` value in the third `emailAddresses` message. | - | description | [string](#string) | | A description of why the request element is bad. | +### Discoverer - +Discoverer related messages. -### DebugInfo + -Describes additional debugging info. +### Discoverer.Request -| Field | Type | Label | Description | -| ------------- | ----------------- | -------- | ------------------------------------------------------------ | -| stack_entries | [string](#string) | repeated | The stack trace entries indicating where the error occurred. | -| detail | [string](#string) | | Additional debugging information provided by the server. | +Represent the dicoverer request. - +| Field | Type | Label | Description | +| --------- | ----------------- | ----- | -------------------------------- | +| name | [string](#string) | | The agent name to be discovered. | +| namespace | [string](#string) | | The namespace to be discovered. | +| node | [string](#string) | | The node to be discovered. | -### ErrorInfo + -Describes the cause of the error with structured details. +### Empty -Example of an error when contacting the "pubsub.googleapis.com" API when it -is not enabled: +Represent an empty message. - { "reason": "API_DISABLED" - "domain": "googleapis.com" - "metadata": { - "resource": "projects/123", - "service": "pubsub.googleapis.com" - } - } + -This response indicates that the pubsub.googleapis.com API is not enabled. +### Filter -Example of an error that is returned when attempting to create a Spanner -instance in a region that is out of stock: +Filter related messages. - { "reason": "STOCKOUT" - "domain": "spanner.googleapis.com", - "metadata": { - "availableRegions": "us-central1,us-east2" - } - } + -| Field | Type | Label | Description | -| -------- | ---------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| reason | [string](#string) | | The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. | -| domain | [string](#string) | | The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". | -| metadata | [ErrorInfo.MetadataEntry](#rpc-v1-ErrorInfo-MetadataEntry) | repeated | Additional structured details about this error. | +### Filter.Config -Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. | +Represent filter configuration. - +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ------------------------------------------ | +| target | [Filter.Target](#payload-v1-Filter-Target) | | Represent the filter target configuration. | +| query | [Filter.Query](#payload-v1-Filter-Query) | | The target query. | -### ErrorInfo.MetadataEntry + -| Field | Type | Label | Description | -| ----- | ----------------- | ----- | ----------- | -| key | [string](#string) | | | -| value | [string](#string) | | | +### Filter.DistanceRequest - +Represent the ID and distance pair. -### Help +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | -Provides links to documentation or for performing an out of band action. + -For example, if a quota check failed with an error indicating the calling -project hasn't enabled the accessed service, this can contain a URL pointing -directly to the right place in the developer console to flip the bit. +### Filter.DistanceResponse -| Field | Type | Label | Description | -| ----- | ------------------------------ | -------- | ------------------------------------------------------------------------ | -| links | [Help.Link](#rpc-v1-Help-Link) | repeated | URL(s) pointing to additional information on handling the current error. | +Represent the ID and distance pair. - +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | -### Help.Link + -Describes a URL link. +### Filter.Query -| Field | Type | Label | Description | -| ----------- | ----------------- | ----- | ------------------------------- | -| description | [string](#string) | | Describes what the link offers. | -| url | [string](#string) | | The URL of the link. | +Represent the filter query. - +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | --------------------- | +| query | [string](#string) | | The raw query string. | -### LocalizedMessage + -Provides a localized error message that is safe to return to the user -which can be attached to an RPC error. +### Filter.Target -| Field | Type | Label | Description | -| ------- | ----------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| locale | [string](#string) | | The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" | -| message | [string](#string) | | The localized error message in the above locale. | +Represent the target filter server. - +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | -------------------- | +| host | [string](#string) | | The target hostname. | +| port | [uint32](#uint32) | | The target port. | -### PreconditionFailure + -Describes what preconditions have failed. +### Filter.VectorRequest -For example, if an RPC failed because it required the Terms of Service to be -acknowledged, it could list the terms of service violation in the -PreconditionFailure message. +Represent the ID and vector pair. -| Field | Type | Label | Description | -| ---------- | ---------------------------------------------------------------------- | -------- | -------------------------------------- | -| violations | [PreconditionFailure.Violation](#rpc-v1-PreconditionFailure-Violation) | repeated | Describes all precondition violations. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Vector | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | - + -### PreconditionFailure.Violation +### Filter.VectorResponse -A message type used to describe a single precondition failure. +Represent the ID and vector pair. -| Field | Type | Label | Description | -| ----------- | ----------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| type | [string](#string) | | The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation". | -| subject | [string](#string) | | The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced. | -| description | [string](#string) | | A description of how the precondition failed. Developers can use this description to understand how to fix the failure. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Distance | -For example: "Terms of service not accepted". | + - +### Info -### QuotaFailure +Info related messages. -Describes how a quota check failed. + -For example if a daily limit was exceeded for the calling project, -a service could respond with a QuotaFailure detail containing the project -id and the description of the quota limit that was exceeded. If the -calling project hasn't enabled the service in the developer console, then -a service could respond with the project id and set `service_disabled` -to true. +### Info.CPU -Also see RetryInfo and Help types for other details about handling a -quota failure. +Represent the CPU information message. -| Field | Type | Label | Description | -| ---------- | -------------------------------------------------------- | -------- | ------------------------------- | -| violations | [QuotaFailure.Violation](#rpc-v1-QuotaFailure-Violation) | repeated | Describes all quota violations. | +| Field | Type | Label | Description | +| ------- | ----------------- | ----- | --------------------------- | +| limit | [double](#double) | | The CPU resource limit. | +| request | [double](#double) | | The CPU resource requested. | +| usage | [double](#double) | | The CPU usage. | - + -### QuotaFailure.Violation +### Info.IPs -A message type used to describe a single quota violation. For example, a -daily quota or a custom quota that was exceeded. +Represent the multiple IP message. -| Field | Type | Label | Description | -| ----------- | ----------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| subject | [string](#string) | | The subject on which the quota check failed. For example, "clientip:<ip address of client>" or "project:<Google developer project id>". | -| description | [string](#string) | | A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console. | +| Field | Type | Label | Description | +| ----- | ----------------- | -------- | ----------- | +| ip | [string](#string) | repeated | | -For example: "Service disabled" or "Daily Limit for read operations exceeded". | + - +### Info.Index -### RequestInfo +Represent the index information messages. -Contains metadata about the request that clients can attach when filing a bug -or providing other forms of feedback. + -| Field | Type | Label | Description | -| ------------ | ----------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| request_id | [string](#string) | | An opaque string that should only be interpreted by the service generating it. For example, it can be used to identify requests in the service's logs. | -| serving_data | [string](#string) | | Any data that was used to serve this request. For example, an encrypted stack trace that can be sent back to the service provider for debugging. | +### Info.Index.Count - +Represent the index count message. -### ResourceInfo +| Field | Type | Label | Description | +| ----------- | ----------------- | ----- | ---------------------------- | +| stored | [uint32](#uint32) | | The stored index count. | +| uncommitted | [uint32](#uint32) | | The uncommitted index count. | +| indexing | [bool](#bool) | | The indexing index count. | +| saving | [bool](#bool) | | The saving index count. | -Describes the resource that is being accessed. + -| Field | Type | Label | Description | -| ------------- | ----------------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| resource_type | [string](#string) | | A name for the type of resource being accessed, e.g. "sql table", "cloud storage bucket", "file", "Google calendar"; or the type URL of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". | -| resource_name | [string](#string) | | The name of the resource being accessed. For example, a shared calendar name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. | -| owner | [string](#string) | | The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>". | -| description | [string](#string) | | Describes what error is encountered when accessing this resource. For example, updating a cloud project may require the `writer` permission on the developer console project. | +### Info.Index.UUID - +Represent the UUID message. -### RetryInfo + -Describes when the clients can retry a failed request. Clients could ignore -the recommendation here or retry when this information is missing from error -responses. +### Info.Index.UUID.Committed -It's always recommended that clients should use exponential backoff when -retrying. +The committed UUID. -Clients should wait until `retry_delay` amount of time has passed since -receiving the error response before retrying. If retrying requests also -fail, clients should use an exponential backoff scheme to gradually increase -the delay between retries based on `retry_delay`, until either a maximum -number of retries have been reached or a maximum retry delay cap has been -reached. +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | ----------- | +| uuid | [string](#string) | | | -| Field | Type | Label | Description | -| ----------- | ----------------------------------------------------- | ----- | ------------------------------------------------------------------------- | -| retry_delay | [google.protobuf.Duration](#google-protobuf-Duration) | | Clients should wait at least this long between retrying the same request. | + - +### Info.Index.UUID.Uncommitted -

Top

+The uncommitted UUID. -## apis/proto/v1/manager/index/index_manager.proto +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | ----------- | +| uuid | [string](#string) | | | - + -### Index +### Info.Memory -Represent the index manager service. +Represent the memory information message. -| Method Name | Request Type | Response Type | Description | -| ----------- | -------------------------------------- | ------------------------------------------------------------ | ----------------------------------------------- | -| IndexInfo | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Count](#payload-v1-Info-Index-Count) | Represent the RPC to get the index information. | +| Field | Type | Label | Description | +| ------- | ----------------- | ----- | --------------------- | +| limit | [double](#double) | | The memory limit. | +| request | [double](#double) | | The memory requested. | +| usage | [double](#double) | | The memory usage. | - + -

Top

+### Info.Node -## apis/proto/v1/agent/sidecar/sidecar.proto +Represent the node information message. - +| Field | Type | Label | Description | +| ------------- | -------------------------------------- | ----- | ------------------------------------ | +| name | [string](#string) | | The name of the node. | +| internal_addr | [string](#string) | | The internal IP address of the node. | +| external_addr | [string](#string) | | The external IP address of the node. | +| cpu | [Info.CPU](#payload-v1-Info-CPU) | | The CPU information of the node. | +| memory | [Info.Memory](#payload-v1-Info-Memory) | | The memory information of the node. | +| Pods | [Info.Pods](#payload-v1-Info-Pods) | | The pod information of the node. | -### Sidecar + -Represent the agent sidecar service. +### Info.Nodes -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ----------- | +Represent the multiple node information message. - +| Field | Type | Label | Description | +| ----- | ---------------------------------- | -------- | ------------------------------ | +| nodes | [Info.Node](#payload-v1-Info-Node) | repeated | The multiple node information. | -

Top

+ -## apis/proto/v1/agent/core/agent.proto +### Info.Pod - +Represent the pod information message. -### Agent +| Field | Type | Label | Description | +| --------- | -------------------------------------- | ----- | ------------------------------------- | +| app_name | [string](#string) | | The app name of the pod on the label. | +| name | [string](#string) | | The name of the pod. | +| namespace | [string](#string) | | The namespace of the pod. | +| ip | [string](#string) | | The IP of the pod. | +| cpu | [Info.CPU](#payload-v1-Info-CPU) | | The CPU information of the pod. | +| memory | [Info.Memory](#payload-v1-Info-Memory) | | The memory information of the pod. | +| node | [Info.Node](#payload-v1-Info-Node) | | The node information of the pod. | -Represent the agent service. + -| Method Name | Request Type | Response Type | Description | -| ------------------ | -------------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- | -| CreateIndex | [.payload.v1.Control.CreateIndexRequest](#payload-v1-Control-CreateIndexRequest) | [.payload.v1.Empty](#payload-v1-Empty) | Represent the creating index RPC. | -| SaveIndex | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Empty](#payload-v1-Empty) | Represent the saving index RPC. | -| CreateAndSaveIndex | [.payload.v1.Control.CreateIndexRequest](#payload-v1-Control-CreateIndexRequest) | [.payload.v1.Empty](#payload-v1-Empty) | Represent the creating and saving index RPC. | -| IndexInfo | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Count](#payload-v1-Info-Index-Count) | Represent the RPC to get the agent index information. | -| GetTimestamp | [.payload.v1.Object.GetTimestampRequest](#payload-v1-Object-GetTimestampRequest) | [.payload.v1.Object.Timestamp](#payload-v1-Object-Timestamp) | Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process | +### Info.Pods - +Represent the multiple pod information message. -

Top

+| Field | Type | Label | Description | +| ----- | -------------------------------- | -------- | ----------------------------- | +| pods | [Info.Pod](#payload-v1-Info-Pod) | repeated | The multiple pod information. | -## apis/proto/v1/payload/payload.proto + - +### Insert -### Control +Insert related messages. -Control related messages. + - +### Insert.Config -### Control.CreateIndexRequest +Represent insert configurations. -Represent the create index request. +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | --------------------------------------------------- | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | +| timestamp | [int64](#int64) | | Insert timestamp. | -| Field | Type | Label | Description | -| --------- | ----------------- | ----- | -------------------------------------------- | -| pool_size | [uint32](#uint32) | | The pool size of the create index operation. | + - +### Insert.MultiObjectRequest -### Discoverer +Represent the multiple insert by binary object request. -Discoverer related messages. +| Field | Type | Label | Description | +| -------- | -------------------------------------------------------- | -------- | -------------------------------------------- | +| requests | [Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) | repeated | Represent multiple insert by object content. | - + -### Discoverer.Request +### Insert.MultiRequest -Represent the dicoverer request. +Represent the multiple insert request. -| Field | Type | Label | Description | -| --------- | ----------------- | ----- | -------------------------------- | -| name | [string](#string) | | The agent name to be discovered. | -| namespace | [string](#string) | | The namespace to be discovered. | -| node | [string](#string) | | The node to be discovered. | +| Field | Type | Label | Description | +| -------- | -------------------------------------------- | -------- | ------------------------------------------ | +| requests | [Insert.Request](#payload-v1-Insert-Request) | repeated | Represent multiple insert request content. | - + -### Empty +### Insert.ObjectRequest -Represent an empty message. +Represent the insert by binary object request. - +| Field | Type | Label | Description | +| ---------- | ------------------------------------------ | ----- | ---------------------------------------- | +| object | [Object.Blob](#payload-v1-Object-Blob) | | The binary object to be inserted. | +| config | [Insert.Config](#payload-v1-Insert-Config) | | The configuration of the insert request. | +| vectorizer | [Filter.Target](#payload-v1-Filter-Target) | | Filter configurations. | -### Filter + -Filter related messages. +### Insert.Request - +Represent the insert request. -### Filter.Config +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ---------------------------------------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector to be inserted. | +| config | [Insert.Config](#payload-v1-Insert-Config) | | The configuration of the insert request. | -Represent filter configuration. + -| Field | Type | Label | Description | -| ------ | ------------------------------------------ | ----- | ------------------------------------------ | -| target | [Filter.Target](#payload-v1-Filter-Target) | | Represent the filter target configuration. | -| query | [Filter.Query](#payload-v1-Filter-Query) | | The target query. | +### Object - +Common messages. -### Filter.DistanceRequest + -Represent the ID and distance pair. +### Object.Blob -| Field | Type | Label | Description | -| -------- | ---------------------------------------------- | -------- | ----------- | -| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | -| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | +Represent the binary object. - +| Field | Type | Label | Description | +| ------ | ----------------- | ----- | ------------------ | +| id | [string](#string) | | The object ID. | +| object | [bytes](#bytes) | | The binary object. | -### Filter.DistanceResponse + -Represent the ID and distance pair. +### Object.Distance -| Field | Type | Label | Description | -| -------- | ---------------------------------------------- | -------- | ----------- | -| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | +Represent the ID and distance pair. - +| Field | Type | Label | Description | +| -------- | ----------------- | ----- | -------------- | +| id | [string](#string) | | The vector ID. | +| distance | [float](#float) | | The distance. | -### Filter.Query + -Represent the filter query. +### Object.GetTimestampRequest -| Field | Type | Label | Description | -| ----- | ----------------- | ----- | --------------------- | -| query | [string](#string) | | The raw query string. | +Represent a request to fetch vector meta data. - +| Field | Type | Label | Description | +| ----- | ---------------------------------- | ----- | ---------------------------- | +| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | -### Filter.Target + -Represent the target filter server. +### Object.ID -| Field | Type | Label | Description | -| ----- | ----------------- | ----- | -------------------- | -| host | [string](#string) | | The target hostname. | -| port | [uint32](#uint32) | | The target port. | +Represent the vector ID. - +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | ----------- | +| id | [string](#string) | | | -### Filter.VectorRequest + -Represent the ID and vector pair. +### Object.IDs -| Field | Type | Label | Description | -| ------ | ------------------------------------------ | ----- | ----------- | -| vector | [Object.Vector](#payload-v1-Object-Vector) | | Vector | -| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | +Represent multiple vector IDs. - +| Field | Type | Label | Description | +| ----- | ----------------- | -------- | ----------- | +| ids | [string](#string) | repeated | | -### Filter.VectorResponse + -Represent the ID and vector pair. +### Object.List -| Field | Type | Label | Description | -| ------ | ------------------------------------------ | ----- | ----------- | -| vector | [Object.Vector](#payload-v1-Object-Vector) | | Distance | +Represent the list object vector stream request and response. - + -### Info +### Object.List.Request -Info related messages. + - +### Object.List.Response -### Info.CPU +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | --------------------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector | +| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | -Represent the CPU information message. + -| Field | Type | Label | Description | -| ------- | ----------------- | ----- | --------------------------- | -| limit | [double](#double) | | The CPU resource limit. | -| request | [double](#double) | | The CPU resource requested. | -| usage | [double](#double) | | The CPU usage. | +### Object.Location - +Represent the vector location. -### Info.IPs +| Field | Type | Label | Description | +| ----- | ----------------- | -------- | ------------------------- | +| name | [string](#string) | | The name of the location. | +| uuid | [string](#string) | | The UUID of the vector. | +| ips | [string](#string) | repeated | The IP list. | -Represent the multiple IP message. + -| Field | Type | Label | Description | -| ----- | ----------------- | -------- | ----------- | -| ip | [string](#string) | repeated | | +### Object.Locations - +Represent multiple vector locations. -### Info.Index +| Field | Type | Label | Description | +| --------- | ---------------------------------------------- | -------- | ----------- | +| locations | [Object.Location](#payload-v1-Object-Location) | repeated | | -Represent the index information messages. + - +### Object.ReshapeVector -### Info.Index.Count +Represent reshape vector. -Represent the index count message. +| Field | Type | Label | Description | +| ------ | --------------- | -------- | ------------------ | +| object | [bytes](#bytes) | | The binary object. | +| shape | [int32](#int32) | repeated | The new shape. | -| Field | Type | Label | Description | -| ----------- | ----------------- | ----- | ---------------------------- | -| stored | [uint32](#uint32) | | The stored index count. | -| uncommitted | [uint32](#uint32) | | The uncommitted index count. | -| indexing | [bool](#bool) | | The indexing index count. | -| saving | [bool](#bool) | | The saving index count. | + - +### Object.StreamBlob -### Info.Index.UUID +Represent stream response of binary objects. -Represent the UUID message. +| Field | Type | Label | Description | +| ------ | --------------------------------------- | ----- | --------------------- | +| blob | [Object.Blob](#payload-v1-Object-Blob) | | The binary object. | +| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | - + -### Info.Index.UUID.Committed +### Object.StreamDistance -The committed UUID. +Represent stream response of distances. -| Field | Type | Label | Description | -| ----- | ----------------- | ----- | ----------- | -| uuid | [string](#string) | | | +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | ----- | --------------------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | | The distance. | +| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | - + -### Info.Index.UUID.Uncommitted +### Object.StreamLocation -The uncommitted UUID. +Represent the stream response of the vector location. -| Field | Type | Label | Description | -| ----- | ----------------- | ----- | ----------- | -| uuid | [string](#string) | | | +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | ----- | --------------------- | +| location | [Object.Location](#payload-v1-Object-Location) | | The vector location. | +| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | - + -### Info.Memory +### Object.StreamVector -Represent the memory information message. +Represent stream response of the vector. -| Field | Type | Label | Description | -| ------- | ----------------- | ----- | --------------------- | -| limit | [double](#double) | | The memory limit. | -| request | [double](#double) | | The memory requested. | -| usage | [double](#double) | | The memory usage. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | --------------------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector. | +| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | - + -### Info.Node +### Object.Timestamp -Represent the node information message. +Represent a vector meta data. -| Field | Type | Label | Description | -| ------------- | -------------------------------------- | ----- | ------------------------------------ | -| name | [string](#string) | | The name of the node. | -| internal_addr | [string](#string) | | The internal IP address of the node. | -| external_addr | [string](#string) | | The external IP address of the node. | -| cpu | [Info.CPU](#payload-v1-Info-CPU) | | The CPU information of the node. | -| memory | [Info.Memory](#payload-v1-Info-Memory) | | The memory information of the node. | -| Pods | [Info.Pods](#payload-v1-Info-Pods) | | The pod information of the node. | +| Field | Type | Label | Description | +| --------- | ----------------- | ----- | ----------------------------------------------- | +| id | [string](#string) | | The vector ID. | +| timestamp | [int64](#int64) | | timestamp represents when this vector inserted. | - + -### Info.Nodes +### Object.Vector -Represent the multiple node information message. +Represent a vector. -| Field | Type | Label | Description | -| ----- | ---------------------------------- | -------- | ------------------------------ | -| nodes | [Info.Node](#payload-v1-Info-Node) | repeated | The multiple node information. | +| Field | Type | Label | Description | +| --------- | ----------------- | -------- | ----------------------------------------------- | +| id | [string](#string) | | The vector ID. | +| vector | [float](#float) | repeated | The vector. | +| timestamp | [int64](#int64) | | timestamp represents when this vector inserted. | - + -### Info.Pod +### Object.VectorRequest -Represent the pod information message. +Represent a request to fetch raw vector. -| Field | Type | Label | Description | -| --------- | -------------------------------------- | ----- | ------------------------------------- | -| app_name | [string](#string) | | The app name of the pod on the label. | -| name | [string](#string) | | The name of the pod. | -| namespace | [string](#string) | | The namespace of the pod. | -| ip | [string](#string) | | The IP of the pod. | -| cpu | [Info.CPU](#payload-v1-Info-CPU) | | The CPU information of the pod. | -| memory | [Info.Memory](#payload-v1-Info-Memory) | | The memory information of the pod. | -| node | [Info.Node](#payload-v1-Info-Node) | | The node information of the pod. | +| Field | Type | Label | Description | +| ------- | ------------------------------------------ | -------- | ---------------------------- | +| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | - + -### Info.Pods +### Object.Vectors -Represent the multiple pod information message. +Represent multiple vectors. -| Field | Type | Label | Description | -| ----- | -------------------------------- | -------- | ----------------------------- | -| pods | [Info.Pod](#payload-v1-Info-Pod) | repeated | The multiple pod information. | +| Field | Type | Label | Description | +| ------- | ------------------------------------------ | -------- | ----------- | +| vectors | [Object.Vector](#payload-v1-Object-Vector) | repeated | | - + -### Insert +### Remove -Insert related messages. +Remove related messages. - + -### Insert.Config +### Remove.Config -Represent insert configurations. +Represent the remove configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | -------- | --------------------------------------------------- | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | -| timestamp | [int64](#int64) | | Insert timestamp. | +| Field | Type | Label | Description | +| ----------------------- | --------------- | ----- | --------------------------------------------------- | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | +| timestamp | [int64](#int64) | | Remove timestamp. | - + -### Insert.MultiObjectRequest +### Remove.MultiRequest -Represent the multiple insert by binary object request. +Represent the multiple remove request. -| Field | Type | Label | Description | -| -------- | -------------------------------------------------------- | -------- | -------------------------------------------- | -| requests | [Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) | repeated | Represent multiple insert by object content. | +| Field | Type | Label | Description | +| -------- | -------------------------------------------- | -------- | ---------------------------------------------- | +| requests | [Remove.Request](#payload-v1-Remove-Request) | repeated | Represent the multiple remove request content. | - + -### Insert.MultiRequest +### Remove.Request -Represent the multiple insert request. +Represent the remove request. -| Field | Type | Label | Description | -| -------- | -------------------------------------------- | -------- | ------------------------------------------ | -| requests | [Insert.Request](#payload-v1-Insert-Request) | repeated | Represent multiple insert request content. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ---------------------------------------- | +| id | [Object.ID](#payload-v1-Object-ID) | | The object ID to be removed. | +| config | [Remove.Config](#payload-v1-Remove-Config) | | The configuration of the remove request. | - + -### Insert.ObjectRequest +### Remove.Timestamp -Represent the insert by binary object request. +Represent the timestamp comparison. -| Field | Type | Label | Description | -| ---------- | ------------------------------------------ | ----- | ---------------------------------------- | -| object | [Object.Blob](#payload-v1-Object-Blob) | | The binary object to be inserted. | -| config | [Insert.Config](#payload-v1-Insert-Config) | | The configuration of the insert request. | -| vectorizer | [Filter.Target](#payload-v1-Filter-Target) | | Filter configurations. | +| Field | Type | Label | Description | +| --------- | ------------------------------------------------------------------ | ----- | ------------------------- | +| timestamp | [int64](#int64) | | The timestamp. | +| operator | [Remove.Timestamp.Operator](#payload-v1-Remove-Timestamp-Operator) | | The conditional operator. | - + -### Insert.Request +### Remove.TimestampRequest -Represent the insert request. +Represent the remove request based on timestamp. -| Field | Type | Label | Description | -| ------ | ------------------------------------------ | ----- | ---------------------------------------- | -| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector to be inserted. | -| config | [Insert.Config](#payload-v1-Insert-Config) | | The configuration of the insert request. | +| Field | Type | Label | Description | +| ---------- | ------------------------------------------------ | -------- | ------------------------------------------------------------------------------------------ | +| timestamps | [Remove.Timestamp](#payload-v1-Remove-Timestamp) | repeated | The timestamp comparison list. If more than one is specified, the `AND` search is applied. | - + -### Object +### Search -Common messages. +Search related messages. - + -### Object.Blob +### Search.Config -Represent the binary object. +Represent search configuration. -| Field | Type | Label | Description | -| ------ | ----------------- | ----- | ------------------ | -| id | [string](#string) | | The object ID. | -| object | [bytes](#bytes) | | The binary object. | +| Field | Type | Label | Description | +| --------------------- | ---------------------------------------------------------------------- | -------- | ---------------------------------------- | +| request_id | [string](#string) | | Unique request ID. | +| num | [uint32](#uint32) | | Maximum number of result to be returned. | +| radius | [float](#float) | | Search radius. | +| epsilon | [float](#float) | | Search coefficient. | +| timeout | [int64](#int64) | | Search timeout in nanoseconds. | +| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Ingress filter configurations. | +| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Egress filter configurations. | +| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | +| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | - + -### Object.Distance +### Search.IDRequest -Represent the ID and distance pair. +Represent a search by ID request. -| Field | Type | Label | Description | -| -------- | ----------------- | ----- | -------------- | -| id | [string](#string) | | The vector ID. | -| distance | [float](#float) | | The distance. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ---------------------------------------- | +| id | [string](#string) | | The vector ID to be searched. | +| config | [Search.Config](#payload-v1-Search-Config) | | The configuration of the search request. | - + -### Object.GetTimestampRequest +### Search.MultiIDRequest -Represent a request to fetch vector meta data. +Represent the multiple search by ID request. -| Field | Type | Label | Description | -| ----- | ---------------------------------- | ----- | ---------------------------- | -| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | +| Field | Type | Label | Description | +| -------- | ------------------------------------------------ | -------- | ---------------------------------------------------- | +| requests | [Search.IDRequest](#payload-v1-Search-IDRequest) | repeated | Represent the multiple search by ID request content. | - + -### Object.ID +### Search.MultiObjectRequest -Represent the vector ID. +Represent the multiple search by binary object request. -| Field | Type | Label | Description | -| ----- | ----------------- | ----- | ----------- | -| id | [string](#string) | | | +| Field | Type | Label | Description | +| -------- | -------------------------------------------------------- | -------- | --------------------------------------------------------------- | +| requests | [Search.ObjectRequest](#payload-v1-Search-ObjectRequest) | repeated | Represent the multiple search by binary object request content. | - + -### Object.IDs +### Search.MultiRequest -Represent multiple vector IDs. +Represent the multiple search request. -| Field | Type | Label | Description | -| ----- | ----------------- | -------- | ----------- | -| ids | [string](#string) | repeated | | +| Field | Type | Label | Description | +| -------- | -------------------------------------------- | -------- | ---------------------------------------------- | +| requests | [Search.Request](#payload-v1-Search-Request) | repeated | Represent the multiple search request content. | - + -### Object.List +### Search.ObjectRequest -Represent the list object vector stream request and response. +Represent a search by binary object request. - +| Field | Type | Label | Description | +| ---------- | ------------------------------------------ | ----- | ---------------------------------------- | +| object | [bytes](#bytes) | | The binary object to be searched. | +| config | [Search.Config](#payload-v1-Search-Config) | | The configuration of the search request. | +| vectorizer | [Filter.Target](#payload-v1-Filter-Target) | | Filter configuration. | -### Object.List.Request + - +### Search.Request -### Object.List.Response +Represent a search request. -| Field | Type | Label | Description | -| ------ | ------------------------------------------ | ----- | --------------------- | -| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector | -| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | -------- | ---------------------------------------- | +| vector | [float](#float) | repeated | The vector to be searched. | +| config | [Search.Config](#payload-v1-Search-Config) | | The configuration of the search request. | - + -### Object.Location +### Search.Response -Represent the vector location. +Represent a search response. -| Field | Type | Label | Description | -| ----- | ----------------- | -------- | ------------------------- | -| name | [string](#string) | | The name of the location. | -| uuid | [string](#string) | | The UUID of the vector. | -| ips | [string](#string) | repeated | The IP list. | +| Field | Type | Label | Description | +| ---------- | ---------------------------------------------- | -------- | ---------------------- | +| request_id | [string](#string) | | The unique request ID. | +| results | [Object.Distance](#payload-v1-Object-Distance) | repeated | Search results. | - + -### Object.Locations +### Search.Responses -Represent multiple vector locations. +Represent multiple search responses. -| Field | Type | Label | Description | -| --------- | ---------------------------------------------- | -------- | ----------- | -| locations | [Object.Location](#payload-v1-Object-Location) | repeated | | +| Field | Type | Label | Description | +| --------- | ---------------------------------------------- | -------- | ----------------------------------------------- | +| responses | [Search.Response](#payload-v1-Search-Response) | repeated | Represent the multiple search response content. | - + -### Object.ReshapeVector +### Search.StreamResponse -Represent reshape vector. +Represent stream search response. -| Field | Type | Label | Description | -| ------ | --------------- | -------- | ------------------ | -| object | [bytes](#bytes) | | The binary object. | -| shape | [int32](#int32) | repeated | The new shape. | +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | ----- | ------------------------------ | +| response | [Search.Response](#payload-v1-Search-Response) | | Represent the search response. | +| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | - + -### Object.StreamBlob +### Update -Represent stream response of binary objects. +Update related messages -| Field | Type | Label | Description | -| ------ | --------------------------------------- | ----- | --------------------- | -| blob | [Object.Blob](#payload-v1-Object-Blob) | | The binary object. | -| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | + - +### Update.Config -### Object.StreamDistance - -Represent stream response of distances. +Represent the update configuration. -| Field | Type | Label | Description | -| -------- | ---------------------------------------------- | ----- | --------------------- | -| distance | [Object.Distance](#payload-v1-Object-Distance) | | The distance. | -| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Update timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - + -### Object.StreamLocation +### Update.MultiObjectRequest -Represent the stream response of the vector location. +Represent the multiple update binary object request. -| Field | Type | Label | Description | -| -------- | ---------------------------------------------- | ----- | --------------------- | -| location | [Object.Location](#payload-v1-Object-Location) | | The vector location. | -| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | +| Field | Type | Label | Description | +| -------- | -------------------------------------------------------- | -------- | ----------------------------------------------------- | +| requests | [Update.ObjectRequest](#payload-v1-Update-ObjectRequest) | repeated | Represent the multiple update object request content. | - + -### Object.StreamVector +### Update.MultiRequest -Represent stream response of the vector. +Represent the multiple update request. -| Field | Type | Label | Description | -| ------ | ------------------------------------------ | ----- | --------------------- | -| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector. | -| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | +| Field | Type | Label | Description | +| -------- | -------------------------------------------- | -------- | ---------------------------------------------- | +| requests | [Update.Request](#payload-v1-Update-Request) | repeated | Represent the multiple update request content. | - + -### Object.Timestamp +### Update.ObjectRequest -Represent a vector meta data. +Represent the update binary object request. -| Field | Type | Label | Description | -| --------- | ----------------- | ----- | ----------------------------------------------- | -| id | [string](#string) | | The vector ID. | -| timestamp | [int64](#int64) | | timestamp represents when this vector inserted. | +| Field | Type | Label | Description | +| ---------- | ------------------------------------------ | ----- | ---------------------------------------- | +| object | [Object.Blob](#payload-v1-Object-Blob) | | The binary object to be updated. | +| config | [Update.Config](#payload-v1-Update-Config) | | The configuration of the update request. | +| vectorizer | [Filter.Target](#payload-v1-Filter-Target) | | Filter target. | - + -### Object.Vector +### Update.Request -Represent a vector. +Represent the update request. -| Field | Type | Label | Description | -| --------- | ----------------- | -------- | ----------------------------------------------- | -| id | [string](#string) | | The vector ID. | -| vector | [float](#float) | repeated | The vector. | -| timestamp | [int64](#int64) | | timestamp represents when this vector inserted. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ---------------------------------------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector to be updated. | +| config | [Update.Config](#payload-v1-Update-Config) | | The configuration of the update request. | - + -### Object.VectorRequest +### Upsert -Represent a request to fetch raw vector. +Upsert related messages. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | -------- | ---------------------------- | -| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | + - +### Upsert.Config -### Object.Vectors +Represent the upsert configuration. -Represent multiple vectors. +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Upsert timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | -------- | ----------- | -| vectors | [Object.Vector](#payload-v1-Object-Vector) | repeated | | + - +### Upsert.MultiObjectRequest -### Remove +Represent the multiple upsert binary object request. -Remove related messages. +| Field | Type | Label | Description | +| -------- | -------------------------------------------------------- | -------- | ----------------------------------------------------- | +| requests | [Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) | repeated | Represent the multiple upsert object request content. | - + -### Remove.Config +### Upsert.MultiRequest -Represent the remove configuration. +Represent mthe ultiple upsert request. -| Field | Type | Label | Description | -| ----------------------- | --------------- | ----- | --------------------------------------------------- | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | -| timestamp | [int64](#int64) | | Remove timestamp. | +| Field | Type | Label | Description | +| -------- | -------------------------------------------- | -------- | ---------------------------------------------- | +| requests | [Upsert.Request](#payload-v1-Upsert-Request) | repeated | Represent the multiple upsert request content. | - + -### Remove.MultiRequest +### Upsert.ObjectRequest -Represent the multiple remove request. +Represent the upsert binary object request. -| Field | Type | Label | Description | -| -------- | -------------------------------------------- | -------- | ---------------------------------------------- | -| requests | [Remove.Request](#payload-v1-Remove-Request) | repeated | Represent the multiple remove request content. | +| Field | Type | Label | Description | +| ---------- | ------------------------------------------ | ----- | ---------------------------------------- | +| object | [Object.Blob](#payload-v1-Object-Blob) | | The binary object to be upserted. | +| config | [Upsert.Config](#payload-v1-Upsert-Config) | | The configuration of the upsert request. | +| vectorizer | [Filter.Target](#payload-v1-Filter-Target) | | Filter target. | - + -### Remove.Request +### Upsert.Request -Represent the remove request. +Represent the upsert request. | Field | Type | Label | Description | | ------ | ------------------------------------------ | ----- | ---------------------------------------- | -| id | [Object.ID](#payload-v1-Object-ID) | | The object ID to be removed. | -| config | [Remove.Config](#payload-v1-Remove-Config) | | The configuration of the remove request. | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector to be upserted. | +| config | [Upsert.Config](#payload-v1-Upsert-Config) | | The configuration of the upsert request. | - + -### Remove.Timestamp +### Remove.Timestamp.Operator -Represent the timestamp comparison. +Operator is enum of each conditional operator. -| Field | Type | Label | Description | -| --------- | ------------------------------------------------------------------ | ----- | ------------------------- | -| timestamp | [int64](#int64) | | The timestamp. | -| operator | [Remove.Timestamp.Operator](#payload-v1-Remove-Timestamp-Operator) | | The conditional operator. | +| Name | Number | Description | +| ---- | ------ | ----------------------------------------------------------------------------- | +| Eq | 0 | The timestamp is equal to the specified value in the request. | +| Ne | 1 | The timestamp is not equal to the specified value in the request. | +| Ge | 2 | The timestamp is greater than or equal to the specified value in the request. | +| Gt | 3 | The timestamp is greater than the specified value in the request. | +| Le | 4 | The timestamp is less than or equal to the specified value in the request. | +| Lt | 5 | The timestamp is less than the specified value in the request. | - + -### Remove.TimestampRequest +### Search.AggregationAlgorithm -Represent the remove request based on timestamp. +AggregationAlgorithm is enum of each aggregation algorithms -| Field | Type | Label | Description | -| ---------- | ------------------------------------------------ | -------- | ------------------------------------------------------------------------------------------ | -| timestamps | [Remove.Timestamp](#payload-v1-Remove-Timestamp) | repeated | The timestamp comparison list. If more than one is specified, the `AND` search is applied. | +| Name | Number | Description | +| --------------- | ------ | ----------- | +| Unknown | 0 | | +| ConcurrentQueue | 1 | | +| SortSlice | 2 | | +| SortPoolSlice | 3 | | +| PairingHeap | 4 | | - + -### Search +

Top

-Search related messages. +## apis/proto/v1/vald/filter.proto - + -### Search.Config +### Filter -Represent search configuration. +Filter service provides ways to connect to Vald through filter. -| Field | Type | Label | Description | -| --------------------- | ---------------------------------------------------------------------- | -------- | ---------------------------------------- | -| request_id | [string](#string) | | Unique request ID. | -| num | [uint32](#uint32) | | Maximum number of result to be returned. | -| radius | [float](#float) | | Search radius. | -| epsilon | [float](#float) | | Search coefficient. | -| timeout | [int64](#int64) | | Search timeout in nanoseconds. | -| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Ingress filter configurations. | -| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Egress filter configurations. | -| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | -| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | +| Method Name | Request Type | Response Type | Description | +| ------------------ | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------ | +| SearchObject | [.payload.v1.Search.ObjectRequest](#payload-v1-Search-ObjectRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search object. | +| MultiSearchObject | [.payload.v1.Search.MultiObjectRequest](#payload-v1-Search-MultiObjectRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search multiple objects. | +| StreamSearchObject | [.payload.v1.Search.ObjectRequest](#payload-v1-Search-ObjectRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search object by bidirectional streaming. | +| InsertObject | [.payload.v1.Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method insert object. | +| StreamInsertObject | [.payload.v1.Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | Represent the streaming RPC to insert object by bidirectional streaming. | +| MultiInsertObject | [.payload.v1.Insert.MultiObjectRequest](#payload-v1-Insert-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to insert multiple objects. | +| UpdateObject | [.payload.v1.Update.ObjectRequest](#payload-v1-Update-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to update object. | +| StreamUpdateObject | [.payload.v1.Update.ObjectRequest](#payload-v1-Update-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to update object by bidirectional streaming. | +| MultiUpdateObject | [.payload.v1.Update.MultiObjectRequest](#payload-v1-Update-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to update multiple objects. | +| UpsertObject | [.payload.v1.Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to upsert object. | +| StreamUpsertObject | [.payload.v1.Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to upsert object by bidirectional streaming. | +| MultiUpsertObject | [.payload.v1.Upsert.MultiObjectRequest](#payload-v1-Upsert-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to upsert multiple objects. | - + -### Search.IDRequest +

Top

-Represent a search by ID request. +## apis/proto/v1/vald/insert.proto -| Field | Type | Label | Description | -| ------ | ------------------------------------------ | ----- | ---------------------------------------- | -| id | [string](#string) | | The vector ID to be searched. | -| config | [Search.Config](#payload-v1-Search-Config) | | The configuration of the search request. | + - +### Insert -### Search.MultiIDRequest +Insert service provides ways to add new vectors. -Represent the multiple search by ID request. +| Method Name | Request Type | Response Type | Description | +| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------------------- | +| Insert | [.payload.v1.Insert.Request](#payload-v1-Insert-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to add a new single vector. | +| StreamInsert | [.payload.v1.Insert.Request](#payload-v1-Insert-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to add new multiple vectors by bidirectional streaming. | +| MultiInsert | [.payload.v1.Insert.MultiRequest](#payload-v1-Insert-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to add new multiple vectors in a single request. | -| Field | Type | Label | Description | -| -------- | ------------------------------------------------ | -------- | ---------------------------------------------------- | -| requests | [Search.IDRequest](#payload-v1-Search-IDRequest) | repeated | Represent the multiple search by ID request content. | + - +

Top

-### Search.MultiObjectRequest +## apis/proto/v1/vald/object.proto -Represent the multiple search by binary object request. + -| Field | Type | Label | Description | -| -------- | -------------------------------------------------------- | -------- | --------------------------------------------------------------- | -| requests | [Search.ObjectRequest](#payload-v1-Search-ObjectRequest) | repeated | Represent the multiple search by binary object request content. | +### Object - +Object service provides ways to fetch indexed vectors. -### Search.MultiRequest +| Method Name | Request Type | Response Type | Description | +| ---------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------- | +| Exists | [.payload.v1.Object.ID](#payload-v1-Object-ID) | [.payload.v1.Object.ID](#payload-v1-Object-ID) | A method to check whether a specified ID is indexed or not. | +| GetObject | [.payload.v1.Object.VectorRequest](#payload-v1-Object-VectorRequest) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | A method to fetch a vector. | +| StreamGetObject | [.payload.v1.Object.VectorRequest](#payload-v1-Object-VectorRequest) stream | [.payload.v1.Object.StreamVector](#payload-v1-Object-StreamVector) stream | A method to fetch vectors by bidirectional streaming. | +| StreamListObject | [.payload.v1.Object.List.Request](#payload-v1-Object-List-Request) | [.payload.v1.Object.List.Response](#payload-v1-Object-List-Response) stream | A method to get all the vectors with server streaming | -Represent the multiple search request. - -| Field | Type | Label | Description | -| -------- | -------------------------------------------- | -------- | ---------------------------------------------- | -| requests | [Search.Request](#payload-v1-Search-Request) | repeated | Represent the multiple search request content. | - - - -### Search.ObjectRequest - -Represent a search by binary object request. - -| Field | Type | Label | Description | -| ---------- | ------------------------------------------ | ----- | ---------------------------------------- | -| object | [bytes](#bytes) | | The binary object to be searched. | -| config | [Search.Config](#payload-v1-Search-Config) | | The configuration of the search request. | -| vectorizer | [Filter.Target](#payload-v1-Filter-Target) | | Filter configuration. | + - +

Top

-### Search.Request +## apis/proto/v1/vald/remove.proto -Represent a search request. + -| Field | Type | Label | Description | -| ------ | ------------------------------------------ | -------- | ---------------------------------------- | -| vector | [float](#float) | repeated | The vector to be searched. | -| config | [Search.Config](#payload-v1-Search-Config) | | The configuration of the search request. | +### Remove - +Remove service provides ways to remove indexed vectors. -### Search.Response +| Method Name | Request Type | Response Type | Description | +| ----------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| Remove | [.payload.v1.Remove.Request](#payload-v1-Remove-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to remove an indexed vector. | +| RemoveByTimestamp | [.payload.v1.Remove.TimestampRequest](#payload-v1-Remove-TimestampRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to remove an indexed vector based on timestamp. | +| StreamRemove | [.payload.v1.Remove.Request](#payload-v1-Remove-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to remove multiple indexed vectors by bidirectional streaming. | +| MultiRemove | [.payload.v1.Remove.MultiRequest](#payload-v1-Remove-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to remove multiple indexed vectors in a single request. | -Represent a search response. + -| Field | Type | Label | Description | -| ---------- | ---------------------------------------------- | -------- | ---------------------- | -| request_id | [string](#string) | | The unique request ID. | -| results | [Object.Distance](#payload-v1-Object-Distance) | repeated | Search results. | +

Top

- +## apis/proto/v1/vald/search.proto -### Search.Responses + -Represent multiple search responses. +### Search -| Field | Type | Label | Description | -| --------- | ---------------------------------------------- | -------- | ----------------------------------------------- | -| responses | [Search.Response](#payload-v1-Search-Response) | repeated | Represent the multiple search response content. | +Search service provides ways to search indexed vectors. - +| Method Name | Request Type | Response Type | Description | +| ---------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| Search | [.payload.v1.Search.Request](#payload-v1-Search-Request) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search indexed vectors by a raw vector. | +| SearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search indexed vectors by ID. | +| StreamSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search indexed vectors by multiple vectors. | +| StreamSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search indexed vectors by multiple IDs. | +| MultiSearch | [.payload.v1.Search.MultiRequest](#payload-v1-Search-MultiRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search indexed vectors by multiple vectors in a single request. | +| MultiSearchByID | [.payload.v1.Search.MultiIDRequest](#payload-v1-Search-MultiIDRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search indexed vectors by multiple IDs in a single request. | +| LinearSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to linear search indexed vectors by a raw vector. | +| LinearSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to linear search indexed vectors by ID. | +| StreamLinearSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to linear search indexed vectors by multiple vectors. | +| StreamLinearSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to linear search indexed vectors by multiple IDs. | +| MultiLinearSearch | [.payload.v1.Search.MultiRequest](#payload-v1-Search-MultiRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to linear search indexed vectors by multiple vectors in a single request. | +| MultiLinearSearchByID | [.payload.v1.Search.MultiIDRequest](#payload-v1-Search-MultiIDRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to linear search indexed vectors by multiple IDs in a single request. | -### Search.StreamResponse + -Represent stream search response. +

Top

-| Field | Type | Label | Description | -| -------- | ---------------------------------------------- | ----- | ------------------------------ | -| response | [Search.Response](#payload-v1-Search-Response) | | Represent the search response. | -| status | [google.rpc.Status](#google-rpc-Status) | | The RPC error status. | +## apis/proto/v1/vald/update.proto - + ### Update -Update related messages - - - -### Update.Config - -Represent the update configuration. - -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | -| timestamp | [int64](#int64) | | Update timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - - - -### Update.MultiObjectRequest - -Represent the multiple update binary object request. - -| Field | Type | Label | Description | -| -------- | -------------------------------------------------------- | -------- | ----------------------------------------------------- | -| requests | [Update.ObjectRequest](#payload-v1-Update-ObjectRequest) | repeated | Represent the multiple update object request content. | - - - -### Update.MultiRequest - -Represent the multiple update request. - -| Field | Type | Label | Description | -| -------- | -------------------------------------------- | -------- | ---------------------------------------------- | -| requests | [Update.Request](#payload-v1-Update-Request) | repeated | Represent the multiple update request content. | - - - -### Update.ObjectRequest - -Represent the update binary object request. - -| Field | Type | Label | Description | -| ---------- | ------------------------------------------ | ----- | ---------------------------------------- | -| object | [Object.Blob](#payload-v1-Object-Blob) | | The binary object to be updated. | -| config | [Update.Config](#payload-v1-Update-Config) | | The configuration of the update request. | -| vectorizer | [Filter.Target](#payload-v1-Filter-Target) | | Filter target. | +Update service provides ways to update indexed vectors. - +| Method Name | Request Type | Response Type | Description | +| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| Update | [.payload.v1.Update.Request](#payload-v1-Update-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to update an indexed vector. | +| StreamUpdate | [.payload.v1.Update.Request](#payload-v1-Update-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to update multiple indexed vectors by bidirectional streaming. | +| MultiUpdate | [.payload.v1.Update.MultiRequest](#payload-v1-Update-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to update multiple indexed vectors in a single request. | -### Update.Request + -Represent the update request. +

Top

-| Field | Type | Label | Description | -| ------ | ------------------------------------------ | ----- | ---------------------------------------- | -| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector to be updated. | -| config | [Update.Config](#payload-v1-Update-Config) | | The configuration of the update request. | +## apis/proto/v1/vald/upsert.proto - + ### Upsert -Upsert related messages. +Upsert service provides ways to insert/update vectors. - +| Method Name | Request Type | Response Type | Description | +| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| Upsert | [.payload.v1.Upsert.Request](#payload-v1-Upsert-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to insert/update a vector. | +| StreamUpsert | [.payload.v1.Upsert.Request](#payload-v1-Upsert-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to insert/update multiple vectors by bidirectional streaming. | +| MultiUpsert | [.payload.v1.Upsert.MultiRequest](#payload-v1-Upsert-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to insert/update multiple vectors in a single request. | -### Upsert.Config + -Represent the upsert configuration. +

Top

-| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | -| timestamp | [int64](#int64) | | Upsert timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +## apis/proto/v1/rpc/error_details.proto - + -### Upsert.MultiObjectRequest +### BadRequest -Represent the multiple upsert binary object request. +Describes violations in a client request. This error type focuses on the +syntactic aspects of the request. -| Field | Type | Label | Description | -| -------- | -------------------------------------------------------- | -------- | ----------------------------------------------------- | -| requests | [Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) | repeated | Represent the multiple upsert object request content. | +| Field | Type | Label | Description | +| ---------------- | -------------------------------------------------------------- | -------- | --------------------------------------------- | +| field_violations | [BadRequest.FieldViolation](#rpc-v1-BadRequest-FieldViolation) | repeated | Describes all violations in a client request. | - + -### Upsert.MultiRequest +### BadRequest.FieldViolation -Represent mthe ultiple upsert request. +A message type used to describe a single bad request field. -| Field | Type | Label | Description | -| -------- | -------------------------------------------- | -------- | ---------------------------------------------- | -| requests | [Upsert.Request](#payload-v1-Upsert-Request) | repeated | Represent the multiple upsert request content. | +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| field | [string](#string) | | A path that leads to a field in the request body. The value will be a sequence of dot-separated identifiers that identify a protocol buffer field. | - +Consider the following: -### Upsert.ObjectRequest +message CreateContactRequest { message EmailAddress { enum Type { TYPE_UNSPECIFIED = 0; HOME = 1; WORK = 2; } -Represent the upsert binary object request. +optional string email = 1; repeated EmailType type = 2; } -| Field | Type | Label | Description | -| ---------- | ------------------------------------------ | ----- | ---------------------------------------- | -| object | [Object.Blob](#payload-v1-Object-Blob) | | The binary object to be upserted. | -| config | [Upsert.Config](#payload-v1-Upsert-Config) | | The configuration of the upsert request. | -| vectorizer | [Filter.Target](#payload-v1-Filter-Target) | | Filter target. | +string full_name = 1; repeated EmailAddress email_addresses = 2; } - +In this example, in proto `field` could take one of the following values: -### Upsert.Request +- `full_name` for a violation in the `full_name` value _ `email_addresses[1].email` for a violation in the `email` field of the first `email_addresses` message _ `email_addresses[3].type[2]` for a violation in the second `type` value in the third `email_addresses` message. -Represent the upsert request. +In JSON, the same values are represented as: -| Field | Type | Label | Description | -| ------ | ------------------------------------------ | ----- | ---------------------------------------- | -| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector to be upserted. | -| config | [Upsert.Config](#payload-v1-Upsert-Config) | | The configuration of the upsert request. | +- `fullName` for a violation in the `fullName` value _ `emailAddresses[1].email` for a violation in the `email` field of the first `emailAddresses` message _ `emailAddresses[3].type[2]` for a violation in the second `type` value in the third `emailAddresses` message. | + | description | [string](#string) | | A description of why the request element is bad. | - + -### Remove.Timestamp.Operator +### DebugInfo -Operator is enum of each conditional operator. +Describes additional debugging info. -| Name | Number | Description | -| ---- | ------ | ----------------------------------------------------------------------------- | -| Eq | 0 | The timestamp is equal to the specified value in the request. | -| Ne | 1 | The timestamp is not equal to the specified value in the request. | -| Ge | 2 | The timestamp is greater than or equal to the specified value in the request. | -| Gt | 3 | The timestamp is greater than the specified value in the request. | -| Le | 4 | The timestamp is less than or equal to the specified value in the request. | -| Lt | 5 | The timestamp is less than the specified value in the request. | +| Field | Type | Label | Description | +| ------------- | ----------------- | -------- | ------------------------------------------------------------ | +| stack_entries | [string](#string) | repeated | The stack trace entries indicating where the error occurred. | +| detail | [string](#string) | | Additional debugging information provided by the server. | - + -### Search.AggregationAlgorithm +### ErrorInfo -AggregationAlgorithm is enum of each aggregation algorithms +Describes the cause of the error with structured details. -| Name | Number | Description | -| --------------- | ------ | ----------- | -| Unknown | 0 | | -| ConcurrentQueue | 1 | | -| SortSlice | 2 | | -| SortPoolSlice | 3 | | -| PairingHeap | 4 | | +Example of an error when contacting the "pubsub.googleapis.com" API when it +is not enabled: - + { "reason": "API_DISABLED" + "domain": "googleapis.com" + "metadata": { + "resource": "projects/123", + "service": "pubsub.googleapis.com" + } + } -

Top

+This response indicates that the pubsub.googleapis.com API is not enabled. -## apis/proto/v1/discoverer/discoverer.proto +Example of an error that is returned when attempting to create a Spanner +instance in a region that is out of stock: - + { "reason": "STOCKOUT" + "domain": "spanner.googleapis.com", + "metadata": { + "availableRegions": "us-central1,us-east2" + } + } -### Discoverer +| Field | Type | Label | Description | +| -------- | ---------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| reason | [string](#string) | | The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. | +| domain | [string](#string) | | The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". | +| metadata | [ErrorInfo.MetadataEntry](#rpc-v1-ErrorInfo-MetadataEntry) | repeated | Additional structured details about this error. | -Represent the discoverer service. +Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. | -| Method Name | Request Type | Response Type | Description | -| ----------- | ---------------------------------------------------------------- | ------------------------------------------------ | ---------------------------------------------------- | -| Pods | [.payload.v1.Discoverer.Request](#payload-v1-Discoverer-Request) | [.payload.v1.Info.Pods](#payload-v1-Info-Pods) | Represent the RPC to get the agent pods information. | -| Nodes | [.payload.v1.Discoverer.Request](#payload-v1-Discoverer-Request) | [.payload.v1.Info.Nodes](#payload-v1-Info-Nodes) | Represent the RPC to get the node information. | + - +### ErrorInfo.MetadataEntry -

Top

+| Field | Type | Label | Description | +| ----- | ----------------- | ----- | ----------- | +| key | [string](#string) | | | +| value | [string](#string) | | | -## apis/proto/v1/vald/remove.proto + - +### Help -### Remove +Provides links to documentation or for performing an out of band action. -Remove service provides ways to remove indexed vectors. +For example, if a quota check failed with an error indicating the calling +project hasn't enabled the accessed service, this can contain a URL pointing +directly to the right place in the developer console to flip the bit. -| Method Name | Request Type | Response Type | Description | -| ----------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| Remove | [.payload.v1.Remove.Request](#payload-v1-Remove-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to remove an indexed vector. | -| RemoveByTimestamp | [.payload.v1.Remove.TimestampRequest](#payload-v1-Remove-TimestampRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to remove an indexed vector based on timestamp. | -| StreamRemove | [.payload.v1.Remove.Request](#payload-v1-Remove-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to remove multiple indexed vectors by bidirectional streaming. | -| MultiRemove | [.payload.v1.Remove.MultiRequest](#payload-v1-Remove-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to remove multiple indexed vectors in a single request. | +| Field | Type | Label | Description | +| ----- | ------------------------------ | -------- | ------------------------------------------------------------------------ | +| links | [Help.Link](#rpc-v1-Help-Link) | repeated | URL(s) pointing to additional information on handling the current error. | - + -

Top

+### Help.Link -## apis/proto/v1/vald/insert.proto +Describes a URL link. - +| Field | Type | Label | Description | +| ----------- | ----------------- | ----- | ------------------------------- | +| description | [string](#string) | | Describes what the link offers. | +| url | [string](#string) | | The URL of the link. | -### Insert + -Insert service provides ways to add new vectors. +### LocalizedMessage -| Method Name | Request Type | Response Type | Description | -| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------------------- | -| Insert | [.payload.v1.Insert.Request](#payload-v1-Insert-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to add a new single vector. | -| StreamInsert | [.payload.v1.Insert.Request](#payload-v1-Insert-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to add new multiple vectors by bidirectional streaming. | -| MultiInsert | [.payload.v1.Insert.MultiRequest](#payload-v1-Insert-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to add new multiple vectors in a single request. | +Provides a localized error message that is safe to return to the user +which can be attached to an RPC error. - +| Field | Type | Label | Description | +| ------- | ----------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| locale | [string](#string) | | The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" | +| message | [string](#string) | | The localized error message in the above locale. | -

Top

+ -## apis/proto/v1/vald/upsert.proto +### PreconditionFailure - +Describes what preconditions have failed. -### Upsert +For example, if an RPC failed because it required the Terms of Service to be +acknowledged, it could list the terms of service violation in the +PreconditionFailure message. -Upsert service provides ways to insert/update vectors. +| Field | Type | Label | Description | +| ---------- | ---------------------------------------------------------------------- | -------- | -------------------------------------- | +| violations | [PreconditionFailure.Violation](#rpc-v1-PreconditionFailure-Violation) | repeated | Describes all precondition violations. | -| Method Name | Request Type | Response Type | Description | -| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| Upsert | [.payload.v1.Upsert.Request](#payload-v1-Upsert-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to insert/update a vector. | -| StreamUpsert | [.payload.v1.Upsert.Request](#payload-v1-Upsert-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to insert/update multiple vectors by bidirectional streaming. | -| MultiUpsert | [.payload.v1.Upsert.MultiRequest](#payload-v1-Upsert-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to insert/update multiple vectors in a single request. | + - +### PreconditionFailure.Violation -

Top

+A message type used to describe a single precondition failure. -## apis/proto/v1/vald/object.proto +| Field | Type | Label | Description | +| ----------- | ----------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| type | [string](#string) | | The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation". | +| subject | [string](#string) | | The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced. | +| description | [string](#string) | | A description of how the precondition failed. Developers can use this description to understand how to fix the failure. | - +For example: "Terms of service not accepted". | -### Object + -Object service provides ways to fetch indexed vectors. +### QuotaFailure -| Method Name | Request Type | Response Type | Description | -| ---------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------- | -| Exists | [.payload.v1.Object.ID](#payload-v1-Object-ID) | [.payload.v1.Object.ID](#payload-v1-Object-ID) | A method to check whether a specified ID is indexed or not. | -| GetObject | [.payload.v1.Object.VectorRequest](#payload-v1-Object-VectorRequest) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | A method to fetch a vector. | -| StreamGetObject | [.payload.v1.Object.VectorRequest](#payload-v1-Object-VectorRequest) stream | [.payload.v1.Object.StreamVector](#payload-v1-Object-StreamVector) stream | A method to fetch vectors by bidirectional streaming. | -| StreamListObject | [.payload.v1.Object.List.Request](#payload-v1-Object-List-Request) | [.payload.v1.Object.List.Response](#payload-v1-Object-List-Response) stream | A method to get all the vectors with server streaming | +Describes how a quota check failed. - +For example if a daily limit was exceeded for the calling project, +a service could respond with a QuotaFailure detail containing the project +id and the description of the quota limit that was exceeded. If the +calling project hasn't enabled the service in the developer console, then +a service could respond with the project id and set `service_disabled` +to true. -

Top

+Also see RetryInfo and Help types for other details about handling a +quota failure. -## apis/proto/v1/vald/filter.proto +| Field | Type | Label | Description | +| ---------- | -------------------------------------------------------- | -------- | ------------------------------- | +| violations | [QuotaFailure.Violation](#rpc-v1-QuotaFailure-Violation) | repeated | Describes all quota violations. | - + -### Filter +### QuotaFailure.Violation -Filter service provides ways to connect to Vald through filter. +A message type used to describe a single quota violation. For example, a +daily quota or a custom quota that was exceeded. -| Method Name | Request Type | Response Type | Description | -| ------------------ | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------ | -| SearchObject | [.payload.v1.Search.ObjectRequest](#payload-v1-Search-ObjectRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search object. | -| MultiSearchObject | [.payload.v1.Search.MultiObjectRequest](#payload-v1-Search-MultiObjectRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search multiple objects. | -| StreamSearchObject | [.payload.v1.Search.ObjectRequest](#payload-v1-Search-ObjectRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search object by bidirectional streaming. | -| InsertObject | [.payload.v1.Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method insert object. | -| StreamInsertObject | [.payload.v1.Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | Represent the streaming RPC to insert object by bidirectional streaming. | -| MultiInsertObject | [.payload.v1.Insert.MultiObjectRequest](#payload-v1-Insert-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to insert multiple objects. | -| UpdateObject | [.payload.v1.Update.ObjectRequest](#payload-v1-Update-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to update object. | -| StreamUpdateObject | [.payload.v1.Update.ObjectRequest](#payload-v1-Update-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to update object by bidirectional streaming. | -| MultiUpdateObject | [.payload.v1.Update.MultiObjectRequest](#payload-v1-Update-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to update multiple objects. | -| UpsertObject | [.payload.v1.Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to upsert object. | -| StreamUpsertObject | [.payload.v1.Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to upsert object by bidirectional streaming. | -| MultiUpsertObject | [.payload.v1.Upsert.MultiObjectRequest](#payload-v1-Upsert-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to upsert multiple objects. | +| Field | Type | Label | Description | +| ----------- | ----------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| subject | [string](#string) | | The subject on which the quota check failed. For example, "clientip:<ip address of client>" or "project:<Google developer project id>". | +| description | [string](#string) | | A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console. | - +For example: "Service disabled" or "Daily Limit for read operations exceeded". | -

Top

+ -## apis/proto/v1/vald/search.proto +### RequestInfo - +Contains metadata about the request that clients can attach when filing a bug +or providing other forms of feedback. -### Search +| Field | Type | Label | Description | +| ------------ | ----------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| request_id | [string](#string) | | An opaque string that should only be interpreted by the service generating it. For example, it can be used to identify requests in the service's logs. | +| serving_data | [string](#string) | | Any data that was used to serve this request. For example, an encrypted stack trace that can be sent back to the service provider for debugging. | -Search service provides ways to search indexed vectors. + -| Method Name | Request Type | Response Type | Description | -| ---------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| Search | [.payload.v1.Search.Request](#payload-v1-Search-Request) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search indexed vectors by a raw vector. | -| SearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search indexed vectors by ID. | -| StreamSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search indexed vectors by multiple vectors. | -| StreamSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search indexed vectors by multiple IDs. | -| MultiSearch | [.payload.v1.Search.MultiRequest](#payload-v1-Search-MultiRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search indexed vectors by multiple vectors in a single request. | -| MultiSearchByID | [.payload.v1.Search.MultiIDRequest](#payload-v1-Search-MultiIDRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search indexed vectors by multiple IDs in a single request. | -| LinearSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to linear search indexed vectors by a raw vector. | -| LinearSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to linear search indexed vectors by ID. | -| StreamLinearSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to linear search indexed vectors by multiple vectors. | -| StreamLinearSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to linear search indexed vectors by multiple IDs. | -| MultiLinearSearch | [.payload.v1.Search.MultiRequest](#payload-v1-Search-MultiRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to linear search indexed vectors by multiple vectors in a single request. | -| MultiLinearSearchByID | [.payload.v1.Search.MultiIDRequest](#payload-v1-Search-MultiIDRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to linear search indexed vectors by multiple IDs in a single request. | +### ResourceInfo - +Describes the resource that is being accessed. -

Top

+| Field | Type | Label | Description | +| ------------- | ----------------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| resource_type | [string](#string) | | A name for the type of resource being accessed, e.g. "sql table", "cloud storage bucket", "file", "Google calendar"; or the type URL of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". | +| resource_name | [string](#string) | | The name of the resource being accessed. For example, a shared calendar name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. | +| owner | [string](#string) | | The owner of the resource (optional). For example, "user:<owner email>" or "project:<Google developer project id>". | +| description | [string](#string) | | Describes what error is encountered when accessing this resource. For example, updating a cloud project may require the `writer` permission on the developer console project. | -## apis/proto/v1/vald/update.proto + - +### RetryInfo -### Update +Describes when the clients can retry a failed request. Clients could ignore +the recommendation here or retry when this information is missing from error +responses. -Update service provides ways to update indexed vectors. +It's always recommended that clients should use exponential backoff when +retrying. -| Method Name | Request Type | Response Type | Description | -| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| Update | [.payload.v1.Update.Request](#payload-v1-Update-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to update an indexed vector. | -| StreamUpdate | [.payload.v1.Update.Request](#payload-v1-Update-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to update multiple indexed vectors by bidirectional streaming. | -| MultiUpdate | [.payload.v1.Update.MultiRequest](#payload-v1-Update-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to update multiple indexed vectors in a single request. | +Clients should wait until `retry_delay` amount of time has passed since +receiving the error response before retrying. If retrying requests also +fail, clients should use an exponential backoff scheme to gradually increase +the delay between retries based on `retry_delay`, until either a maximum +number of retries have been reached or a maximum retry delay cap has been +reached. + +| Field | Type | Label | Description | +| ----------- | ----------------------------------------------------- | ----- | ------------------------------------------------------------------------- | +| retry_delay | [google.protobuf.Duration](#google-protobuf-Duration) | | Clients should wait at least this long between retrying the same request. | ## Scalar Value Types diff --git a/apis/grpc/v1/agent/core/agent.pb.go b/apis/grpc/v1/agent/core/agent.pb.go index 1a644a12d3..8e23c516db 100644 --- a/apis/grpc/v1/agent/core/agent.pb.go +++ b/apis/grpc/v1/agent/core/agent.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/agent/core/agent.proto package core diff --git a/apis/grpc/v1/agent/sidecar/sidecar.pb.go b/apis/grpc/v1/agent/sidecar/sidecar.pb.go index ca6b2cba93..cb3e0113ed 100644 --- a/apis/grpc/v1/agent/sidecar/sidecar.pb.go +++ b/apis/grpc/v1/agent/sidecar/sidecar.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/agent/sidecar/sidecar.proto package sidecar diff --git a/apis/grpc/v1/discoverer/discoverer.pb.go b/apis/grpc/v1/discoverer/discoverer.pb.go index 6afe527031..20e34451c4 100644 --- a/apis/grpc/v1/discoverer/discoverer.pb.go +++ b/apis/grpc/v1/discoverer/discoverer.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/discoverer/discoverer.proto package discoverer diff --git a/apis/grpc/v1/filter/egress/egress_filter.pb.go b/apis/grpc/v1/filter/egress/egress_filter.pb.go index addcd7e5e2..74220d9164 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/filter/egress/egress_filter.proto package egress diff --git a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go index 737a20d42d..5f1a1403f1 100644 --- a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go @@ -20,9 +20,9 @@ import ( context "context" payload "github.com/vdaas/vald/apis/grpc/v1/payload" + codes "github.com/vdaas/vald/internal/net/grpc/codes" + status "github.com/vdaas/vald/internal/net/grpc/status" grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) diff --git a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go index 9cbaa9af3b..7a6dff2af9 100644 --- a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go +++ b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/filter/ingress/ingress_filter.proto package ingress diff --git a/apis/grpc/v1/manager/index/index_manager.pb.go b/apis/grpc/v1/manager/index/index_manager.pb.go index 7c03f50043..68dd5700d0 100644 --- a/apis/grpc/v1/manager/index/index_manager.pb.go +++ b/apis/grpc/v1/manager/index/index_manager.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/manager/index/index_manager.proto package index diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index 1bf72db76b..5946b296de 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/payload/payload.proto package payload @@ -937,9 +937,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1013,14 +1013,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1290,6 +1290,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1297,13 +1346,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1316,7 +1367,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1329,12 +1380,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} +} + +func (x *Filter_Config) GetTarget() *Filter_Target { + if x != nil { + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil +} + +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} } -func (x *Filter_Config) GetTargets() []*Filter_Target { +func (x *Filter_VectorResponse) GetVector() *Object_Vector { if x != nil { - return x.Targets + return x.Vector } return nil } @@ -1354,7 +1626,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1367,7 +1639,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1410,7 +1682,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1423,7 +1695,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1463,7 +1735,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1476,7 +1748,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1526,7 +1798,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1539,7 +1811,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1571,7 +1843,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1579,7 +1851,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1592,7 +1864,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1615,7 +1887,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1644,7 +1916,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1657,7 +1929,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1700,7 +1972,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1713,7 +1985,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1753,7 +2025,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1766,7 +2038,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1816,7 +2088,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1829,7 +2101,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1861,7 +2133,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -1872,7 +2144,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1885,7 +2157,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1908,7 +2180,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1944,7 +2216,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1957,7 +2229,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2000,7 +2272,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2013,7 +2285,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2053,7 +2325,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2066,7 +2338,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2116,7 +2388,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2129,7 +2401,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2161,7 +2433,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2172,7 +2444,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2185,7 +2457,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2208,7 +2480,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2244,7 +2516,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2257,7 +2529,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2300,7 +2572,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2313,7 +2585,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2349,7 +2621,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2362,7 +2634,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2400,7 +2672,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2413,7 +2685,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2458,7 +2730,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2471,7 +2743,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2510,13 +2782,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2529,7 +2801,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2552,7 +2824,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2574,7 +2846,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2587,7 +2859,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2633,7 +2905,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2646,7 +2918,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2713,7 +2985,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2726,7 +2998,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2761,7 +3033,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2774,7 +3046,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2814,7 +3086,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2827,7 +3099,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2877,7 +3149,7 @@ type Object_GetTimestampRequest struct { func (x *Object_GetTimestampRequest) Reset() { *x = Object_GetTimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2890,7 +3162,7 @@ func (x *Object_GetTimestampRequest) String() string { func (*Object_GetTimestampRequest) ProtoMessage() {} func (x *Object_GetTimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2928,7 +3200,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2941,7 +3213,7 @@ func (x *Object_Timestamp) String() string { func (*Object_Timestamp) ProtoMessage() {} func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2983,7 +3255,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2996,7 +3268,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3035,7 +3307,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3048,7 +3320,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3118,7 +3390,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3131,7 +3403,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3176,7 +3448,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3189,7 +3461,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3235,7 +3507,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3248,7 +3520,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3320,7 +3592,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3333,7 +3605,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3386,7 +3658,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3399,7 +3671,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3466,7 +3738,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3479,7 +3751,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3512,7 +3784,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3525,7 +3797,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3550,7 +3822,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3563,7 +3835,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3594,7 +3866,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3607,7 +3879,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3675,7 +3947,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3688,7 +3960,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3728,7 +4000,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3741,7 +4013,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3788,7 +4060,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3801,7 +4073,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3842,7 +4114,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3855,7 +4127,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3943,7 +4215,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3956,7 +4228,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4031,7 +4303,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4044,7 +4316,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4098,7 +4370,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4111,7 +4383,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4161,7 +4433,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4174,7 +4446,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4210,7 +4482,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4223,7 +4495,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4258,7 +4530,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4271,7 +4543,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4313,7 +4585,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4326,7 +4598,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4380,7 +4652,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4393,7 +4665,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4421,7 +4693,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4434,7 +4706,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4469,7 +4741,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4482,7 +4754,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4570,12 +4842,12 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, + 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, @@ -4611,15 +4883,44 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, - 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0x79, 0x0a, - 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x3d, 0x0a, 0x06, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, - 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, + 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0xc8, 0x04, + 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1d, 0x0a, 0x05, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x6b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x7a, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, + 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x1a, 0x4b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, + 0x72, 0x0a, 0x0d, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x1a, 0x43, 0x0a, 0x0e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, @@ -4653,7 +4954,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, - 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, @@ -4692,7 +4993,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, @@ -4734,7 +5035,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, @@ -4780,7 +5081,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x12, 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x64, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, @@ -4963,7 +5264,7 @@ func file_apis_proto_v1_payload_payload_proto_rawDescGZIP() []byte { } var file_apis_proto_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_apis_proto_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 76) +var file_apis_proto_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 81) var file_apis_proto_v1_payload_payload_proto_goTypes = []interface{}{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -4989,61 +5290,66 @@ var file_apis_proto_v1_payload_payload_proto_goTypes = []interface{}{ (*Search_Responses)(nil), // 21: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 22: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 23: payload.v1.Filter.Target - (*Filter_Config)(nil), // 24: payload.v1.Filter.Config - (*Insert_Request)(nil), // 25: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 26: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 27: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 28: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 29: payload.v1.Insert.Config - (*Update_Request)(nil), // 30: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 31: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 32: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 33: payload.v1.Update.MultiObjectRequest - (*Update_Config)(nil), // 34: payload.v1.Update.Config - (*Upsert_Request)(nil), // 35: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 36: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 37: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 38: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 39: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 40: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 41: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 42: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 43: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 44: payload.v1.Remove.Config - (*Object_VectorRequest)(nil), // 45: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 46: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 47: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 48: payload.v1.Object.ID - (*Object_IDs)(nil), // 49: payload.v1.Object.IDs - (*Object_Vector)(nil), // 50: payload.v1.Object.Vector - (*Object_GetTimestampRequest)(nil), // 51: payload.v1.Object.GetTimestampRequest - (*Object_Timestamp)(nil), // 52: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 53: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 54: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 55: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 56: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 57: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 58: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 59: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 60: payload.v1.Object.Locations - (*Object_List)(nil), // 61: payload.v1.Object.List - (*Object_List_Request)(nil), // 62: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 63: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 64: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 65: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 66: payload.v1.Info.Index - (*Info_Pod)(nil), // 67: payload.v1.Info.Pod - (*Info_Node)(nil), // 68: payload.v1.Info.Node - (*Info_CPU)(nil), // 69: payload.v1.Info.CPU - (*Info_Memory)(nil), // 70: payload.v1.Info.Memory - (*Info_Pods)(nil), // 71: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 72: payload.v1.Info.Nodes - (*Info_IPs)(nil), // 73: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 74: payload.v1.Info.Index.Count - (*Info_Index_UUID)(nil), // 75: payload.v1.Info.Index.UUID - (*Info_Index_UUID_Committed)(nil), // 76: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 77: payload.v1.Info.Index.UUID.Uncommitted - (*status.Status)(nil), // 78: google.rpc.Status + (*Filter_Query)(nil), // 24: payload.v1.Filter.Query + (*Filter_Config)(nil), // 25: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 26: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 27: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 28: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 29: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 30: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 31: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 32: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 33: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 34: payload.v1.Insert.Config + (*Update_Request)(nil), // 35: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 36: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 37: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 38: payload.v1.Update.MultiObjectRequest + (*Update_Config)(nil), // 39: payload.v1.Update.Config + (*Upsert_Request)(nil), // 40: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 41: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 42: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 43: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 44: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 45: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 46: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 47: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 48: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 49: payload.v1.Remove.Config + (*Object_VectorRequest)(nil), // 50: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 51: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 52: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 53: payload.v1.Object.ID + (*Object_IDs)(nil), // 54: payload.v1.Object.IDs + (*Object_Vector)(nil), // 55: payload.v1.Object.Vector + (*Object_GetTimestampRequest)(nil), // 56: payload.v1.Object.GetTimestampRequest + (*Object_Timestamp)(nil), // 57: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 58: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 59: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 60: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 61: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 62: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 63: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 64: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 65: payload.v1.Object.Locations + (*Object_List)(nil), // 66: payload.v1.Object.List + (*Object_List_Request)(nil), // 67: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 68: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 69: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 70: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 71: payload.v1.Info.Index + (*Info_Pod)(nil), // 72: payload.v1.Info.Pod + (*Info_Node)(nil), // 73: payload.v1.Info.Node + (*Info_CPU)(nil), // 74: payload.v1.Info.CPU + (*Info_Memory)(nil), // 75: payload.v1.Info.Memory + (*Info_Pods)(nil), // 76: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 77: payload.v1.Info.Nodes + (*Info_IPs)(nil), // 78: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 79: payload.v1.Info.Index.Count + (*Info_Index_UUID)(nil), // 80: payload.v1.Info.Index.UUID + (*Info_Index_UUID_Committed)(nil), // 81: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 82: payload.v1.Info.Index.UUID.Uncommitted + (*status.Status)(nil), // 83: google.rpc.Status } var file_apis_proto_v1_payload_payload_proto_depIdxs = []int32{ 19, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config @@ -5053,71 +5359,78 @@ var file_apis_proto_v1_payload_payload_proto_depIdxs = []int32{ 19, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 23, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 17, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 24, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 24, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 25, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 25, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 46, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 51, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 20, // 11: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 20, // 12: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 78, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 23, // 14: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 50, // 15: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 29, // 16: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 25, // 17: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 56, // 18: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 29, // 19: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 23, // 20: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 27, // 21: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 24, // 22: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 23: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 34, // 24: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 30, // 25: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 56, // 26: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 34, // 27: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 23, // 28: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 32, // 29: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 24, // 30: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 31: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 39, // 32: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 35, // 33: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 56, // 34: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 39, // 35: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 23, // 36: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 37, // 37: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 24, // 38: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 48, // 39: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 44, // 40: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 40, // 41: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 43, // 42: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 43: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 48, // 44: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 24, // 45: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 46, // 46: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 78, // 47: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 48, // 48: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID - 50, // 49: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 50, // 50: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 78, // 51: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 56, // 52: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 78, // 53: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 58, // 54: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 78, // 55: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 58, // 56: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 50, // 57: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 78, // 58: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 69, // 59: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 70, // 60: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 68, // 61: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 69, // 62: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 70, // 63: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 71, // 64: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 67, // 65: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 68, // 66: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 67, // [67:67] is the sub-list for method output_type - 67, // [67:67] is the sub-list for method input_type - 67, // [67:67] is the sub-list for extension type_name - 67, // [67:67] is the sub-list for extension extendee - 0, // [0:67] is the sub-list for field type_name + 83, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 23, // 14: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 24, // 15: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 51, // 16: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 24, // 17: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 51, // 18: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 55, // 19: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 24, // 20: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 55, // 21: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 55, // 22: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 34, // 23: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 30, // 24: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 61, // 25: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 34, // 26: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 23, // 27: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 32, // 28: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 25, // 29: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 30: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 39, // 31: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 35, // 32: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 61, // 33: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 39, // 34: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 23, // 35: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 37, // 36: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 25, // 37: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 38: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 44, // 39: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 40, // 40: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 61, // 41: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 44, // 42: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 23, // 43: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 42, // 44: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 25, // 45: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 53, // 46: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 49, // 47: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 45, // 48: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 48, // 49: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 50: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 53, // 51: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 25, // 52: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 51, // 53: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 83, // 54: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 53, // 55: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID + 55, // 56: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 55, // 57: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 83, // 58: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 61, // 59: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 83, // 60: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 63, // 61: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 83, // 62: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 63, // 63: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 55, // 64: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 83, // 65: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 74, // 66: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 75, // 67: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 73, // 68: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 74, // 69: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 75, // 70: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 76, // 71: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 72, // 72: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 73, // 73: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 74, // [74:74] is the sub-list for method output_type + 74, // [74:74] is the sub-list for method input_type + 74, // [74:74] is the sub-list for extension type_name + 74, // [74:74] is the sub-list for extension extendee + 0, // [0:74] is the sub-list for field type_name } func init() { file_apis_proto_v1_payload_payload_proto_init() } @@ -5391,7 +5704,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -5403,7 +5716,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -5415,7 +5728,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -5427,7 +5740,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -5439,7 +5752,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -5451,7 +5764,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -5463,7 +5776,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -5475,7 +5788,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -5487,7 +5800,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5499,7 +5812,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5511,7 +5824,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Config); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -5523,7 +5836,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -5535,7 +5848,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -5547,7 +5860,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -5559,7 +5872,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5571,7 +5884,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -5583,7 +5896,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -5595,7 +5908,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -5607,7 +5920,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5619,7 +5932,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5631,7 +5944,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -5643,7 +5956,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -5655,7 +5968,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -5667,7 +5980,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -5679,7 +5992,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -5691,7 +6004,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_IDs); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -5703,7 +6016,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -5715,7 +6028,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_GetTimestampRequest); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -5727,7 +6040,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Timestamp); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -5739,7 +6052,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -5751,7 +6064,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -5763,7 +6076,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -5775,7 +6088,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_GetTimestampRequest); i { case 0: return &v.state case 1: @@ -5787,7 +6100,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Timestamp); i { case 0: return &v.state case 1: @@ -5799,7 +6112,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -5811,7 +6124,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -5823,7 +6136,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -5835,7 +6148,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -5847,7 +6160,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -5859,7 +6172,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -5871,7 +6184,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -5883,7 +6196,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -5895,7 +6208,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -5907,7 +6220,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -5919,7 +6232,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -5931,7 +6244,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_CPU); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -5943,7 +6256,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Memory); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -5955,7 +6268,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -5967,7 +6280,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -5979,7 +6292,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -5991,7 +6304,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -6003,7 +6316,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -6015,7 +6328,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -6027,6 +6340,66 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Nodes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_IPs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_Count); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Committed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Info_Index_UUID_Uncommitted); i { case 0: return &v.state @@ -6043,23 +6416,23 @@ func file_apis_proto_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[45].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[50].OneofWrappers = []interface{}{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[52].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[57].OneofWrappers = []interface{}{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[55].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []interface{}{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[57].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[62].OneofWrappers = []interface{}{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[61].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[66].OneofWrappers = []interface{}{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -6069,7 +6442,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_apis_proto_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 76, + NumMessages: 81, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/grpc/v1/payload/payload_vtproto.pb.go b/apis/grpc/v1/payload/payload_vtproto.pb.go index 23125658a0..b318c2a31b 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -11938,7 +11938,7 @@ func (m *Filter_VectorRequest) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Vector == nil { - m.Vector = &Object_Vector{} + m.Vector = Object_VectorFromVTPool() } if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -12061,7 +12061,7 @@ func (m *Filter_VectorResponse) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Vector == nil { - m.Vector = &Object_Vector{} + m.Vector = Object_VectorFromVTPool() } if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/apis/grpc/v1/rpc/errdetails/error_details.pb.go b/apis/grpc/v1/rpc/errdetails/error_details.pb.go index cb886e1056..c4a47a53ae 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details.pb.go +++ b/apis/grpc/v1/rpc/errdetails/error_details.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/rpc/error_details.proto package errdetails diff --git a/apis/grpc/v1/vald/filter.pb.go b/apis/grpc/v1/vald/filter.pb.go index 445d914de8..ee64b7f689 100644 --- a/apis/grpc/v1/vald/filter.pb.go +++ b/apis/grpc/v1/vald/filter.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/vald/filter.proto package vald diff --git a/apis/grpc/v1/vald/insert.pb.go b/apis/grpc/v1/vald/insert.pb.go index 12e9cdadcb..d2417538a2 100644 --- a/apis/grpc/v1/vald/insert.pb.go +++ b/apis/grpc/v1/vald/insert.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/vald/insert.proto package vald diff --git a/apis/grpc/v1/vald/object.pb.go b/apis/grpc/v1/vald/object.pb.go index 82038cb45b..eb191f57df 100644 --- a/apis/grpc/v1/vald/object.pb.go +++ b/apis/grpc/v1/vald/object.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/vald/object.proto package vald diff --git a/apis/grpc/v1/vald/remove.pb.go b/apis/grpc/v1/vald/remove.pb.go index cdd4498fd6..ee444a6b46 100644 --- a/apis/grpc/v1/vald/remove.pb.go +++ b/apis/grpc/v1/vald/remove.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/vald/remove.proto package vald diff --git a/apis/grpc/v1/vald/search.pb.go b/apis/grpc/v1/vald/search.pb.go index b0882e457c..55d3e3e61a 100644 --- a/apis/grpc/v1/vald/search.pb.go +++ b/apis/grpc/v1/vald/search.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/vald/search.proto package vald diff --git a/apis/grpc/v1/vald/update.pb.go b/apis/grpc/v1/vald/update.pb.go index 2ba6c96aad..9e2413ee98 100644 --- a/apis/grpc/v1/vald/update.pb.go +++ b/apis/grpc/v1/vald/update.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/vald/update.proto package vald diff --git a/apis/grpc/v1/vald/upsert.pb.go b/apis/grpc/v1/vald/upsert.pb.go index 9996c63db2..038b02d04d 100644 --- a/apis/grpc/v1/vald/upsert.pb.go +++ b/apis/grpc/v1/vald/upsert.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.25.0 // source: apis/proto/v1/vald/upsert.proto package vald From f79cabe14a715be42f390d892e9b05550fdddb69 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 4 Dec 2023 14:07:43 +0900 Subject: [PATCH 14/43] fix: make proto/all format Signed-off-by: hlts2 --- apis/docs/v1/docs.md | 457 ++++---- .../filter/egress/egress_filter_vtproto.pb.go | 28 +- apis/grpc/v1/payload/payload.pb.go | 1005 +++++++++++------ apis/grpc/v1/payload/payload_vtproto.pb.go | 4 +- 4 files changed, 963 insertions(+), 531 deletions(-) diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index e1292b86c9..8e09b0cc11 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -25,7 +25,12 @@ - [Empty](#payload-v1-Empty) - [Filter](#payload-v1-Filter) - [Filter.Config](#payload-v1-Filter-Config) + - [Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) + - [Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) + - [Filter.Query](#payload-v1-Filter-Query) - [Filter.Target](#payload-v1-Filter-Target) + - [Filter.VectorRequest](#payload-v1-Filter-VectorRequest) + - [Filter.VectorResponse](#payload-v1-Filter-VectorResponse) - [Info](#payload-v1-Info) - [Info.CPU](#payload-v1-Info-CPU) - [Info.IPs](#payload-v1-Info-IPs) @@ -94,9 +99,24 @@ - [Upsert.MultiRequest](#payload-v1-Upsert-MultiRequest) - [Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) - [Upsert.Request](#payload-v1-Upsert-Request) + - [Remove.Timestamp.Operator](#payload-v1-Remove-Timestamp-Operator) - [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) +- [apis/proto/v1/vald/filter.proto](#apis_proto_v1_vald_filter-proto) + - [Filter](#vald-v1-Filter) +- [apis/proto/v1/vald/insert.proto](#apis_proto_v1_vald_insert-proto) + - [Insert](#vald-v1-Insert) +- [apis/proto/v1/vald/object.proto](#apis_proto_v1_vald_object-proto) + - [Object](#vald-v1-Object) +- [apis/proto/v1/vald/remove.proto](#apis_proto_v1_vald_remove-proto) + - [Remove](#vald-v1-Remove) +- [apis/proto/v1/vald/search.proto](#apis_proto_v1_vald_search-proto) + - [Search](#vald-v1-Search) +- [apis/proto/v1/vald/update.proto](#apis_proto_v1_vald_update-proto) + - [Update](#vald-v1-Update) +- [apis/proto/v1/vald/upsert.proto](#apis_proto_v1_vald_upsert-proto) + - [Upsert](#vald-v1-Upsert) - [apis/proto/v1/rpc/error_details.proto](#apis_proto_v1_rpc_error_details-proto) - [BadRequest](#rpc-v1-BadRequest) - [BadRequest.FieldViolation](#rpc-v1-BadRequest-FieldViolation) @@ -113,20 +133,6 @@ - [RequestInfo](#rpc-v1-RequestInfo) - [ResourceInfo](#rpc-v1-ResourceInfo) - [RetryInfo](#rpc-v1-RetryInfo) -- [apis/proto/v1/vald/filter.proto](#apis_proto_v1_vald_filter-proto) - - [Filter](#vald-v1-Filter) -- [apis/proto/v1/vald/insert.proto](#apis_proto_v1_vald_insert-proto) - - [Insert](#vald-v1-Insert) -- [apis/proto/v1/vald/object.proto](#apis_proto_v1_vald_object-proto) - - [Object](#vald-v1-Object) -- [apis/proto/v1/vald/remove.proto](#apis_proto_v1_vald_remove-proto) - - [Remove](#vald-v1-Remove) -- [apis/proto/v1/vald/search.proto](#apis_proto_v1_vald_search-proto) - - [Search](#vald-v1-Search) -- [apis/proto/v1/vald/update.proto](#apis_proto_v1_vald_update-proto) - - [Update](#vald-v1-Update) -- [apis/proto/v1/vald/upsert.proto](#apis_proto_v1_vald_upsert-proto) - - [Upsert](#vald-v1-Upsert) - [Scalar Value Types](#scalar-value-types) @@ -193,10 +199,10 @@ Represent the discoverer service. Represent the egress filter service. -| Method Name | Request Type | Response Type | Description | -| -------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------- | -| FilterDistance | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | Represent the RPC to filter the distance. | -| FilterVector | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to filter the vector. | +| Method Name | Request Type | Response Type | Description | +| -------------- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------- | ----------------------------------------- | +| FilterDistance | [.payload.v1.Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) | [.payload.v1.Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) | Represent the RPC to filter the distance. | +| FilterVector | [.payload.v1.Filter.VectorRequest](#payload-v1-Filter-VectorRequest) | [.payload.v1.Filter.VectorResponse](#payload-v1-Filter-VectorResponse) | Represent the RPC to filter the vector. | @@ -289,9 +295,41 @@ Filter related messages. Represent filter configuration. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | -------- | ------------------------------------------ | -| targets | [Filter.Target](#payload-v1-Filter-Target) | repeated | Represent the filter target configuration. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ------------------------------------------ | +| target | [Filter.Target](#payload-v1-Filter-Target) | | Represent the filter target configuration. | +| query | [Filter.Query](#payload-v1-Filter-Query) | | The target query. | + + + +### Filter.DistanceRequest + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.DistanceResponse + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | + + + +### Filter.Query + +Represent the filter query. + +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | --------------------- | +| query | [string](#string) | | The raw query string. | @@ -304,6 +342,27 @@ Represent the target filter server. | host | [string](#string) | | The target hostname. | | port | [uint32](#uint32) | | The target port. | + + +### Filter.VectorRequest + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Vector | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.VectorResponse + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Distance | + ### Info @@ -452,11 +511,11 @@ Insert related messages. Represent insert configurations. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | --------------------------------------------------- | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | -| timestamp | [int64](#int64) | | Insert timestamp. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | --------------------------------------------------- | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | +| timestamp | [int64](#int64) | | Insert timestamp. | @@ -684,10 +743,10 @@ Represent a vector. Represent a request to fetch raw vector. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | ----- | ---------------------------- | -| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | +| Field | Type | Label | Description | +| ------- | ------------------------------------------ | -------- | ---------------------------- | +| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | @@ -770,17 +829,17 @@ Search related messages. Represent search configuration. -| Field | Type | Label | Description | -| --------------------- | ---------------------------------------------------------------------- | ----- | ---------------------------------------- | -| request_id | [string](#string) | | Unique request ID. | -| num | [uint32](#uint32) | | Maximum number of result to be returned. | -| radius | [float](#float) | | Search radius. | -| epsilon | [float](#float) | | Search coefficient. | -| timeout | [int64](#int64) | | Search timeout in nanoseconds. | -| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Ingress filter configurations. | -| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Egress filter configurations. | -| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | -| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | +| Field | Type | Label | Description | +| --------------------- | ---------------------------------------------------------------------- | -------- | ---------------------------------------- | +| request_id | [string](#string) | | Unique request ID. | +| num | [uint32](#uint32) | | Maximum number of result to be returned. | +| radius | [float](#float) | | Search radius. | +| epsilon | [float](#float) | | Search coefficient. | +| timeout | [int64](#int64) | | Search timeout in nanoseconds. | +| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Ingress filter configurations. | +| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Egress filter configurations. | +| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | +| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | @@ -890,12 +949,12 @@ Update related messages Represent the update configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Update timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Update timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -952,12 +1011,12 @@ Upsert related messages. Represent the upsert configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Upsert timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Upsert timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -1031,6 +1090,152 @@ AggregationAlgorithm is enum of each aggregation algorithms | SortPoolSlice | 3 | | | PairingHeap | 4 | | + + +

Top

+ +## apis/proto/v1/vald/filter.proto + + + +### Filter + +Filter service provides ways to connect to Vald through filter. + +| Method Name | Request Type | Response Type | Description | +| ------------------ | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------ | +| SearchObject | [.payload.v1.Search.ObjectRequest](#payload-v1-Search-ObjectRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search object. | +| MultiSearchObject | [.payload.v1.Search.MultiObjectRequest](#payload-v1-Search-MultiObjectRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search multiple objects. | +| StreamSearchObject | [.payload.v1.Search.ObjectRequest](#payload-v1-Search-ObjectRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search object by bidirectional streaming. | +| InsertObject | [.payload.v1.Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method insert object. | +| StreamInsertObject | [.payload.v1.Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | Represent the streaming RPC to insert object by bidirectional streaming. | +| MultiInsertObject | [.payload.v1.Insert.MultiObjectRequest](#payload-v1-Insert-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to insert multiple objects. | +| UpdateObject | [.payload.v1.Update.ObjectRequest](#payload-v1-Update-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to update object. | +| StreamUpdateObject | [.payload.v1.Update.ObjectRequest](#payload-v1-Update-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to update object by bidirectional streaming. | +| MultiUpdateObject | [.payload.v1.Update.MultiObjectRequest](#payload-v1-Update-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to update multiple objects. | +| UpsertObject | [.payload.v1.Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to upsert object. | +| StreamUpsertObject | [.payload.v1.Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to upsert object by bidirectional streaming. | +| MultiUpsertObject | [.payload.v1.Upsert.MultiObjectRequest](#payload-v1-Upsert-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to upsert multiple objects. | + + + +

Top

+ +## apis/proto/v1/vald/insert.proto + + + +### Insert + +Insert service provides ways to add new vectors. + +| Method Name | Request Type | Response Type | Description | +| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------------------- | +| Insert | [.payload.v1.Insert.Request](#payload-v1-Insert-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to add a new single vector. | +| StreamInsert | [.payload.v1.Insert.Request](#payload-v1-Insert-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to add new multiple vectors by bidirectional streaming. | +| MultiInsert | [.payload.v1.Insert.MultiRequest](#payload-v1-Insert-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to add new multiple vectors in a single request. | + + + +

Top

+ +## apis/proto/v1/vald/object.proto + + + +### Object + +Object service provides ways to fetch indexed vectors. + +| Method Name | Request Type | Response Type | Description | +| ---------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------- | +| Exists | [.payload.v1.Object.ID](#payload-v1-Object-ID) | [.payload.v1.Object.ID](#payload-v1-Object-ID) | A method to check whether a specified ID is indexed or not. | +| GetObject | [.payload.v1.Object.VectorRequest](#payload-v1-Object-VectorRequest) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | A method to fetch a vector. | +| StreamGetObject | [.payload.v1.Object.VectorRequest](#payload-v1-Object-VectorRequest) stream | [.payload.v1.Object.StreamVector](#payload-v1-Object-StreamVector) stream | A method to fetch vectors by bidirectional streaming. | +| StreamListObject | [.payload.v1.Object.List.Request](#payload-v1-Object-List-Request) | [.payload.v1.Object.List.Response](#payload-v1-Object-List-Response) stream | A method to get all the vectors with server streaming | + + + +

Top

+ +## apis/proto/v1/vald/remove.proto + + + +### Remove + +Remove service provides ways to remove indexed vectors. + +| Method Name | Request Type | Response Type | Description | +| ----------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| Remove | [.payload.v1.Remove.Request](#payload-v1-Remove-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to remove an indexed vector. | +| RemoveByTimestamp | [.payload.v1.Remove.TimestampRequest](#payload-v1-Remove-TimestampRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to remove an indexed vector based on timestamp. | +| StreamRemove | [.payload.v1.Remove.Request](#payload-v1-Remove-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to remove multiple indexed vectors by bidirectional streaming. | +| MultiRemove | [.payload.v1.Remove.MultiRequest](#payload-v1-Remove-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to remove multiple indexed vectors in a single request. | + + + +

Top

+ +## apis/proto/v1/vald/search.proto + + + +### Search + +Search service provides ways to search indexed vectors. + +| Method Name | Request Type | Response Type | Description | +| ---------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| Search | [.payload.v1.Search.Request](#payload-v1-Search-Request) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search indexed vectors by a raw vector. | +| SearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search indexed vectors by ID. | +| StreamSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search indexed vectors by multiple vectors. | +| StreamSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search indexed vectors by multiple IDs. | +| MultiSearch | [.payload.v1.Search.MultiRequest](#payload-v1-Search-MultiRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search indexed vectors by multiple vectors in a single request. | +| MultiSearchByID | [.payload.v1.Search.MultiIDRequest](#payload-v1-Search-MultiIDRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search indexed vectors by multiple IDs in a single request. | +| LinearSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to linear search indexed vectors by a raw vector. | +| LinearSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to linear search indexed vectors by ID. | +| StreamLinearSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to linear search indexed vectors by multiple vectors. | +| StreamLinearSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to linear search indexed vectors by multiple IDs. | +| MultiLinearSearch | [.payload.v1.Search.MultiRequest](#payload-v1-Search-MultiRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to linear search indexed vectors by multiple vectors in a single request. | +| MultiLinearSearchByID | [.payload.v1.Search.MultiIDRequest](#payload-v1-Search-MultiIDRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to linear search indexed vectors by multiple IDs in a single request. | + + + +

Top

+ +## apis/proto/v1/vald/update.proto + + + +### Update + +Update service provides ways to update indexed vectors. + +| Method Name | Request Type | Response Type | Description | +| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| Update | [.payload.v1.Update.Request](#payload-v1-Update-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to update an indexed vector. | +| StreamUpdate | [.payload.v1.Update.Request](#payload-v1-Update-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to update multiple indexed vectors by bidirectional streaming. | +| MultiUpdate | [.payload.v1.Update.MultiRequest](#payload-v1-Update-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to update multiple indexed vectors in a single request. | + + + +

Top

+ +## apis/proto/v1/vald/upsert.proto + + + +### Upsert + +Upsert service provides ways to insert/update vectors. + +| Method Name | Request Type | Response Type | Description | +| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| Upsert | [.payload.v1.Upsert.Request](#payload-v1-Upsert-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to insert/update a vector. | +| StreamUpsert | [.payload.v1.Upsert.Request](#payload-v1-Upsert-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to insert/update multiple vectors by bidirectional streaming. | +| MultiUpsert | [.payload.v1.Upsert.MultiRequest](#payload-v1-Upsert-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to insert/update multiple vectors in a single request. | +

Top

@@ -1278,152 +1483,6 @@ reached. | ----------- | ----------------------------------------------------- | ----- | ------------------------------------------------------------------------- | | retry_delay | [google.protobuf.Duration](#google-protobuf-Duration) | | Clients should wait at least this long between retrying the same request. | - - -

Top

- -## apis/proto/v1/vald/filter.proto - - - -### Filter - -Filter service provides ways to connect to Vald through filter. - -| Method Name | Request Type | Response Type | Description | -| ------------------ | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------ | -| SearchObject | [.payload.v1.Search.ObjectRequest](#payload-v1-Search-ObjectRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search object. | -| MultiSearchObject | [.payload.v1.Search.MultiObjectRequest](#payload-v1-Search-MultiObjectRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search multiple objects. | -| StreamSearchObject | [.payload.v1.Search.ObjectRequest](#payload-v1-Search-ObjectRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search object by bidirectional streaming. | -| InsertObject | [.payload.v1.Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method insert object. | -| StreamInsertObject | [.payload.v1.Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | Represent the streaming RPC to insert object by bidirectional streaming. | -| MultiInsertObject | [.payload.v1.Insert.MultiObjectRequest](#payload-v1-Insert-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to insert multiple objects. | -| UpdateObject | [.payload.v1.Update.ObjectRequest](#payload-v1-Update-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to update object. | -| StreamUpdateObject | [.payload.v1.Update.ObjectRequest](#payload-v1-Update-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to update object by bidirectional streaming. | -| MultiUpdateObject | [.payload.v1.Update.MultiObjectRequest](#payload-v1-Update-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to update multiple objects. | -| UpsertObject | [.payload.v1.Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to upsert object. | -| StreamUpsertObject | [.payload.v1.Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to upsert object by bidirectional streaming. | -| MultiUpsertObject | [.payload.v1.Upsert.MultiObjectRequest](#payload-v1-Upsert-MultiObjectRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to upsert multiple objects. | - - - -

Top

- -## apis/proto/v1/vald/insert.proto - - - -### Insert - -Insert service provides ways to add new vectors. - -| Method Name | Request Type | Response Type | Description | -| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------------------- | -| Insert | [.payload.v1.Insert.Request](#payload-v1-Insert-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to add a new single vector. | -| StreamInsert | [.payload.v1.Insert.Request](#payload-v1-Insert-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to add new multiple vectors by bidirectional streaming. | -| MultiInsert | [.payload.v1.Insert.MultiRequest](#payload-v1-Insert-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to add new multiple vectors in a single request. | - - - -

Top

- -## apis/proto/v1/vald/object.proto - - - -### Object - -Object service provides ways to fetch indexed vectors. - -| Method Name | Request Type | Response Type | Description | -| ---------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------- | -| Exists | [.payload.v1.Object.ID](#payload-v1-Object-ID) | [.payload.v1.Object.ID](#payload-v1-Object-ID) | A method to check whether a specified ID is indexed or not. | -| GetObject | [.payload.v1.Object.VectorRequest](#payload-v1-Object-VectorRequest) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | A method to fetch a vector. | -| StreamGetObject | [.payload.v1.Object.VectorRequest](#payload-v1-Object-VectorRequest) stream | [.payload.v1.Object.StreamVector](#payload-v1-Object-StreamVector) stream | A method to fetch vectors by bidirectional streaming. | -| StreamListObject | [.payload.v1.Object.List.Request](#payload-v1-Object-List-Request) | [.payload.v1.Object.List.Response](#payload-v1-Object-List-Response) stream | A method to get all the vectors with server streaming | - - - -

Top

- -## apis/proto/v1/vald/remove.proto - - - -### Remove - -Remove service provides ways to remove indexed vectors. - -| Method Name | Request Type | Response Type | Description | -| ----------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| Remove | [.payload.v1.Remove.Request](#payload-v1-Remove-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to remove an indexed vector. | -| RemoveByTimestamp | [.payload.v1.Remove.TimestampRequest](#payload-v1-Remove-TimestampRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to remove an indexed vector based on timestamp. | -| StreamRemove | [.payload.v1.Remove.Request](#payload-v1-Remove-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to remove multiple indexed vectors by bidirectional streaming. | -| MultiRemove | [.payload.v1.Remove.MultiRequest](#payload-v1-Remove-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to remove multiple indexed vectors in a single request. | - - - -

Top

- -## apis/proto/v1/vald/search.proto - - - -### Search - -Search service provides ways to search indexed vectors. - -| Method Name | Request Type | Response Type | Description | -| ---------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| Search | [.payload.v1.Search.Request](#payload-v1-Search-Request) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search indexed vectors by a raw vector. | -| SearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to search indexed vectors by ID. | -| StreamSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search indexed vectors by multiple vectors. | -| StreamSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to search indexed vectors by multiple IDs. | -| MultiSearch | [.payload.v1.Search.MultiRequest](#payload-v1-Search-MultiRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search indexed vectors by multiple vectors in a single request. | -| MultiSearchByID | [.payload.v1.Search.MultiIDRequest](#payload-v1-Search-MultiIDRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to search indexed vectors by multiple IDs in a single request. | -| LinearSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to linear search indexed vectors by a raw vector. | -| LinearSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) | [.payload.v1.Search.Response](#payload-v1-Search-Response) | A method to linear search indexed vectors by ID. | -| StreamLinearSearch | [.payload.v1.Search.Request](#payload-v1-Search-Request) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to linear search indexed vectors by multiple vectors. | -| StreamLinearSearchByID | [.payload.v1.Search.IDRequest](#payload-v1-Search-IDRequest) stream | [.payload.v1.Search.StreamResponse](#payload-v1-Search-StreamResponse) stream | A method to linear search indexed vectors by multiple IDs. | -| MultiLinearSearch | [.payload.v1.Search.MultiRequest](#payload-v1-Search-MultiRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to linear search indexed vectors by multiple vectors in a single request. | -| MultiLinearSearchByID | [.payload.v1.Search.MultiIDRequest](#payload-v1-Search-MultiIDRequest) | [.payload.v1.Search.Responses](#payload-v1-Search-Responses) | A method to linear search indexed vectors by multiple IDs in a single request. | - - - -

Top

- -## apis/proto/v1/vald/update.proto - - - -### Update - -Update service provides ways to update indexed vectors. - -| Method Name | Request Type | Response Type | Description | -| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| Update | [.payload.v1.Update.Request](#payload-v1-Update-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to update an indexed vector. | -| StreamUpdate | [.payload.v1.Update.Request](#payload-v1-Update-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to update multiple indexed vectors by bidirectional streaming. | -| MultiUpdate | [.payload.v1.Update.MultiRequest](#payload-v1-Update-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to update multiple indexed vectors in a single request. | - - - -

Top

- -## apis/proto/v1/vald/upsert.proto - - - -### Upsert - -Upsert service provides ways to insert/update vectors. - -| Method Name | Request Type | Response Type | Description | -| ------------ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| Upsert | [.payload.v1.Upsert.Request](#payload-v1-Upsert-Request) | [.payload.v1.Object.Location](#payload-v1-Object-Location) | A method to insert/update a vector. | -| StreamUpsert | [.payload.v1.Upsert.Request](#payload-v1-Upsert-Request) stream | [.payload.v1.Object.StreamLocation](#payload-v1-Object-StreamLocation) stream | A method to insert/update multiple vectors by bidirectional streaming. | -| MultiUpsert | [.payload.v1.Upsert.MultiRequest](#payload-v1-Upsert-MultiRequest) | [.payload.v1.Object.Locations](#payload-v1-Object-Locations) | A method to insert/update multiple vectors in a single request. | - ## Scalar Value Types | .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby | diff --git a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go index 3ddc4b609b..5f1a1403f1 100644 --- a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go @@ -43,9 +43,9 @@ const _ = grpc.SupportPackageIsVersion7 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type FilterClient interface { // Represent the RPC to filter the distance. - FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (*payload.Object_Distance, error) + FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption) (*payload.Filter_DistanceResponse, error) // Represent the RPC to filter the vector. - FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Object_Vector, error) + FilterVector(ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption) (*payload.Filter_VectorResponse, error) } type filterClient struct { @@ -56,8 +56,8 @@ func NewFilterClient(cc grpc.ClientConnInterface) FilterClient { return &filterClient{cc} } -func (c *filterClient) FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (*payload.Object_Distance, error) { - out := new(payload.Object_Distance) +func (c *filterClient) FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption) (*payload.Filter_DistanceResponse, error) { + out := new(payload.Filter_DistanceResponse) err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterDistance", in, out, opts...) if err != nil { return nil, err @@ -65,8 +65,8 @@ func (c *filterClient) FilterDistance(ctx context.Context, in *payload.Object_Di return out, nil } -func (c *filterClient) FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Object_Vector, error) { - out := new(payload.Object_Vector) +func (c *filterClient) FilterVector(ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption) (*payload.Filter_VectorResponse, error) { + out := new(payload.Filter_VectorResponse) err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterVector", in, out, opts...) if err != nil { return nil, err @@ -79,9 +79,9 @@ func (c *filterClient) FilterVector(ctx context.Context, in *payload.Object_Vect // for forward compatibility type FilterServer interface { // Represent the RPC to filter the distance. - FilterDistance(context.Context, *payload.Object_Distance) (*payload.Object_Distance, error) + FilterDistance(context.Context, *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error) // Represent the RPC to filter the vector. - FilterVector(context.Context, *payload.Object_Vector) (*payload.Object_Vector, error) + FilterVector(context.Context, *payload.Filter_VectorRequest) (*payload.Filter_VectorResponse, error) mustEmbedUnimplementedFilterServer() } @@ -89,10 +89,10 @@ type FilterServer interface { type UnimplementedFilterServer struct { } -func (UnimplementedFilterServer) FilterDistance(context.Context, *payload.Object_Distance) (*payload.Object_Distance, error) { +func (UnimplementedFilterServer) FilterDistance(context.Context, *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterDistance not implemented") } -func (UnimplementedFilterServer) FilterVector(context.Context, *payload.Object_Vector) (*payload.Object_Vector, error) { +func (UnimplementedFilterServer) FilterVector(context.Context, *payload.Filter_VectorRequest) (*payload.Filter_VectorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterVector not implemented") } func (UnimplementedFilterServer) mustEmbedUnimplementedFilterServer() {} @@ -109,7 +109,7 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) { } func _Filter_FilterDistance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(payload.Object_Distance) + in := new(payload.Filter_DistanceRequest) if err := dec(in); err != nil { return nil, err } @@ -121,13 +121,13 @@ func _Filter_FilterDistance_Handler(srv interface{}, ctx context.Context, dec fu FullMethod: "/filter.egress.v1.Filter/FilterDistance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FilterServer).FilterDistance(ctx, req.(*payload.Object_Distance)) + return srv.(FilterServer).FilterDistance(ctx, req.(*payload.Filter_DistanceRequest)) } return interceptor(ctx, in, info, handler) } func _Filter_FilterVector_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(payload.Object_Vector) + in := new(payload.Filter_VectorRequest) if err := dec(in); err != nil { return nil, err } @@ -139,7 +139,7 @@ func _Filter_FilterVector_Handler(srv interface{}, ctx context.Context, dec func FullMethod: "/filter.egress.v1.Filter/FilterVector", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FilterServer).FilterVector(ctx, req.(*payload.Object_Vector)) + return srv.(FilterServer).FilterVector(ctx, req.(*payload.Filter_VectorRequest)) } return interceptor(ctx, in, info, handler) } diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index 00a5590b8b..f79eb8b35a 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -936,9 +936,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1012,14 +1012,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1289,6 +1289,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1296,13 +1345,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1315,7 +1366,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[22] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1328,12 +1379,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} +} + +func (x *Filter_Config) GetTarget() *Filter_Target { + if x != nil { + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil +} + +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (x *Filter_Config) GetTargets() []*Filter_Target { +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_apis_proto_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} +} + +func (x *Filter_VectorResponse) GetVector() *Object_Vector { if x != nil { - return x.Targets + return x.Vector } return nil } @@ -1353,7 +1625,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1366,7 +1638,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[23] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1409,7 +1681,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1422,7 +1694,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[24] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1462,7 +1734,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1475,7 +1747,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[25] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1525,7 +1797,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1538,7 +1810,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[26] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1570,7 +1842,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1578,7 +1850,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1591,7 +1863,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[27] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1614,7 +1886,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1643,7 +1915,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1656,7 +1928,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[28] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1699,7 +1971,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1712,7 +1984,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[29] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1752,7 +2024,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1765,7 +2037,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[30] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1815,7 +2087,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1828,7 +2100,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[31] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1860,7 +2132,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -1871,7 +2143,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1884,7 +2156,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[32] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1907,7 +2179,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1943,7 +2215,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1956,7 +2228,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[33] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1999,7 +2271,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2012,7 +2284,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[34] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2052,7 +2324,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2065,7 +2337,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[35] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2115,7 +2387,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2128,7 +2400,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[36] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2160,7 +2432,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2171,7 +2443,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2184,7 +2456,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[37] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2207,7 +2479,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2243,7 +2515,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2256,7 +2528,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[38] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2299,7 +2571,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2312,7 +2584,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[39] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2348,7 +2620,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2361,7 +2633,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[40] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2399,7 +2671,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2412,7 +2684,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[41] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2457,7 +2729,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2470,7 +2742,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[42] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2509,13 +2781,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2528,7 +2800,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[43] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2551,7 +2823,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2573,7 +2845,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2586,7 +2858,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[44] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2632,7 +2904,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2645,7 +2917,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[45] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2712,7 +2984,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2725,7 +2997,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[46] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2760,7 +3032,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2773,7 +3045,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[47] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2813,7 +3085,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2826,7 +3098,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[48] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2876,7 +3148,7 @@ type Object_GetTimestampRequest struct { func (x *Object_GetTimestampRequest) Reset() { *x = Object_GetTimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2889,7 +3161,7 @@ func (x *Object_GetTimestampRequest) String() string { func (*Object_GetTimestampRequest) ProtoMessage() {} func (x *Object_GetTimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[49] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2927,7 +3199,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2940,7 +3212,7 @@ func (x *Object_Timestamp) String() string { func (*Object_Timestamp) ProtoMessage() {} func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[50] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2982,7 +3254,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2995,7 +3267,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[51] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3034,7 +3306,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3047,7 +3319,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[52] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3117,7 +3389,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3130,7 +3402,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[53] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3175,7 +3447,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3188,7 +3460,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[54] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3234,7 +3506,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3247,7 +3519,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[55] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3319,7 +3591,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3332,7 +3604,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[56] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3385,7 +3657,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3398,7 +3670,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[57] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3465,7 +3737,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3478,7 +3750,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[58] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3511,7 +3783,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3524,7 +3796,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[59] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3549,7 +3821,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3562,7 +3834,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[60] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3593,7 +3865,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3606,7 +3878,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[61] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3674,7 +3946,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3687,7 +3959,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[62] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3727,7 +3999,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3740,7 +4012,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[63] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3787,7 +4059,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3800,7 +4072,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[64] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3841,7 +4113,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3854,7 +4126,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[65] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3942,7 +4214,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3955,7 +4227,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[66] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4030,7 +4302,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4043,7 +4315,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[67] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4097,7 +4369,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4110,7 +4382,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[68] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4160,7 +4432,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4173,7 +4445,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[69] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4209,7 +4481,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4222,7 +4494,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[70] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4257,7 +4529,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4270,7 +4542,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[71] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4312,7 +4584,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4325,7 +4597,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[72] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4379,7 +4651,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4392,7 +4664,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[73] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4420,7 +4692,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4433,7 +4705,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[74] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4468,7 +4740,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4481,7 +4753,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[75] + mi := &file_apis_proto_v1_payload_payload_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4564,11 +4836,11 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, @@ -4604,15 +4876,44 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x72, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, - 0x0b, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0x79, - 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x3d, 0x0a, 0x06, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, - 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, + 0x0b, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0xc8, + 0x04, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1d, 0x0a, 0x05, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x6b, 0x0a, 0x06, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, + 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x7a, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x1a, 0x4b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x1a, 0x72, 0x0a, 0x0d, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x1a, 0x43, 0x0a, 0x0e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, @@ -4646,7 +4947,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, - 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, @@ -4685,7 +4986,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, @@ -4727,7 +5028,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, @@ -4774,7 +5075,7 @@ var file_apis_proto_v1_payload_payload_proto_rawDesc = []byte{ 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, @@ -4956,7 +5257,7 @@ func file_apis_proto_v1_payload_payload_proto_rawDescGZIP() []byte { } var file_apis_proto_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_apis_proto_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 76) +var file_apis_proto_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 81) var file_apis_proto_v1_payload_payload_proto_goTypes = []interface{}{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -4982,61 +5283,66 @@ var file_apis_proto_v1_payload_payload_proto_goTypes = []interface{}{ (*Search_Responses)(nil), // 21: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 22: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 23: payload.v1.Filter.Target - (*Filter_Config)(nil), // 24: payload.v1.Filter.Config - (*Insert_Request)(nil), // 25: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 26: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 27: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 28: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 29: payload.v1.Insert.Config - (*Update_Request)(nil), // 30: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 31: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 32: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 33: payload.v1.Update.MultiObjectRequest - (*Update_Config)(nil), // 34: payload.v1.Update.Config - (*Upsert_Request)(nil), // 35: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 36: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 37: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 38: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 39: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 40: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 41: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 42: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 43: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 44: payload.v1.Remove.Config - (*Object_VectorRequest)(nil), // 45: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 46: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 47: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 48: payload.v1.Object.ID - (*Object_IDs)(nil), // 49: payload.v1.Object.IDs - (*Object_Vector)(nil), // 50: payload.v1.Object.Vector - (*Object_GetTimestampRequest)(nil), // 51: payload.v1.Object.GetTimestampRequest - (*Object_Timestamp)(nil), // 52: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 53: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 54: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 55: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 56: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 57: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 58: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 59: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 60: payload.v1.Object.Locations - (*Object_List)(nil), // 61: payload.v1.Object.List - (*Object_List_Request)(nil), // 62: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 63: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 64: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 65: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 66: payload.v1.Info.Index - (*Info_Pod)(nil), // 67: payload.v1.Info.Pod - (*Info_Node)(nil), // 68: payload.v1.Info.Node - (*Info_CPU)(nil), // 69: payload.v1.Info.CPU - (*Info_Memory)(nil), // 70: payload.v1.Info.Memory - (*Info_Pods)(nil), // 71: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 72: payload.v1.Info.Nodes - (*Info_IPs)(nil), // 73: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 74: payload.v1.Info.Index.Count - (*Info_Index_UUID)(nil), // 75: payload.v1.Info.Index.UUID - (*Info_Index_UUID_Committed)(nil), // 76: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 77: payload.v1.Info.Index.UUID.Uncommitted - (*status.Status)(nil), // 78: google.rpc.Status + (*Filter_Query)(nil), // 24: payload.v1.Filter.Query + (*Filter_Config)(nil), // 25: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 26: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 27: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 28: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 29: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 30: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 31: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 32: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 33: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 34: payload.v1.Insert.Config + (*Update_Request)(nil), // 35: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 36: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 37: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 38: payload.v1.Update.MultiObjectRequest + (*Update_Config)(nil), // 39: payload.v1.Update.Config + (*Upsert_Request)(nil), // 40: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 41: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 42: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 43: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 44: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 45: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 46: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 47: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 48: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 49: payload.v1.Remove.Config + (*Object_VectorRequest)(nil), // 50: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 51: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 52: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 53: payload.v1.Object.ID + (*Object_IDs)(nil), // 54: payload.v1.Object.IDs + (*Object_Vector)(nil), // 55: payload.v1.Object.Vector + (*Object_GetTimestampRequest)(nil), // 56: payload.v1.Object.GetTimestampRequest + (*Object_Timestamp)(nil), // 57: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 58: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 59: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 60: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 61: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 62: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 63: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 64: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 65: payload.v1.Object.Locations + (*Object_List)(nil), // 66: payload.v1.Object.List + (*Object_List_Request)(nil), // 67: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 68: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 69: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 70: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 71: payload.v1.Info.Index + (*Info_Pod)(nil), // 72: payload.v1.Info.Pod + (*Info_Node)(nil), // 73: payload.v1.Info.Node + (*Info_CPU)(nil), // 74: payload.v1.Info.CPU + (*Info_Memory)(nil), // 75: payload.v1.Info.Memory + (*Info_Pods)(nil), // 76: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 77: payload.v1.Info.Nodes + (*Info_IPs)(nil), // 78: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 79: payload.v1.Info.Index.Count + (*Info_Index_UUID)(nil), // 80: payload.v1.Info.Index.UUID + (*Info_Index_UUID_Committed)(nil), // 81: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 82: payload.v1.Info.Index.UUID.Uncommitted + (*status.Status)(nil), // 83: google.rpc.Status } var file_apis_proto_v1_payload_payload_proto_depIdxs = []int32{ 19, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config @@ -5046,71 +5352,78 @@ var file_apis_proto_v1_payload_payload_proto_depIdxs = []int32{ 19, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 23, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 17, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 24, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 24, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 25, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 25, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 46, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 51, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 20, // 11: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 20, // 12: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 78, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 23, // 14: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 50, // 15: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 29, // 16: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 25, // 17: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 56, // 18: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 29, // 19: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 23, // 20: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 27, // 21: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 24, // 22: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 23: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 34, // 24: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 30, // 25: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 56, // 26: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 34, // 27: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 23, // 28: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 32, // 29: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 24, // 30: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 31: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 39, // 32: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 35, // 33: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 56, // 34: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 39, // 35: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 23, // 36: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 37, // 37: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 24, // 38: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 48, // 39: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 44, // 40: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 40, // 41: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 43, // 42: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 43: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 48, // 44: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 24, // 45: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 46, // 46: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 78, // 47: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 48, // 48: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID - 50, // 49: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 50, // 50: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 78, // 51: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 56, // 52: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 78, // 53: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 58, // 54: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 78, // 55: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 58, // 56: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 50, // 57: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 78, // 58: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 69, // 59: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 70, // 60: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 68, // 61: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 69, // 62: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 70, // 63: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 71, // 64: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 67, // 65: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 68, // 66: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 67, // [67:67] is the sub-list for method output_type - 67, // [67:67] is the sub-list for method input_type - 67, // [67:67] is the sub-list for extension type_name - 67, // [67:67] is the sub-list for extension extendee - 0, // [0:67] is the sub-list for field type_name + 83, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 23, // 14: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 24, // 15: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 51, // 16: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 24, // 17: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 51, // 18: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 55, // 19: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 24, // 20: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 55, // 21: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 55, // 22: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 34, // 23: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 30, // 24: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 61, // 25: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 34, // 26: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 23, // 27: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 32, // 28: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 25, // 29: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 30: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 39, // 31: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 35, // 32: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 61, // 33: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 39, // 34: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 23, // 35: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 37, // 36: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 25, // 37: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 38: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 44, // 39: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 40, // 40: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 61, // 41: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 44, // 42: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 23, // 43: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 42, // 44: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 25, // 45: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 53, // 46: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 49, // 47: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 45, // 48: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 48, // 49: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 50: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 53, // 51: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 25, // 52: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 51, // 53: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 83, // 54: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 53, // 55: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID + 55, // 56: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 55, // 57: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 83, // 58: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 61, // 59: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 83, // 60: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 63, // 61: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 83, // 62: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 63, // 63: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 55, // 64: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 83, // 65: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 74, // 66: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 75, // 67: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 73, // 68: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 74, // 69: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 75, // 70: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 76, // 71: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 72, // 72: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 73, // 73: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 74, // [74:74] is the sub-list for method output_type + 74, // [74:74] is the sub-list for method input_type + 74, // [74:74] is the sub-list for extension type_name + 74, // [74:74] is the sub-list for extension extendee + 0, // [0:74] is the sub-list for field type_name } func init() { file_apis_proto_v1_payload_payload_proto_init() } @@ -5384,7 +5697,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -5396,7 +5709,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -5408,7 +5721,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -5420,7 +5733,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -5432,7 +5745,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -5444,7 +5757,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -5456,7 +5769,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -5468,7 +5781,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -5480,7 +5793,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5492,7 +5805,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5504,7 +5817,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Config); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -5516,7 +5829,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -5528,7 +5841,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -5540,7 +5853,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -5552,7 +5865,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5564,7 +5877,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -5576,7 +5889,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -5588,7 +5901,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -5600,7 +5913,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5612,7 +5925,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5624,7 +5937,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -5636,7 +5949,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -5648,7 +5961,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -5660,7 +5973,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -5672,7 +5985,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -5684,7 +5997,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_IDs); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -5696,7 +6009,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -5708,7 +6021,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_GetTimestampRequest); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -5720,7 +6033,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Timestamp); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -5732,7 +6045,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -5744,7 +6057,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -5756,7 +6069,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -5768,7 +6081,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_GetTimestampRequest); i { case 0: return &v.state case 1: @@ -5780,7 +6093,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Timestamp); i { case 0: return &v.state case 1: @@ -5792,7 +6105,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -5804,7 +6117,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -5816,7 +6129,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -5828,7 +6141,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -5840,7 +6153,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -5852,7 +6165,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -5864,7 +6177,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -5876,7 +6189,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -5888,7 +6201,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -5900,7 +6213,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -5912,7 +6225,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -5924,7 +6237,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_CPU); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -5936,7 +6249,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Memory); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -5948,7 +6261,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -5960,7 +6273,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -5972,7 +6285,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -5984,7 +6297,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -5996,7 +6309,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -6008,7 +6321,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -6020,6 +6333,66 @@ func file_apis_proto_v1_payload_payload_proto_init() { } } file_apis_proto_v1_payload_payload_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Nodes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_IPs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_Count); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Committed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_apis_proto_v1_payload_payload_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Info_Index_UUID_Uncommitted); i { case 0: return &v.state @@ -6036,23 +6409,23 @@ func file_apis_proto_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[45].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[50].OneofWrappers = []interface{}{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[52].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[57].OneofWrappers = []interface{}{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[55].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []interface{}{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[57].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[62].OneofWrappers = []interface{}{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_apis_proto_v1_payload_payload_proto_msgTypes[61].OneofWrappers = []interface{}{ + file_apis_proto_v1_payload_payload_proto_msgTypes[66].OneofWrappers = []interface{}{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -6062,7 +6435,7 @@ func file_apis_proto_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_apis_proto_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 76, + NumMessages: 81, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/grpc/v1/payload/payload_vtproto.pb.go b/apis/grpc/v1/payload/payload_vtproto.pb.go index a9d5a197fd..1cd668a939 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -11916,7 +11916,7 @@ func (m *Filter_VectorRequest) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Vector == nil { - m.Vector = Object_VectorFromVTPool() + m.Vector = &Object_Vector{} } if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -12039,7 +12039,7 @@ func (m *Filter_VectorResponse) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Vector == nil { - m.Vector = Object_VectorFromVTPool() + m.Vector = &Object_Vector{} } if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err From 46499bd87216690baaaa5e352e64575f563880cc Mon Sep 17 00:00:00 2001 From: hlts2 Date: Thu, 7 Dec 2023 15:53:54 +0900 Subject: [PATCH 15/43] fix: make format Signed-off-by: hlts2 --- example/manifest/filter/egress/Dockerfile | 1 + example/manifest/filter/ingress/Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/example/manifest/filter/egress/Dockerfile b/example/manifest/filter/egress/Dockerfile index 1422c00739..a1e8633370 100644 --- a/example/manifest/filter/egress/Dockerfile +++ b/example/manifest/filter/egress/Dockerfile @@ -1,3 +1,4 @@ +# syntax = docker/dockerfile:latest # # Copyright (C) 2019-2023 vdaas.org vald team # diff --git a/example/manifest/filter/ingress/Dockerfile b/example/manifest/filter/ingress/Dockerfile index 4a7f0a08fe..636afa11a0 100644 --- a/example/manifest/filter/ingress/Dockerfile +++ b/example/manifest/filter/ingress/Dockerfile @@ -1,3 +1,4 @@ +# syntax = docker/dockerfile:latest # # Copyright (C) 2019-2023 vdaas.org vald team # From 4fd422f9a4e37d31107a61c20b57dcba9b5d6ec6 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Thu, 7 Dec 2023 17:06:13 +0900 Subject: [PATCH 16/43] fix: update schema and format Signed-off-by: hlts2 --- charts/vald-helm-operator/crds/valdrelease.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/vald-helm-operator/crds/valdrelease.yaml b/charts/vald-helm-operator/crds/valdrelease.yaml index 38f1d2e254..ce844e4e1d 100644 --- a/charts/vald-helm-operator/crds/valdrelease.yaml +++ b/charts/vald-helm-operator/crds/valdrelease.yaml @@ -3778,11 +3778,13 @@ spec: distance_filters: type: array items: - type: string + type: object + x-kubernetes-preserve-unknown-fields: true object_filters: type: array items: - type: string + type: object + x-kubernetes-preserve-unknown-fields: true gateway_client: type: object properties: From d4680d1c1d2f7b89ed161a8381675586b38b8e15 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Thu, 7 Dec 2023 18:10:30 +0900 Subject: [PATCH 17/43] fix: make proto/all format Signed-off-by: hlts2 --- apis/docs/v1/docs.md | 137 ++- .../grpc/v1/filter/egress/egress_filter.pb.go | 60 +- apis/grpc/v1/payload/payload.pb.go | 1005 +++++++++++------ .../filter/egress/egress_filter.swagger.json | 76 +- apis/swagger/v1/vald/filter.swagger.json | 52 +- apis/swagger/v1/vald/insert.swagger.json | 28 +- apis/swagger/v1/vald/object.swagger.json | 22 +- apis/swagger/v1/vald/search.swagger.json | 34 +- apis/swagger/v1/vald/update.swagger.json | 28 +- apis/swagger/v1/vald/upsert.swagger.json | 28 +- 10 files changed, 1036 insertions(+), 434 deletions(-) diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index 243a35d5f0..be30f88fb6 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -13,7 +13,12 @@ - [Empty](#payload-v1-Empty) - [Filter](#payload-v1-Filter) - [Filter.Config](#payload-v1-Filter-Config) + - [Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) + - [Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) + - [Filter.Query](#payload-v1-Filter-Query) - [Filter.Target](#payload-v1-Filter-Target) + - [Filter.VectorRequest](#payload-v1-Filter-VectorRequest) + - [Filter.VectorResponse](#payload-v1-Filter-VectorResponse) - [Info](#payload-v1-Info) - [Info.CPU](#payload-v1-Info-CPU) - [Info.IPs](#payload-v1-Info-IPs) @@ -82,6 +87,7 @@ - [Upsert.MultiRequest](#payload-v1-Upsert-MultiRequest) - [Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) - [Upsert.Request](#payload-v1-Upsert-Request) + - [Remove.Timestamp.Operator](#payload-v1-Remove-Timestamp-Operator) - [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) @@ -187,9 +193,41 @@ Filter related messages. Represent filter configuration. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | -------- | ------------------------------------------ | -| targets | [Filter.Target](#payload-v1-Filter-Target) | repeated | Represent the filter target configuration. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ------------------------------------------ | +| target | [Filter.Target](#payload-v1-Filter-Target) | | Represent the filter target configuration. | +| query | [Filter.Query](#payload-v1-Filter-Query) | | The target query. | + + + +### Filter.DistanceRequest + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.DistanceResponse + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | + + + +### Filter.Query + +Represent the filter query. + +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | --------------------- | +| query | [string](#string) | | The raw query string. | @@ -202,6 +240,27 @@ Represent the target filter server. | host | [string](#string) | | The target hostname. | | port | [uint32](#uint32) | | The target port. | + + +### Filter.VectorRequest + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Vector | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.VectorResponse + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Distance | + ### Info @@ -350,11 +409,11 @@ Insert related messages. Represent insert configurations. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | --------------------------------------------------- | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | -| timestamp | [int64](#int64) | | Insert timestamp. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | --------------------------------------------------- | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | +| timestamp | [int64](#int64) | | Insert timestamp. | @@ -582,10 +641,10 @@ Represent a vector. Represent a request to fetch raw vector. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | ----- | ---------------------------- | -| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | +| Field | Type | Label | Description | +| ------- | ------------------------------------------ | -------- | ---------------------------- | +| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | @@ -668,17 +727,17 @@ Search related messages. Represent search configuration. -| Field | Type | Label | Description | -| --------------------- | ---------------------------------------------------------------------- | ----- | ---------------------------------------- | -| request_id | [string](#string) | | Unique request ID. | -| num | [uint32](#uint32) | | Maximum number of result to be returned. | -| radius | [float](#float) | | Search radius. | -| epsilon | [float](#float) | | Search coefficient. | -| timeout | [int64](#int64) | | Search timeout in nanoseconds. | -| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Ingress filter configurations. | -| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Egress filter configurations. | -| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | -| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | +| Field | Type | Label | Description | +| --------------------- | ---------------------------------------------------------------------- | -------- | ---------------------------------------- | +| request_id | [string](#string) | | Unique request ID. | +| num | [uint32](#uint32) | | Maximum number of result to be returned. | +| radius | [float](#float) | | Search radius. | +| epsilon | [float](#float) | | Search coefficient. | +| timeout | [int64](#int64) | | Search timeout in nanoseconds. | +| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Ingress filter configurations. | +| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Egress filter configurations. | +| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | +| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | @@ -788,12 +847,12 @@ Update related messages Represent the update configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Update timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Update timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -850,12 +909,12 @@ Upsert related messages. Represent the upsert configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Upsert timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Upsert timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -993,10 +1052,10 @@ Represent the discoverer service. Represent the egress filter service. -| Method Name | Request Type | Response Type | Description | -| -------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------- | -| FilterDistance | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | Represent the RPC to filter the distance. | -| FilterVector | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to filter the vector. | +| Method Name | Request Type | Response Type | Description | +| -------------- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------- | ----------------------------------------- | +| FilterDistance | [.payload.v1.Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) | [.payload.v1.Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) | Represent the RPC to filter the distance. | +| FilterVector | [.payload.v1.Filter.VectorRequest](#payload-v1-Filter-VectorRequest) | [.payload.v1.Filter.VectorResponse](#payload-v1-Filter-VectorResponse) | Represent the RPC to filter the vector. | diff --git a/apis/grpc/v1/filter/egress/egress_filter.pb.go b/apis/grpc/v1/filter/egress/egress_filter.pb.go index d9f05b97b7..dc45b23956 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -48,39 +48,43 @@ var file_v1_filter_egress_egress_filter_proto_rawDesc = []byte{ 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x32, 0xe0, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x6e, 0x0a, 0x0e, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x2e, - 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x1b, 0x2e, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, - 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, - 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0c, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x19, 0x2e, 0x70, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x42, 0x6b, 0x0a, 0x23, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x64, 0x61, 0x61, 0x73, - 0x2e, 0x76, 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x2e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x10, 0x56, 0x61, 0x6c, 0x64, - 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x30, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x64, 0x61, 0x61, 0x73, - 0x2f, 0x76, 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, - 0x76, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x32, 0xfe, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x7d, 0x0a, 0x0e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, + 0x2a, 0x22, 0x17, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x75, 0x0a, 0x0c, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x20, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x56, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x42, 0x6b, 0x0a, 0x23, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2e, 0x76, + 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x10, 0x56, 0x61, 0x6c, 0x64, 0x45, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2f, 0x76, + 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, + 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_v1_filter_egress_egress_filter_proto_goTypes = []interface{}{ - (*payload.Object_Distance)(nil), // 0: payload.v1.Object.Distance - (*payload.Object_Vector)(nil), // 1: payload.v1.Object.Vector + (*payload.Filter_DistanceRequest)(nil), // 0: payload.v1.Filter.DistanceRequest + (*payload.Filter_VectorRequest)(nil), // 1: payload.v1.Filter.VectorRequest + (*payload.Filter_DistanceResponse)(nil), // 2: payload.v1.Filter.DistanceResponse + (*payload.Filter_VectorResponse)(nil), // 3: payload.v1.Filter.VectorResponse } var file_v1_filter_egress_egress_filter_proto_depIdxs = []int32{ - 0, // 0: filter.egress.v1.Filter.FilterDistance:input_type -> payload.v1.Object.Distance - 1, // 1: filter.egress.v1.Filter.FilterVector:input_type -> payload.v1.Object.Vector - 0, // 2: filter.egress.v1.Filter.FilterDistance:output_type -> payload.v1.Object.Distance - 1, // 3: filter.egress.v1.Filter.FilterVector:output_type -> payload.v1.Object.Vector + 0, // 0: filter.egress.v1.Filter.FilterDistance:input_type -> payload.v1.Filter.DistanceRequest + 1, // 1: filter.egress.v1.Filter.FilterVector:input_type -> payload.v1.Filter.VectorRequest + 2, // 2: filter.egress.v1.Filter.FilterDistance:output_type -> payload.v1.Filter.DistanceResponse + 3, // 3: filter.egress.v1.Filter.FilterVector:output_type -> payload.v1.Filter.VectorResponse 2, // [2:4] is the sub-list for method output_type 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index 8ee0d9b00b..c6582a26f9 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -936,9 +936,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1012,14 +1012,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1289,6 +1289,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1296,13 +1345,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[22] + mi := &file_v1_payload_payload_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1315,7 +1366,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[22] + mi := &file_v1_payload_payload_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1328,12 +1379,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} +} + +func (x *Filter_Config) GetTarget() *Filter_Target { + if x != nil { + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil } -func (x *Filter_Config) GetTargets() []*Filter_Target { +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { if x != nil { - return x.Targets + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil +} + +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} +} + +func (x *Filter_VectorResponse) GetVector() *Object_Vector { + if x != nil { + return x.Vector } return nil } @@ -1353,7 +1625,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[23] + mi := &file_v1_payload_payload_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1366,7 +1638,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[23] + mi := &file_v1_payload_payload_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1409,7 +1681,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1422,7 +1694,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1462,7 +1734,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1475,7 +1747,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1525,7 +1797,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1538,7 +1810,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1570,7 +1842,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1578,7 +1850,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1591,7 +1863,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1614,7 +1886,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1643,7 +1915,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1656,7 +1928,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1699,7 +1971,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1712,7 +1984,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1752,7 +2024,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1765,7 +2037,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1815,7 +2087,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1828,7 +2100,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1860,7 +2132,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -1871,7 +2143,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1884,7 +2156,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1907,7 +2179,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1943,7 +2215,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1956,7 +2228,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1999,7 +2271,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2012,7 +2284,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2052,7 +2324,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2065,7 +2337,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2115,7 +2387,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2128,7 +2400,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2160,7 +2432,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2171,7 +2443,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2184,7 +2456,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2207,7 +2479,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2243,7 +2515,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2256,7 +2528,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2299,7 +2571,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2312,7 +2584,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2348,7 +2620,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2361,7 +2633,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2399,7 +2671,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2412,7 +2684,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2457,7 +2729,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2470,7 +2742,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2509,13 +2781,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2528,7 +2800,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2551,7 +2823,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2573,7 +2845,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2586,7 +2858,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2632,7 +2904,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2645,7 +2917,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2712,7 +2984,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2725,7 +2997,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2760,7 +3032,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2773,7 +3045,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2813,7 +3085,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2826,7 +3098,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2876,7 +3148,7 @@ type Object_GetTimestampRequest struct { func (x *Object_GetTimestampRequest) Reset() { *x = Object_GetTimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2889,7 +3161,7 @@ func (x *Object_GetTimestampRequest) String() string { func (*Object_GetTimestampRequest) ProtoMessage() {} func (x *Object_GetTimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2927,7 +3199,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2940,7 +3212,7 @@ func (x *Object_Timestamp) String() string { func (*Object_Timestamp) ProtoMessage() {} func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2982,7 +3254,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2995,7 +3267,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3034,7 +3306,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3047,7 +3319,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3117,7 +3389,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3130,7 +3402,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3175,7 +3447,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3188,7 +3460,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3234,7 +3506,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3247,7 +3519,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3319,7 +3591,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3332,7 +3604,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3385,7 +3657,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3398,7 +3670,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3465,7 +3737,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3478,7 +3750,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3511,7 +3783,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3524,7 +3796,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3549,7 +3821,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3562,7 +3834,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3593,7 +3865,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3606,7 +3878,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3674,7 +3946,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3687,7 +3959,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3727,7 +3999,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3740,7 +4012,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3787,7 +4059,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3800,7 +4072,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3841,7 +4113,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3854,7 +4126,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3942,7 +4214,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3955,7 +4227,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4030,7 +4302,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4043,7 +4315,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4097,7 +4369,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4110,7 +4382,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4160,7 +4432,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4173,7 +4445,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4209,7 +4481,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4222,7 +4494,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4257,7 +4529,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4270,7 +4542,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4312,7 +4584,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4325,7 +4597,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4379,7 +4651,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4392,7 +4664,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4420,7 +4692,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4433,7 +4705,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4468,7 +4740,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4481,7 +4753,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4558,12 +4830,12 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x42, @@ -4599,15 +4871,44 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x6e, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x50, - 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0x79, 0x0a, 0x06, - 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x3d, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x07, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, + 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0xc8, 0x04, 0x0a, + 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1d, 0x0a, 0x05, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x6b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x7a, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x1a, 0x4b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x72, + 0x0a, 0x0d, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x1a, 0x43, 0x0a, 0x0e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, @@ -4641,7 +4942,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, @@ -4680,7 +4981,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, @@ -4722,7 +5023,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, @@ -4768,7 +5069,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xba, 0x48, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, @@ -4951,7 +5252,7 @@ func file_v1_payload_payload_proto_rawDescGZIP() []byte { } var file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 76) +var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 81) var file_v1_payload_payload_proto_goTypes = []interface{}{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -4977,61 +5278,66 @@ var file_v1_payload_payload_proto_goTypes = []interface{}{ (*Search_Responses)(nil), // 21: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 22: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 23: payload.v1.Filter.Target - (*Filter_Config)(nil), // 24: payload.v1.Filter.Config - (*Insert_Request)(nil), // 25: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 26: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 27: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 28: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 29: payload.v1.Insert.Config - (*Update_Request)(nil), // 30: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 31: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 32: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 33: payload.v1.Update.MultiObjectRequest - (*Update_Config)(nil), // 34: payload.v1.Update.Config - (*Upsert_Request)(nil), // 35: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 36: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 37: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 38: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 39: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 40: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 41: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 42: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 43: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 44: payload.v1.Remove.Config - (*Object_VectorRequest)(nil), // 45: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 46: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 47: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 48: payload.v1.Object.ID - (*Object_IDs)(nil), // 49: payload.v1.Object.IDs - (*Object_Vector)(nil), // 50: payload.v1.Object.Vector - (*Object_GetTimestampRequest)(nil), // 51: payload.v1.Object.GetTimestampRequest - (*Object_Timestamp)(nil), // 52: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 53: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 54: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 55: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 56: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 57: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 58: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 59: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 60: payload.v1.Object.Locations - (*Object_List)(nil), // 61: payload.v1.Object.List - (*Object_List_Request)(nil), // 62: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 63: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 64: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 65: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 66: payload.v1.Info.Index - (*Info_Pod)(nil), // 67: payload.v1.Info.Pod - (*Info_Node)(nil), // 68: payload.v1.Info.Node - (*Info_CPU)(nil), // 69: payload.v1.Info.CPU - (*Info_Memory)(nil), // 70: payload.v1.Info.Memory - (*Info_Pods)(nil), // 71: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 72: payload.v1.Info.Nodes - (*Info_IPs)(nil), // 73: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 74: payload.v1.Info.Index.Count - (*Info_Index_UUID)(nil), // 75: payload.v1.Info.Index.UUID - (*Info_Index_UUID_Committed)(nil), // 76: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 77: payload.v1.Info.Index.UUID.Uncommitted - (*status.Status)(nil), // 78: google.rpc.Status + (*Filter_Query)(nil), // 24: payload.v1.Filter.Query + (*Filter_Config)(nil), // 25: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 26: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 27: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 28: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 29: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 30: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 31: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 32: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 33: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 34: payload.v1.Insert.Config + (*Update_Request)(nil), // 35: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 36: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 37: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 38: payload.v1.Update.MultiObjectRequest + (*Update_Config)(nil), // 39: payload.v1.Update.Config + (*Upsert_Request)(nil), // 40: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 41: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 42: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 43: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 44: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 45: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 46: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 47: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 48: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 49: payload.v1.Remove.Config + (*Object_VectorRequest)(nil), // 50: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 51: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 52: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 53: payload.v1.Object.ID + (*Object_IDs)(nil), // 54: payload.v1.Object.IDs + (*Object_Vector)(nil), // 55: payload.v1.Object.Vector + (*Object_GetTimestampRequest)(nil), // 56: payload.v1.Object.GetTimestampRequest + (*Object_Timestamp)(nil), // 57: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 58: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 59: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 60: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 61: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 62: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 63: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 64: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 65: payload.v1.Object.Locations + (*Object_List)(nil), // 66: payload.v1.Object.List + (*Object_List_Request)(nil), // 67: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 68: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 69: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 70: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 71: payload.v1.Info.Index + (*Info_Pod)(nil), // 72: payload.v1.Info.Pod + (*Info_Node)(nil), // 73: payload.v1.Info.Node + (*Info_CPU)(nil), // 74: payload.v1.Info.CPU + (*Info_Memory)(nil), // 75: payload.v1.Info.Memory + (*Info_Pods)(nil), // 76: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 77: payload.v1.Info.Nodes + (*Info_IPs)(nil), // 78: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 79: payload.v1.Info.Index.Count + (*Info_Index_UUID)(nil), // 80: payload.v1.Info.Index.UUID + (*Info_Index_UUID_Committed)(nil), // 81: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 82: payload.v1.Info.Index.UUID.Uncommitted + (*status.Status)(nil), // 83: google.rpc.Status } var file_v1_payload_payload_proto_depIdxs = []int32{ 19, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config @@ -5041,71 +5347,78 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 19, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 23, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 17, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 24, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 24, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 25, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 25, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 46, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 51, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 20, // 11: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 20, // 12: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 78, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 23, // 14: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 50, // 15: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 29, // 16: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 25, // 17: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 56, // 18: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 29, // 19: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 23, // 20: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 27, // 21: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 24, // 22: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 23: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 34, // 24: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 30, // 25: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 56, // 26: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 34, // 27: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 23, // 28: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 32, // 29: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 24, // 30: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 31: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 39, // 32: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 35, // 33: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 56, // 34: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 39, // 35: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 23, // 36: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 37, // 37: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 24, // 38: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 48, // 39: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 44, // 40: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 40, // 41: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 43, // 42: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 43: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 48, // 44: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 24, // 45: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 46, // 46: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 78, // 47: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 48, // 48: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID - 50, // 49: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 50, // 50: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 78, // 51: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 56, // 52: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 78, // 53: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 58, // 54: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 78, // 55: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 58, // 56: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 50, // 57: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 78, // 58: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 69, // 59: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 70, // 60: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 68, // 61: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 69, // 62: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 70, // 63: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 71, // 64: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 67, // 65: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 68, // 66: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 67, // [67:67] is the sub-list for method output_type - 67, // [67:67] is the sub-list for method input_type - 67, // [67:67] is the sub-list for extension type_name - 67, // [67:67] is the sub-list for extension extendee - 0, // [0:67] is the sub-list for field type_name + 83, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 23, // 14: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 24, // 15: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 51, // 16: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 24, // 17: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 51, // 18: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 55, // 19: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 24, // 20: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 55, // 21: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 55, // 22: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 34, // 23: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 30, // 24: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 61, // 25: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 34, // 26: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 23, // 27: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 32, // 28: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 25, // 29: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 30: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 39, // 31: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 35, // 32: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 61, // 33: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 39, // 34: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 23, // 35: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 37, // 36: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 25, // 37: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 38: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 44, // 39: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 40, // 40: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 61, // 41: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 44, // 42: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 23, // 43: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 42, // 44: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 25, // 45: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 53, // 46: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 49, // 47: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 45, // 48: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 48, // 49: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 50: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 53, // 51: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 25, // 52: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 51, // 53: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 83, // 54: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 53, // 55: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID + 55, // 56: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 55, // 57: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 83, // 58: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 61, // 59: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 83, // 60: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 63, // 61: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 83, // 62: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 63, // 63: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 55, // 64: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 83, // 65: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 74, // 66: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 75, // 67: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 73, // 68: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 74, // 69: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 75, // 70: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 76, // 71: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 72, // 72: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 73, // 73: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 74, // [74:74] is the sub-list for method output_type + 74, // [74:74] is the sub-list for method input_type + 74, // [74:74] is the sub-list for extension type_name + 74, // [74:74] is the sub-list for extension extendee + 0, // [0:74] is the sub-list for field type_name } func init() { file_v1_payload_payload_proto_init() } @@ -5379,7 +5692,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -5391,7 +5704,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -5403,7 +5716,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -5415,7 +5728,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -5427,7 +5740,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -5439,7 +5752,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -5451,7 +5764,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -5463,7 +5776,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -5475,7 +5788,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5487,7 +5800,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5499,7 +5812,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Config); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -5511,7 +5824,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -5523,7 +5836,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -5535,7 +5848,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -5547,7 +5860,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5559,7 +5872,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -5571,7 +5884,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -5583,7 +5896,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -5595,7 +5908,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5607,7 +5920,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5619,7 +5932,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -5631,7 +5944,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -5643,7 +5956,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -5655,7 +5968,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -5667,7 +5980,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -5679,7 +5992,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_IDs); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -5691,7 +6004,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -5703,7 +6016,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_GetTimestampRequest); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -5715,7 +6028,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Timestamp); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -5727,7 +6040,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -5739,7 +6052,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -5751,7 +6064,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -5763,7 +6076,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_GetTimestampRequest); i { case 0: return &v.state case 1: @@ -5775,7 +6088,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Timestamp); i { case 0: return &v.state case 1: @@ -5787,7 +6100,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -5799,7 +6112,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -5811,7 +6124,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -5823,7 +6136,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -5835,7 +6148,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -5847,7 +6160,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -5859,7 +6172,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -5871,7 +6184,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -5883,7 +6196,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -5895,7 +6208,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -5907,7 +6220,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -5919,7 +6232,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_CPU); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -5931,7 +6244,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Memory); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -5943,7 +6256,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -5955,7 +6268,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -5967,7 +6280,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -5979,7 +6292,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -5991,7 +6304,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -6003,7 +6316,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -6015,6 +6328,66 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Nodes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_IPs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_Count); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Committed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Info_Index_UUID_Uncommitted); i { case 0: return &v.state @@ -6031,23 +6404,23 @@ func file_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[45].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[50].OneofWrappers = []interface{}{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[52].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[57].OneofWrappers = []interface{}{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[55].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []interface{}{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[57].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[62].OneofWrappers = []interface{}{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[61].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[66].OneofWrappers = []interface{}{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -6057,7 +6430,7 @@ func file_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 76, + NumMessages: 81, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/swagger/v1/filter/egress/egress_filter.swagger.json b/apis/swagger/v1/filter/egress/egress_filter.swagger.json index 395887d8e2..1907de3575 100644 --- a/apis/swagger/v1/filter/egress/egress_filter.swagger.json +++ b/apis/swagger/v1/filter/egress/egress_filter.swagger.json @@ -20,7 +20,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/ObjectDistance" + "$ref": "#/definitions/FilterDistanceResponse" } }, "default": { @@ -37,7 +37,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ObjectDistance" + "$ref": "#/definitions/FilterDistanceRequest" } } ], @@ -52,7 +52,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/ObjectVector" + "$ref": "#/definitions/FilterVectorResponse" } }, "default": { @@ -65,11 +65,11 @@ "parameters": [ { "name": "body", - "description": "Represent a vector.", + "description": "Represent the ID and vector pair.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ObjectVector" + "$ref": "#/definitions/v1FilterVectorRequest" } } ], @@ -78,6 +78,58 @@ } }, "definitions": { + "FilterDistanceRequest": { + "type": "object", + "properties": { + "distance": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/ObjectDistance" + }, + "title": "Distance" + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "title": "Query" + } + }, + "description": "Represent the ID and distance pair." + }, + "FilterDistanceResponse": { + "type": "object", + "properties": { + "distance": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/ObjectDistance" + }, + "title": "Distance" + } + }, + "description": "Represent the ID and distance pair." + }, + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, + "FilterVectorResponse": { + "type": "object", + "properties": { + "vector": { + "$ref": "#/definitions/ObjectVector", + "title": "Distance" + } + }, + "description": "Represent the ID and vector pair." + }, "ObjectDistance": { "type": "object", "properties": { @@ -149,6 +201,20 @@ } }, "description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors)." + }, + "v1FilterVectorRequest": { + "type": "object", + "properties": { + "vector": { + "$ref": "#/definitions/ObjectVector", + "title": "Vector" + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "title": "Query" + } + }, + "description": "Represent the ID and vector pair." } } } diff --git a/apis/swagger/v1/vald/filter.swagger.json b/apis/swagger/v1/vald/filter.swagger.json index d4993d784e..2eb3925c1a 100644 --- a/apis/swagger/v1/vald/filter.swagger.json +++ b/apis/swagger/v1/vald/filter.swagger.json @@ -270,6 +270,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -419,13 +429,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -438,7 +448,11 @@ "description": "A flag to skip exist check during insert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configurations." }, "timestamp": { @@ -530,11 +544,19 @@ "description": "Search timeout in nanoseconds." }, "ingressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Ingress filter configurations." }, "egressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Egress filter configurations." }, "minNum": { @@ -608,7 +630,11 @@ "description": "A flag to skip exist check during update operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { @@ -663,7 +689,11 @@ "description": "A flag to skip exist check during upsert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { diff --git a/apis/swagger/v1/vald/insert.swagger.json b/apis/swagger/v1/vald/insert.swagger.json index 8b47bbcdde..d82243a105 100644 --- a/apis/swagger/v1/vald/insert.swagger.json +++ b/apis/swagger/v1/vald/insert.swagger.json @@ -78,6 +78,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -180,13 +190,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -199,7 +209,11 @@ "description": "A flag to skip exist check during insert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configurations." }, "timestamp": { diff --git a/apis/swagger/v1/vald/object.swagger.json b/apis/swagger/v1/vald/object.swagger.json index b0ca410f12..1a3a58e82d 100644 --- a/apis/swagger/v1/vald/object.swagger.json +++ b/apis/swagger/v1/vald/object.swagger.json @@ -102,6 +102,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -213,13 +223,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." diff --git a/apis/swagger/v1/vald/search.swagger.json b/apis/swagger/v1/vald/search.swagger.json index 3a0dafd252..e5a1d3beb1 100644 --- a/apis/swagger/v1/vald/search.swagger.json +++ b/apis/swagger/v1/vald/search.swagger.json @@ -270,6 +270,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -405,13 +415,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -444,11 +454,19 @@ "description": "Search timeout in nanoseconds." }, "ingressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Ingress filter configurations." }, "egressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Egress filter configurations." }, "minNum": { diff --git a/apis/swagger/v1/vald/update.swagger.json b/apis/swagger/v1/vald/update.swagger.json index 1b256710d6..b4c9827250 100644 --- a/apis/swagger/v1/vald/update.swagger.json +++ b/apis/swagger/v1/vald/update.swagger.json @@ -78,6 +78,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -180,13 +190,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -220,7 +230,11 @@ "description": "A flag to skip exist check during update operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { diff --git a/apis/swagger/v1/vald/upsert.swagger.json b/apis/swagger/v1/vald/upsert.swagger.json index d4f429b6f3..39c64ac217 100644 --- a/apis/swagger/v1/vald/upsert.swagger.json +++ b/apis/swagger/v1/vald/upsert.swagger.json @@ -78,6 +78,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "FilterTarget": { "type": "object", "properties": { @@ -180,13 +190,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/FilterTarget" - }, + "target": { + "$ref": "#/definitions/FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -220,7 +230,11 @@ "description": "A flag to skip exist check during upsert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { From 31b3a141b9389ee733146ac13ddba781658dee07 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Tue, 9 Jan 2024 10:55:22 +0900 Subject: [PATCH 18/43] fix: schema and proto update and format Signed-off-by: hlts2 --- apis/docs/v1/docs.md | 1 - apis/grpc/v1/agent/core/agent.pb.go | 2 +- apis/grpc/v1/agent/sidecar/sidecar.pb.go | 2 +- apis/grpc/v1/discoverer/discoverer.pb.go | 2 +- .../grpc/v1/filter/egress/egress_filter.pb.go | 2 +- .../v1/filter/ingress/ingress_filter.pb.go | 2 +- .../grpc/v1/manager/index/index_manager.pb.go | 2 +- apis/grpc/v1/payload/payload.pb.go | 1063 +++++++++++------ .../v1/rpc/errdetails/error_details.pb.go | 2 +- apis/grpc/v1/vald/filter.pb.go | 2 +- apis/grpc/v1/vald/insert.pb.go | 2 +- apis/grpc/v1/vald/object.pb.go | 2 +- apis/grpc/v1/vald/remove.pb.go | 2 +- apis/grpc/v1/vald/search.pb.go | 2 +- apis/grpc/v1/vald/update.pb.go | 2 +- apis/grpc/v1/vald/upsert.pb.go | 2 +- .../v1/discoverer/discoverer.swagger.json | 92 +- .../gateway/filter/egress-filter/main.go | 2 +- .../gateway/filter/ingress-filter/main.go | 2 +- example/client/gateway/filter/main.go | 2 +- example/manifest/filter/egress/Dockerfile | 2 +- .../manifest/filter/egress/deployment.yaml | 2 +- example/manifest/filter/egress/service.yaml | 2 +- example/manifest/filter/ingress/Dockerfile | 2 +- .../manifest/filter/ingress/deployment.yaml | 2 +- example/manifest/filter/ingress/service.yaml | 2 +- example/server/egress-filter/main.go | 2 +- example/server/ingress-filter/main.go | 2 +- 28 files changed, 789 insertions(+), 417 deletions(-) diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index b2b4ba5d60..83a1ca49ed 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -94,7 +94,6 @@ - [Upsert.MultiRequest](#payload-v1-Upsert-MultiRequest) - [Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) - [Upsert.Request](#payload-v1-Upsert-Request) - - [Remove.Timestamp.Operator](#payload-v1-Remove-Timestamp-Operator) - [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) diff --git a/apis/grpc/v1/agent/core/agent.pb.go b/apis/grpc/v1/agent/core/agent.pb.go index ce90f86ffa..3541c8b8f0 100644 --- a/apis/grpc/v1/agent/core/agent.pb.go +++ b/apis/grpc/v1/agent/core/agent.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/agent/core/agent.proto diff --git a/apis/grpc/v1/agent/sidecar/sidecar.pb.go b/apis/grpc/v1/agent/sidecar/sidecar.pb.go index 421f6a8a55..b6b3ad1053 100644 --- a/apis/grpc/v1/agent/sidecar/sidecar.pb.go +++ b/apis/grpc/v1/agent/sidecar/sidecar.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/agent/sidecar/sidecar.proto diff --git a/apis/grpc/v1/discoverer/discoverer.pb.go b/apis/grpc/v1/discoverer/discoverer.pb.go index 851f665368..fe6cc80593 100644 --- a/apis/grpc/v1/discoverer/discoverer.pb.go +++ b/apis/grpc/v1/discoverer/discoverer.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/discoverer/discoverer.proto diff --git a/apis/grpc/v1/filter/egress/egress_filter.pb.go b/apis/grpc/v1/filter/egress/egress_filter.pb.go index 18fbd71c4d..f2d0187662 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/filter/egress/egress_filter.proto diff --git a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go index d223b6de6c..ee4a3a302b 100644 --- a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go +++ b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/filter/ingress/ingress_filter.proto diff --git a/apis/grpc/v1/manager/index/index_manager.pb.go b/apis/grpc/v1/manager/index/index_manager.pb.go index 5c239f8a28..2ddc40a16b 100644 --- a/apis/grpc/v1/manager/index/index_manager.pb.go +++ b/apis/grpc/v1/manager/index/index_manager.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/manager/index/index_manager.proto diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index db70fd3d64..d2855a89ad 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/payload/payload.proto @@ -936,9 +936,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1012,14 +1012,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1289,6 +1289,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1296,13 +1345,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[22] + mi := &file_v1_payload_payload_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1315,7 +1366,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[22] + mi := &file_v1_payload_payload_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1328,12 +1379,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} } -func (x *Filter_Config) GetTargets() []*Filter_Target { +func (x *Filter_Config) GetTarget() *Filter_Target { if x != nil { - return x.Targets + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil +} + +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} +} + +func (x *Filter_VectorResponse) GetVector() *Object_Vector { + if x != nil { + return x.Vector } return nil } @@ -1353,7 +1625,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[23] + mi := &file_v1_payload_payload_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1366,7 +1638,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[23] + mi := &file_v1_payload_payload_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1409,7 +1681,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1422,7 +1694,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1462,7 +1734,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1475,7 +1747,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1525,7 +1797,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1538,7 +1810,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1570,7 +1842,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1578,7 +1850,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1591,7 +1863,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1614,7 +1886,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1643,7 +1915,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1656,7 +1928,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1699,7 +1971,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1712,7 +1984,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1752,7 +2024,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1765,7 +2037,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1815,7 +2087,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1828,7 +2100,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1860,7 +2132,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -1871,7 +2143,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1884,7 +2156,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1907,7 +2179,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1943,7 +2215,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1956,7 +2228,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1999,7 +2271,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2012,7 +2284,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2052,7 +2324,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2065,7 +2337,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2115,7 +2387,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2128,7 +2400,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2160,7 +2432,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2171,7 +2443,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2184,7 +2456,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2207,7 +2479,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2243,7 +2515,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2256,7 +2528,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2299,7 +2571,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2312,7 +2584,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2348,7 +2620,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2361,7 +2633,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2399,7 +2671,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2412,7 +2684,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2457,7 +2729,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2470,7 +2742,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2509,13 +2781,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2528,7 +2800,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2551,7 +2823,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2573,7 +2845,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2586,7 +2858,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2632,7 +2904,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2645,7 +2917,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2712,7 +2984,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2725,7 +2997,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2760,7 +3032,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2773,7 +3045,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2813,7 +3085,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2826,7 +3098,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2876,7 +3148,7 @@ type Object_GetTimestampRequest struct { func (x *Object_GetTimestampRequest) Reset() { *x = Object_GetTimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2889,7 +3161,7 @@ func (x *Object_GetTimestampRequest) String() string { func (*Object_GetTimestampRequest) ProtoMessage() {} func (x *Object_GetTimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2927,7 +3199,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2940,7 +3212,7 @@ func (x *Object_Timestamp) String() string { func (*Object_Timestamp) ProtoMessage() {} func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2982,7 +3254,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2995,7 +3267,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3034,7 +3306,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3047,7 +3319,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3117,7 +3389,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3130,7 +3402,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3175,7 +3447,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3188,7 +3460,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3234,7 +3506,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3247,7 +3519,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3319,7 +3591,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3332,7 +3604,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3385,7 +3657,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3398,7 +3670,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3465,7 +3737,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3478,7 +3750,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3511,7 +3783,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3524,7 +3796,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3549,7 +3821,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3562,7 +3834,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3593,7 +3865,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3606,7 +3878,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3674,7 +3946,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3687,7 +3959,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3727,7 +3999,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3740,7 +4012,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3787,7 +4059,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3800,7 +4072,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3841,7 +4113,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3854,7 +4126,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3942,7 +4214,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3955,7 +4227,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4036,7 +4308,7 @@ type Info_Service struct { func (x *Info_Service) Reset() { *x = Info_Service{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4049,7 +4321,7 @@ func (x *Info_Service) String() string { func (*Info_Service) ProtoMessage() {} func (x *Info_Service) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4122,7 +4394,7 @@ type Info_ServicePort struct { func (x *Info_ServicePort) Reset() { *x = Info_ServicePort{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4135,7 +4407,7 @@ func (x *Info_ServicePort) String() string { func (*Info_ServicePort) ProtoMessage() {} func (x *Info_ServicePort) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4177,7 +4449,7 @@ type Info_Labels struct { func (x *Info_Labels) Reset() { *x = Info_Labels{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4190,7 +4462,7 @@ func (x *Info_Labels) String() string { func (*Info_Labels) ProtoMessage() {} func (x *Info_Labels) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4225,7 +4497,7 @@ type Info_Annotations struct { func (x *Info_Annotations) Reset() { *x = Info_Annotations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4238,7 +4510,7 @@ func (x *Info_Annotations) String() string { func (*Info_Annotations) ProtoMessage() {} func (x *Info_Annotations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4278,7 +4550,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4291,7 +4563,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4345,7 +4617,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4358,7 +4630,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4408,7 +4680,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4421,7 +4693,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4457,7 +4729,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4470,7 +4742,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4506,7 +4778,7 @@ type Info_Services struct { func (x *Info_Services) Reset() { *x = Info_Services{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4519,7 +4791,7 @@ func (x *Info_Services) String() string { func (*Info_Services) ProtoMessage() {} func (x *Info_Services) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4554,7 +4826,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4567,7 +4839,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4609,7 +4881,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4622,7 +4894,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4676,7 +4948,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4689,7 +4961,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4717,7 +4989,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4730,7 +5002,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4765,7 +5037,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4778,7 +5050,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4855,12 +5127,12 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x42, @@ -4896,15 +5168,44 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x6e, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x50, - 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0x79, 0x0a, 0x06, - 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x3d, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x07, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, + 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0xc8, 0x04, 0x0a, + 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1d, 0x0a, 0x05, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x6b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x7a, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x1a, 0x4b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x72, + 0x0a, 0x0d, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x1a, 0x43, 0x0a, 0x0e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, @@ -4938,7 +5239,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, @@ -4977,7 +5278,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, @@ -5019,7 +5320,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, @@ -5065,7 +5366,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xba, 0x48, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, @@ -5290,7 +5591,7 @@ func file_v1_payload_payload_proto_rawDescGZIP() []byte { } var file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 83) +var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 88) var file_v1_payload_payload_proto_goTypes = []interface{}{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -5316,68 +5617,73 @@ var file_v1_payload_payload_proto_goTypes = []interface{}{ (*Search_Responses)(nil), // 21: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 22: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 23: payload.v1.Filter.Target - (*Filter_Config)(nil), // 24: payload.v1.Filter.Config - (*Insert_Request)(nil), // 25: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 26: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 27: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 28: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 29: payload.v1.Insert.Config - (*Update_Request)(nil), // 30: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 31: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 32: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 33: payload.v1.Update.MultiObjectRequest - (*Update_Config)(nil), // 34: payload.v1.Update.Config - (*Upsert_Request)(nil), // 35: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 36: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 37: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 38: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 39: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 40: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 41: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 42: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 43: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 44: payload.v1.Remove.Config - (*Object_VectorRequest)(nil), // 45: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 46: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 47: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 48: payload.v1.Object.ID - (*Object_IDs)(nil), // 49: payload.v1.Object.IDs - (*Object_Vector)(nil), // 50: payload.v1.Object.Vector - (*Object_GetTimestampRequest)(nil), // 51: payload.v1.Object.GetTimestampRequest - (*Object_Timestamp)(nil), // 52: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 53: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 54: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 55: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 56: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 57: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 58: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 59: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 60: payload.v1.Object.Locations - (*Object_List)(nil), // 61: payload.v1.Object.List - (*Object_List_Request)(nil), // 62: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 63: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 64: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 65: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 66: payload.v1.Info.Index - (*Info_Pod)(nil), // 67: payload.v1.Info.Pod - (*Info_Node)(nil), // 68: payload.v1.Info.Node - (*Info_Service)(nil), // 69: payload.v1.Info.Service - (*Info_ServicePort)(nil), // 70: payload.v1.Info.ServicePort - (*Info_Labels)(nil), // 71: payload.v1.Info.Labels - (*Info_Annotations)(nil), // 72: payload.v1.Info.Annotations - (*Info_CPU)(nil), // 73: payload.v1.Info.CPU - (*Info_Memory)(nil), // 74: payload.v1.Info.Memory - (*Info_Pods)(nil), // 75: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 76: payload.v1.Info.Nodes - (*Info_Services)(nil), // 77: payload.v1.Info.Services - (*Info_IPs)(nil), // 78: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 79: payload.v1.Info.Index.Count - (*Info_Index_UUID)(nil), // 80: payload.v1.Info.Index.UUID - (*Info_Index_UUID_Committed)(nil), // 81: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 82: payload.v1.Info.Index.UUID.Uncommitted - nil, // 83: payload.v1.Info.Labels.LabelsEntry - nil, // 84: payload.v1.Info.Annotations.AnnotationsEntry - (*status.Status)(nil), // 85: google.rpc.Status + (*Filter_Query)(nil), // 24: payload.v1.Filter.Query + (*Filter_Config)(nil), // 25: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 26: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 27: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 28: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 29: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 30: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 31: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 32: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 33: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 34: payload.v1.Insert.Config + (*Update_Request)(nil), // 35: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 36: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 37: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 38: payload.v1.Update.MultiObjectRequest + (*Update_Config)(nil), // 39: payload.v1.Update.Config + (*Upsert_Request)(nil), // 40: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 41: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 42: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 43: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 44: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 45: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 46: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 47: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 48: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 49: payload.v1.Remove.Config + (*Object_VectorRequest)(nil), // 50: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 51: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 52: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 53: payload.v1.Object.ID + (*Object_IDs)(nil), // 54: payload.v1.Object.IDs + (*Object_Vector)(nil), // 55: payload.v1.Object.Vector + (*Object_GetTimestampRequest)(nil), // 56: payload.v1.Object.GetTimestampRequest + (*Object_Timestamp)(nil), // 57: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 58: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 59: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 60: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 61: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 62: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 63: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 64: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 65: payload.v1.Object.Locations + (*Object_List)(nil), // 66: payload.v1.Object.List + (*Object_List_Request)(nil), // 67: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 68: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 69: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 70: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 71: payload.v1.Info.Index + (*Info_Pod)(nil), // 72: payload.v1.Info.Pod + (*Info_Node)(nil), // 73: payload.v1.Info.Node + (*Info_Service)(nil), // 74: payload.v1.Info.Service + (*Info_ServicePort)(nil), // 75: payload.v1.Info.ServicePort + (*Info_Labels)(nil), // 76: payload.v1.Info.Labels + (*Info_Annotations)(nil), // 77: payload.v1.Info.Annotations + (*Info_CPU)(nil), // 78: payload.v1.Info.CPU + (*Info_Memory)(nil), // 79: payload.v1.Info.Memory + (*Info_Pods)(nil), // 80: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 81: payload.v1.Info.Nodes + (*Info_Services)(nil), // 82: payload.v1.Info.Services + (*Info_IPs)(nil), // 83: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 84: payload.v1.Info.Index.Count + (*Info_Index_UUID)(nil), // 85: payload.v1.Info.Index.UUID + (*Info_Index_UUID_Committed)(nil), // 86: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 87: payload.v1.Info.Index.UUID.Uncommitted + nil, // 88: payload.v1.Info.Labels.LabelsEntry + nil, // 89: payload.v1.Info.Annotations.AnnotationsEntry + (*status.Status)(nil), // 90: google.rpc.Status } var file_v1_payload_payload_proto_depIdxs = []int32{ 19, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config @@ -5387,77 +5693,84 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 19, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 23, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 17, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 24, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 24, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 25, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 25, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 46, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 51, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 20, // 11: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 20, // 12: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 85, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 23, // 14: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 50, // 15: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 29, // 16: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 25, // 17: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 56, // 18: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 29, // 19: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 23, // 20: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 27, // 21: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 24, // 22: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 23: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 34, // 24: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 30, // 25: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 56, // 26: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 34, // 27: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 23, // 28: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 32, // 29: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 24, // 30: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 50, // 31: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 39, // 32: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 35, // 33: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 56, // 34: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 39, // 35: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 23, // 36: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 37, // 37: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 24, // 38: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 48, // 39: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 44, // 40: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 40, // 41: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 43, // 42: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 43: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 48, // 44: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 24, // 45: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 46, // 46: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 85, // 47: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 48, // 48: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID - 50, // 49: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 50, // 50: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 85, // 51: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 56, // 52: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 85, // 53: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 58, // 54: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 85, // 55: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 58, // 56: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 50, // 57: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 85, // 58: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 73, // 59: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 74, // 60: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 68, // 61: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 73, // 62: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 74, // 63: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 75, // 64: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 70, // 65: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort - 71, // 66: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels - 72, // 67: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations - 83, // 68: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry - 84, // 69: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry - 67, // 70: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 68, // 71: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 69, // 72: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service - 73, // [73:73] is the sub-list for method output_type - 73, // [73:73] is the sub-list for method input_type - 73, // [73:73] is the sub-list for extension type_name - 73, // [73:73] is the sub-list for extension extendee - 0, // [0:73] is the sub-list for field type_name + 90, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 23, // 14: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 24, // 15: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 51, // 16: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 24, // 17: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 51, // 18: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 55, // 19: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 24, // 20: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 55, // 21: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 55, // 22: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 34, // 23: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 30, // 24: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 61, // 25: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 34, // 26: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 23, // 27: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 32, // 28: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 25, // 29: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 30: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 39, // 31: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 35, // 32: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 61, // 33: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 39, // 34: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 23, // 35: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 37, // 36: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 25, // 37: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 55, // 38: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 44, // 39: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 40, // 40: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 61, // 41: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 44, // 42: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 23, // 43: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 42, // 44: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 25, // 45: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 53, // 46: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 49, // 47: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 45, // 48: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 48, // 49: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 50: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 53, // 51: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 25, // 52: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 51, // 53: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 90, // 54: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 53, // 55: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID + 55, // 56: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 55, // 57: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 90, // 58: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 61, // 59: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 90, // 60: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 63, // 61: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 90, // 62: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 63, // 63: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 55, // 64: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 90, // 65: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 78, // 66: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 79, // 67: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 73, // 68: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 78, // 69: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 79, // 70: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 80, // 71: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 75, // 72: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort + 76, // 73: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels + 77, // 74: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations + 88, // 75: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry + 89, // 76: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry + 72, // 77: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 73, // 78: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 74, // 79: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service + 80, // [80:80] is the sub-list for method output_type + 80, // [80:80] is the sub-list for method input_type + 80, // [80:80] is the sub-list for extension type_name + 80, // [80:80] is the sub-list for extension extendee + 0, // [0:80] is the sub-list for field type_name } func init() { file_v1_payload_payload_proto_init() } @@ -5731,7 +6044,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -5743,7 +6056,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -5755,7 +6068,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -5767,7 +6080,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -5779,7 +6092,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -5791,7 +6104,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -5803,7 +6116,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -5815,7 +6128,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -5827,7 +6140,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5839,7 +6152,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5851,7 +6164,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Config); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -5863,7 +6176,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -5875,7 +6188,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -5887,7 +6200,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -5899,7 +6212,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5911,7 +6224,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -5923,7 +6236,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -5935,7 +6248,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -5947,7 +6260,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -5959,7 +6272,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -5971,7 +6284,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -5983,7 +6296,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -5995,7 +6308,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -6007,7 +6320,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -6019,7 +6332,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -6031,7 +6344,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_IDs); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -6043,7 +6356,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -6055,7 +6368,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_GetTimestampRequest); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -6067,7 +6380,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Timestamp); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -6079,7 +6392,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -6091,7 +6404,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -6103,7 +6416,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -6115,7 +6428,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_GetTimestampRequest); i { case 0: return &v.state case 1: @@ -6127,7 +6440,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Timestamp); i { case 0: return &v.state case 1: @@ -6139,7 +6452,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -6151,7 +6464,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -6163,7 +6476,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -6175,7 +6488,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -6187,7 +6500,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -6199,7 +6512,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -6211,7 +6524,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -6223,7 +6536,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -6235,7 +6548,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -6247,7 +6560,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -6259,7 +6572,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -6271,7 +6584,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Service); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -6283,7 +6596,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_ServicePort); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -6295,7 +6608,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Labels); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -6307,7 +6620,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Annotations); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -6319,7 +6632,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_CPU); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -6331,7 +6644,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Memory); i { + switch v := v.(*Info_Service); i { case 0: return &v.state case 1: @@ -6343,7 +6656,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_ServicePort); i { case 0: return &v.state case 1: @@ -6355,7 +6668,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Labels); i { case 0: return &v.state case 1: @@ -6367,7 +6680,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Services); i { + switch v := v.(*Info_Annotations); i { case 0: return &v.state case 1: @@ -6379,7 +6692,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -6391,7 +6704,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -6403,7 +6716,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -6415,7 +6728,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Nodes); i { case 0: return &v.state case 1: @@ -6427,6 +6740,66 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Services); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_IPs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_Count); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Committed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Info_Index_UUID_Uncommitted); i { case 0: return &v.state @@ -6443,23 +6816,23 @@ func file_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[45].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[50].OneofWrappers = []interface{}{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[52].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[57].OneofWrappers = []interface{}{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[55].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []interface{}{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[57].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[62].OneofWrappers = []interface{}{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[61].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[66].OneofWrappers = []interface{}{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -6469,7 +6842,7 @@ func file_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 83, + NumMessages: 88, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/grpc/v1/rpc/errdetails/error_details.pb.go b/apis/grpc/v1/rpc/errdetails/error_details.pb.go index 2d91f3a121..c1b22e2cbc 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details.pb.go +++ b/apis/grpc/v1/rpc/errdetails/error_details.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/rpc/errdetails/error_details.proto diff --git a/apis/grpc/v1/vald/filter.pb.go b/apis/grpc/v1/vald/filter.pb.go index 21e3f2a553..51baa71dbd 100644 --- a/apis/grpc/v1/vald/filter.pb.go +++ b/apis/grpc/v1/vald/filter.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/vald/filter.proto diff --git a/apis/grpc/v1/vald/insert.pb.go b/apis/grpc/v1/vald/insert.pb.go index c650fcb0bb..1523003a54 100644 --- a/apis/grpc/v1/vald/insert.pb.go +++ b/apis/grpc/v1/vald/insert.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/vald/insert.proto diff --git a/apis/grpc/v1/vald/object.pb.go b/apis/grpc/v1/vald/object.pb.go index 3479429db1..16ed2f94cf 100644 --- a/apis/grpc/v1/vald/object.pb.go +++ b/apis/grpc/v1/vald/object.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/vald/object.proto diff --git a/apis/grpc/v1/vald/remove.pb.go b/apis/grpc/v1/vald/remove.pb.go index d09508c71f..21a057dc8a 100644 --- a/apis/grpc/v1/vald/remove.pb.go +++ b/apis/grpc/v1/vald/remove.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/vald/remove.proto diff --git a/apis/grpc/v1/vald/search.pb.go b/apis/grpc/v1/vald/search.pb.go index a26a97b8bb..9ffb9435ce 100644 --- a/apis/grpc/v1/vald/search.pb.go +++ b/apis/grpc/v1/vald/search.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/vald/search.proto diff --git a/apis/grpc/v1/vald/update.pb.go b/apis/grpc/v1/vald/update.pb.go index a2346cff03..673a078d24 100644 --- a/apis/grpc/v1/vald/update.pb.go +++ b/apis/grpc/v1/vald/update.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/vald/update.proto diff --git a/apis/grpc/v1/vald/upsert.pb.go b/apis/grpc/v1/vald/upsert.pb.go index 7eaf492f15..8ad5eb4345 100644 --- a/apis/grpc/v1/vald/upsert.pb.go +++ b/apis/grpc/v1/vald/upsert.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc (unknown) // source: v1/vald/upsert.proto diff --git a/apis/swagger/v1/discoverer/discoverer.swagger.json b/apis/swagger/v1/discoverer/discoverer.swagger.json index b6df1227c3..915d82ab71 100644 --- a/apis/swagger/v1/discoverer/discoverer.swagger.json +++ b/apis/swagger/v1/discoverer/discoverer.swagger.json @@ -20,7 +20,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/InfoNodes" + "$ref": "#/definitions/v1InfoNodes" } }, "default": { @@ -52,7 +52,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/InfoPods" + "$ref": "#/definitions/v1InfoPods" } }, "default": { @@ -84,7 +84,7 @@ "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/InfoServices" + "$ref": "#/definitions/v1InfoServices" } }, "default": { @@ -200,26 +200,12 @@ "description": "The memory information of the node." }, "Pods": { - "$ref": "#/definitions/InfoPods", + "$ref": "#/definitions/v1InfoPods", "description": "The pod information of the node." } }, "description": "Represent the node information message." }, - "InfoNodes": { - "type": "object", - "properties": { - "nodes": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/InfoNode" - }, - "description": "The multiple node information." - } - }, - "description": "Represent the multiple node information message." - }, "InfoPod": { "type": "object", "properties": { @@ -254,20 +240,6 @@ }, "description": "Represent the pod information message." }, - "InfoPods": { - "type": "object", - "properties": { - "pods": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/InfoPod" - }, - "description": "The multiple pod information." - } - }, - "description": "Represent the multiple pod information message." - }, "InfoService": { "type": "object", "properties": { @@ -320,20 +292,6 @@ }, "description": "Represets the service port information message." }, - "InfoServices": { - "type": "object", - "properties": { - "services": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/InfoService" - }, - "description": "The multiple service information." - } - }, - "description": "Represent the multiple service information message." - }, "protobufAny": { "type": "object", "properties": { @@ -385,6 +343,48 @@ } }, "description": "Represent the dicoverer request." + }, + "v1InfoNodes": { + "type": "object", + "properties": { + "nodes": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/InfoNode" + }, + "description": "The multiple node information." + } + }, + "description": "Represent the multiple node information message." + }, + "v1InfoPods": { + "type": "object", + "properties": { + "pods": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/InfoPod" + }, + "description": "The multiple pod information." + } + }, + "description": "Represent the multiple pod information message." + }, + "v1InfoServices": { + "type": "object", + "properties": { + "services": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/InfoService" + }, + "description": "The multiple service information." + } + }, + "description": "Represent the multiple service information message." } } } diff --git a/example/client/gateway/filter/egress-filter/main.go b/example/client/gateway/filter/egress-filter/main.go index 7a142ca6c0..3e9e3d3776 100644 --- a/example/client/gateway/filter/egress-filter/main.go +++ b/example/client/gateway/filter/egress-filter/main.go @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2023 vdaas.org vald team +// Copyright (C) 2019-2024 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); // You may not use this file except in compliance with the License. diff --git a/example/client/gateway/filter/ingress-filter/main.go b/example/client/gateway/filter/ingress-filter/main.go index abf7204c29..6e23e7376a 100644 --- a/example/client/gateway/filter/ingress-filter/main.go +++ b/example/client/gateway/filter/ingress-filter/main.go @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2023 vdaas.org vald team +// Copyright (C) 2019-2024 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); // You may not use this file except in compliance with the License. diff --git a/example/client/gateway/filter/main.go b/example/client/gateway/filter/main.go index b09675349c..5d8fb574e3 100644 --- a/example/client/gateway/filter/main.go +++ b/example/client/gateway/filter/main.go @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2023 vdaas.org vald team +// Copyright (C) 2019-2024 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); // You may not use this file except in compliance with the License. diff --git a/example/manifest/filter/egress/Dockerfile b/example/manifest/filter/egress/Dockerfile index a1e8633370..49010d4424 100644 --- a/example/manifest/filter/egress/Dockerfile +++ b/example/manifest/filter/egress/Dockerfile @@ -1,6 +1,6 @@ # syntax = docker/dockerfile:latest # -# Copyright (C) 2019-2023 vdaas.org vald team +# Copyright (C) 2019-2024 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. diff --git a/example/manifest/filter/egress/deployment.yaml b/example/manifest/filter/egress/deployment.yaml index 7fa4adeb72..08be9a6d3e 100644 --- a/example/manifest/filter/egress/deployment.yaml +++ b/example/manifest/filter/egress/deployment.yaml @@ -1,5 +1,5 @@ # -# Copyright (C) 2019-2023 vdaas.org vald team +# Copyright (C) 2019-2024 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. diff --git a/example/manifest/filter/egress/service.yaml b/example/manifest/filter/egress/service.yaml index fb7ae334ae..8f045593f9 100644 --- a/example/manifest/filter/egress/service.yaml +++ b/example/manifest/filter/egress/service.yaml @@ -1,5 +1,5 @@ # -# Copyright (C) 2019-2023 vdaas.org vald team +# Copyright (C) 2019-2024 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. diff --git a/example/manifest/filter/ingress/Dockerfile b/example/manifest/filter/ingress/Dockerfile index 636afa11a0..7a14afbeae 100644 --- a/example/manifest/filter/ingress/Dockerfile +++ b/example/manifest/filter/ingress/Dockerfile @@ -1,6 +1,6 @@ # syntax = docker/dockerfile:latest # -# Copyright (C) 2019-2023 vdaas.org vald team +# Copyright (C) 2019-2024 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. diff --git a/example/manifest/filter/ingress/deployment.yaml b/example/manifest/filter/ingress/deployment.yaml index a83124a8b7..c3e6f4b92e 100644 --- a/example/manifest/filter/ingress/deployment.yaml +++ b/example/manifest/filter/ingress/deployment.yaml @@ -1,5 +1,5 @@ # -# Copyright (C) 2019-2023 vdaas.org vald team +# Copyright (C) 2019-2024 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. diff --git a/example/manifest/filter/ingress/service.yaml b/example/manifest/filter/ingress/service.yaml index 3a52fbd133..47e3c5914c 100644 --- a/example/manifest/filter/ingress/service.yaml +++ b/example/manifest/filter/ingress/service.yaml @@ -1,5 +1,5 @@ # -# Copyright (C) 2019-2023 vdaas.org vald team +# Copyright (C) 2019-2024 vdaas.org vald team # # Licensed under the Apache License, Version 2.0 (the "License"); # You may not use this file except in compliance with the License. diff --git a/example/server/egress-filter/main.go b/example/server/egress-filter/main.go index 48ebf23d8f..c92bdf82b1 100644 --- a/example/server/egress-filter/main.go +++ b/example/server/egress-filter/main.go @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2023 vdaas.org vald team +// Copyright (C) 2019-2024 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); // You may not use this file except in compliance with the License. diff --git a/example/server/ingress-filter/main.go b/example/server/ingress-filter/main.go index 7610cdc796..e7b17cbb5c 100644 --- a/example/server/ingress-filter/main.go +++ b/example/server/ingress-filter/main.go @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2023 vdaas.org vald team +// Copyright (C) 2019-2024 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); // You may not use this file except in compliance with the License. From 16c25cdc36661163943d7fcc1accd9c9b6d6ef69 Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Fri, 19 Jan 2024 10:13:58 +0900 Subject: [PATCH 19/43] Add Filter query configuration to Continuous Benchmark Job (#2296) * fix: add filter query config to filter config Signed-off-by: hlts2 * fix: update benchmark job schema Signed-off-by: hlts2 * fix: make format Signed-off-by: hlts2 --------- Signed-off-by: hlts2 --- .../crds/valdbenchmarkjob.yaml | 10 +++--- .../schemas/job-values.yaml | 17 +++++----- internal/config/benchmark.go | 33 ++++++++++++++++--- pkg/tools/benchmark/job/service/object.go | 31 ++++++++++++----- 4 files changed, 64 insertions(+), 27 deletions(-) diff --git a/charts/vald-benchmark-operator/crds/valdbenchmarkjob.yaml b/charts/vald-benchmark-operator/crds/valdbenchmarkjob.yaml index 53367d67c8..5fc3226a7d 100644 --- a/charts/vald-benchmark-operator/crds/valdbenchmarkjob.yaml +++ b/charts/vald-benchmark-operator/crds/valdbenchmarkjob.yaml @@ -328,11 +328,11 @@ spec: object_config: type: object properties: - filter_config: - type: object - properties: - host: - type: string + filter_configs: + type: array + items: + type: object + x-kubernetes-preserve-unknown-fields: true remove_config: type: object properties: diff --git a/charts/vald-benchmark-operator/schemas/job-values.yaml b/charts/vald-benchmark-operator/schemas/job-values.yaml index 8b7de934cd..a72bf8edf1 100644 --- a/charts/vald-benchmark-operator/schemas/job-values.yaml +++ b/charts/vald-benchmark-operator/schemas/job-values.yaml @@ -140,15 +140,14 @@ remove_config: # @schema {"name": "object_config", "type": "object"} # object_config -- object config object_config: - # @schema {"name": "object_config.filter_config", "type": "object"} - # object_config.filter_config -- filter target config - filter_config: - # @schema {"name": "object_config.filter_config.host", "type": "string"} - # object_config.filter_config.host -- filter target host - host: 0.0.0.0 - # @schema {"name": "object_config.filter_config.host", "type": "integer"} - # object_config.filter_config.port -- filter target host - port: 8081 + # @schema {"name": "object_config.filter_configs", "type": "array", "items": {"type": "object"}} + # object_config.filter_configs -- filter configs + filter_configs: + - target: + host: 0.0.0.0 + port: 8081 + query: + query: "" # @schema {"name": "client_config", "type": "object"} # client_config -- gRPC client config for request to the Vald cluster client_config: diff --git a/internal/config/benchmark.go b/internal/config/benchmark.go index 26fbc27a93..4c4049d9d7 100644 --- a/internal/config/benchmark.go +++ b/internal/config/benchmark.go @@ -156,11 +156,15 @@ func (cfg *RemoveConfig) Bind() *RemoveConfig { // ObjectConfig defines the desired state of object config type ObjectConfig struct { - FilterConfig FilterConfig `json:"filter_config,omitempty" yaml:"filter_config"` + FilterConfigs []*FilterConfig `json:"filter_configs,omitempty" yaml:"filter_configs"` } func (cfg *ObjectConfig) Bind() *ObjectConfig { - cfg.FilterConfig = *cfg.FilterConfig.Bind() + for i := 0; i < len(cfg.FilterConfigs); i++ { + if cfg.FilterConfigs[i] != nil { + cfg.FilterConfigs[i] = cfg.FilterConfigs[i].Bind() + } + } return cfg } @@ -175,14 +179,33 @@ func (cfg *FilterTarget) Bind() *FilterTarget { return cfg } +// FilterQuery defines the query passed to filter target. +type FilterQuery struct { + Query string `json:"query,omitempty" yaml:"query"` +} + +func (cfg *FilterQuery) Bind() *FilterQuery { + cfg.Query = GetActualValue(cfg.Query) + return cfg +} + // FilterConfig defines the desired state of filter config type FilterConfig struct { - Targets []*FilterTarget `json:"target,omitempty" yaml:"target"` + Target *FilterTarget `json:"target,omitempty" yaml:"target"` + Query *FilterQuery `json:"query,omitempty" yaml:"query"` } func (cfg *FilterConfig) Bind() *FilterConfig { - for i := 0; i < len(cfg.Targets); i++ { - cfg.Targets[i] = cfg.Targets[i].Bind() + if cfg.Target != nil { + cfg.Target = cfg.Target.Bind() + } else { + cfg.Target = (&FilterTarget{}).Bind() + } + + if cfg.Query != nil { + cfg.Query = cfg.Query.Bind() + } else { + cfg.Query = (&FilterQuery{}).Bind() } return cfg } diff --git a/pkg/tools/benchmark/job/service/object.go b/pkg/tools/benchmark/job/service/object.go index 3f644c0239..79c16209f6 100644 --- a/pkg/tools/benchmark/job/service/object.go +++ b/pkg/tools/benchmark/job/service/object.go @@ -80,12 +80,29 @@ func (j *job) getObject(ctx context.Context, ech chan error) error { eg.SetLimit(j.concurrencyLimit) for i := j.dataset.Range.Start; i <= j.dataset.Range.End; i++ { log.Infof("[benchmark job] Start get object: iter = %d", i) - ft := []*payload.Filter_Target{} + fcfgs := []*payload.Filter_Config{} if j.objectConfig != nil { - for i, target := range j.objectConfig.FilterConfig.Targets { - ft[i] = &payload.Filter_Target{ - Host: target.Host, - Port: uint32(target.Port), + for _, cfg := range j.objectConfig.FilterConfigs { + if cfg != nil { + var ( + target *payload.Filter_Target + query *payload.Filter_Query + ) + if cfg.Target != nil { + target = &payload.Filter_Target{ + Host: cfg.Target.Host, + Port: uint32(cfg.Target.Port), + } + } + if cfg.Query != nil { + query = &payload.Filter_Query{ + Query: cfg.Query.Query, + } + } + fcfgs = append(fcfgs, &payload.Filter_Config{ + Target: target, + Query: query, + }) } } } @@ -108,9 +125,7 @@ func (j *job) getObject(ctx context.Context, ech chan error) error { Id: &payload.Object_ID{ Id: strconv.Itoa(idx), }, - Filters: &payload.Filter_Config{ - Targets: ft, - }, + Filters: fcfgs, }) if err != nil { select { From e161aa29de671a1a3d03f42714378822c7219914 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 22 Jan 2024 12:12:10 +0900 Subject: [PATCH 20/43] fix: make proto/all format Signed-off-by: hlts2 --- apis/grpc/v1/payload/payload.pb.go | 1079 +++++++++++------ apis/swagger/v1/vald/filter.swagger.json | 52 +- apis/swagger/v1/vald/insert.swagger.json | 28 +- apis/swagger/v1/vald/object.swagger.json | 22 +- apis/swagger/v1/vald/search.swagger.json | 34 +- apis/swagger/v1/vald/update.swagger.json | 28 +- apis/swagger/v1/vald/upsert.swagger.json | 28 +- rust/libs/proto/src/filter.egress.v1.tonic.rs | 36 +- rust/libs/proto/src/mirror.v1.tonic.rs | 309 +++++ rust/libs/proto/src/payload.v1.rs | 102 +- 10 files changed, 1292 insertions(+), 426 deletions(-) create mode 100644 rust/libs/proto/src/mirror.v1.tonic.rs diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index 5e94a4f000..8a3a706207 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -975,9 +975,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1051,14 +1051,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1328,6 +1328,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1335,13 +1384,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[23] + mi := &file_v1_payload_payload_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1354,7 +1405,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[23] + mi := &file_v1_payload_payload_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1367,12 +1418,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} } -func (x *Filter_Config) GetTargets() []*Filter_Target { +func (x *Filter_Config) GetTarget() *Filter_Target { if x != nil { - return x.Targets + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil +} + +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} +} + +func (x *Filter_VectorResponse) GetVector() *Object_Vector { + if x != nil { + return x.Vector } return nil } @@ -1392,7 +1664,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1405,7 +1677,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1448,7 +1720,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1461,7 +1733,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1501,7 +1773,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1514,7 +1786,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1564,7 +1836,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1577,7 +1849,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1609,7 +1881,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1617,7 +1889,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1630,7 +1902,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1653,7 +1925,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1682,7 +1954,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1695,7 +1967,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1738,7 +2010,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1751,7 +2023,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1791,7 +2063,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1804,7 +2076,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1854,7 +2126,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1867,7 +2139,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1899,7 +2171,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -1910,7 +2182,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1923,7 +2195,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1946,7 +2218,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1982,7 +2254,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1995,7 +2267,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2038,7 +2310,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2051,7 +2323,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2091,7 +2363,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2104,7 +2376,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2154,7 +2426,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2167,7 +2439,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2199,7 +2471,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2210,7 +2482,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2223,7 +2495,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2246,7 +2518,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2282,7 +2554,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2295,7 +2567,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2338,7 +2610,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2351,7 +2623,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2387,7 +2659,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2400,7 +2672,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2438,7 +2710,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2451,7 +2723,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2496,7 +2768,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2509,7 +2781,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2548,13 +2820,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2567,7 +2839,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2590,7 +2862,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2612,7 +2884,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2625,7 +2897,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2671,7 +2943,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2684,7 +2956,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2751,7 +3023,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2764,7 +3036,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2799,7 +3071,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2812,7 +3084,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2852,7 +3124,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2865,7 +3137,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2915,7 +3187,7 @@ type Object_GetTimestampRequest struct { func (x *Object_GetTimestampRequest) Reset() { *x = Object_GetTimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2928,7 +3200,7 @@ func (x *Object_GetTimestampRequest) String() string { func (*Object_GetTimestampRequest) ProtoMessage() {} func (x *Object_GetTimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2966,7 +3238,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2979,7 +3251,7 @@ func (x *Object_Timestamp) String() string { func (*Object_Timestamp) ProtoMessage() {} func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3021,7 +3293,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3034,7 +3306,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3073,7 +3345,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3086,7 +3358,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3156,7 +3428,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3169,7 +3441,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3214,7 +3486,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3227,7 +3499,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3273,7 +3545,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3286,7 +3558,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3358,7 +3630,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3371,7 +3643,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3424,7 +3696,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3437,7 +3709,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3504,7 +3776,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3517,7 +3789,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3550,7 +3822,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3563,7 +3835,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3588,7 +3860,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3601,7 +3873,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3632,7 +3904,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3645,7 +3917,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3713,7 +3985,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3726,7 +3998,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3766,7 +4038,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3779,7 +4051,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3826,7 +4098,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3839,7 +4111,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3880,7 +4152,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3893,7 +4165,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3981,7 +4253,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3994,7 +4266,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4075,7 +4347,7 @@ type Info_Service struct { func (x *Info_Service) Reset() { *x = Info_Service{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4088,7 +4360,7 @@ func (x *Info_Service) String() string { func (*Info_Service) ProtoMessage() {} func (x *Info_Service) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4161,7 +4433,7 @@ type Info_ServicePort struct { func (x *Info_ServicePort) Reset() { *x = Info_ServicePort{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4174,7 +4446,7 @@ func (x *Info_ServicePort) String() string { func (*Info_ServicePort) ProtoMessage() {} func (x *Info_ServicePort) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4216,7 +4488,7 @@ type Info_Labels struct { func (x *Info_Labels) Reset() { *x = Info_Labels{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4229,7 +4501,7 @@ func (x *Info_Labels) String() string { func (*Info_Labels) ProtoMessage() {} func (x *Info_Labels) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4264,7 +4536,7 @@ type Info_Annotations struct { func (x *Info_Annotations) Reset() { *x = Info_Annotations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4277,7 +4549,7 @@ func (x *Info_Annotations) String() string { func (*Info_Annotations) ProtoMessage() {} func (x *Info_Annotations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4317,7 +4589,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4330,7 +4602,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4384,7 +4656,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4397,7 +4669,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4447,7 +4719,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4460,7 +4732,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4496,7 +4768,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4509,7 +4781,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4545,7 +4817,7 @@ type Info_Services struct { func (x *Info_Services) Reset() { *x = Info_Services{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4558,7 +4830,7 @@ func (x *Info_Services) String() string { func (*Info_Services) ProtoMessage() {} func (x *Info_Services) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4593,7 +4865,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4606,7 +4878,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4648,7 +4920,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4661,7 +4933,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4715,7 +4987,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4728,7 +5000,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4756,7 +5028,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4769,7 +5041,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4804,7 +5076,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4817,7 +5089,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4855,7 +5127,7 @@ type Mirror_Target struct { func (x *Mirror_Target) Reset() { *x = Mirror_Target{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[84] + mi := &file_v1_payload_payload_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4868,7 +5140,7 @@ func (x *Mirror_Target) String() string { func (*Mirror_Target) ProtoMessage() {} func (x *Mirror_Target) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[84] + mi := &file_v1_payload_payload_proto_msgTypes[89] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4911,7 +5183,7 @@ type Mirror_Targets struct { func (x *Mirror_Targets) Reset() { *x = Mirror_Targets{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[85] + mi := &file_v1_payload_payload_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4924,7 +5196,7 @@ func (x *Mirror_Targets) String() string { func (*Mirror_Targets) ProtoMessage() {} func (x *Mirror_Targets) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[85] + mi := &file_v1_payload_payload_proto_msgTypes[90] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5001,12 +5273,12 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x42, @@ -5042,15 +5314,44 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x6e, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x50, - 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0x79, 0x0a, 0x06, - 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x3d, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x07, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, + 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0xc8, 0x04, 0x0a, + 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1d, 0x0a, 0x05, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x6b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x7a, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x1a, 0x4b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x72, + 0x0a, 0x0d, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x1a, 0x43, 0x0a, 0x0e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, @@ -5084,7 +5385,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, @@ -5123,7 +5424,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, @@ -5165,7 +5466,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, @@ -5211,7 +5512,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xba, 0x48, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, @@ -5444,7 +5745,7 @@ func file_v1_payload_payload_proto_rawDescGZIP() []byte { } var file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 86) +var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 91) var file_v1_payload_payload_proto_goTypes = []interface{}{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -5471,70 +5772,75 @@ var file_v1_payload_payload_proto_goTypes = []interface{}{ (*Search_Responses)(nil), // 22: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 23: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 24: payload.v1.Filter.Target - (*Filter_Config)(nil), // 25: payload.v1.Filter.Config - (*Insert_Request)(nil), // 26: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 27: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 28: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 29: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 30: payload.v1.Insert.Config - (*Update_Request)(nil), // 31: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 32: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 33: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 34: payload.v1.Update.MultiObjectRequest - (*Update_Config)(nil), // 35: payload.v1.Update.Config - (*Upsert_Request)(nil), // 36: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 37: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 38: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 39: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 40: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 41: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 42: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 43: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 44: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 45: payload.v1.Remove.Config - (*Object_VectorRequest)(nil), // 46: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 47: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 48: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 49: payload.v1.Object.ID - (*Object_IDs)(nil), // 50: payload.v1.Object.IDs - (*Object_Vector)(nil), // 51: payload.v1.Object.Vector - (*Object_GetTimestampRequest)(nil), // 52: payload.v1.Object.GetTimestampRequest - (*Object_Timestamp)(nil), // 53: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 54: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 55: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 56: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 57: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 58: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 59: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 60: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 61: payload.v1.Object.Locations - (*Object_List)(nil), // 62: payload.v1.Object.List - (*Object_List_Request)(nil), // 63: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 64: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 65: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 66: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 67: payload.v1.Info.Index - (*Info_Pod)(nil), // 68: payload.v1.Info.Pod - (*Info_Node)(nil), // 69: payload.v1.Info.Node - (*Info_Service)(nil), // 70: payload.v1.Info.Service - (*Info_ServicePort)(nil), // 71: payload.v1.Info.ServicePort - (*Info_Labels)(nil), // 72: payload.v1.Info.Labels - (*Info_Annotations)(nil), // 73: payload.v1.Info.Annotations - (*Info_CPU)(nil), // 74: payload.v1.Info.CPU - (*Info_Memory)(nil), // 75: payload.v1.Info.Memory - (*Info_Pods)(nil), // 76: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 77: payload.v1.Info.Nodes - (*Info_Services)(nil), // 78: payload.v1.Info.Services - (*Info_IPs)(nil), // 79: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 80: payload.v1.Info.Index.Count - (*Info_Index_UUID)(nil), // 81: payload.v1.Info.Index.UUID - (*Info_Index_UUID_Committed)(nil), // 82: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 83: payload.v1.Info.Index.UUID.Uncommitted - nil, // 84: payload.v1.Info.Labels.LabelsEntry - nil, // 85: payload.v1.Info.Annotations.AnnotationsEntry - (*Mirror_Target)(nil), // 86: payload.v1.Mirror.Target - (*Mirror_Targets)(nil), // 87: payload.v1.Mirror.Targets - (*status.Status)(nil), // 88: google.rpc.Status + (*Filter_Query)(nil), // 25: payload.v1.Filter.Query + (*Filter_Config)(nil), // 26: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 27: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 28: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 29: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 30: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 31: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 32: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 33: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 34: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 35: payload.v1.Insert.Config + (*Update_Request)(nil), // 36: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 37: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 38: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 39: payload.v1.Update.MultiObjectRequest + (*Update_Config)(nil), // 40: payload.v1.Update.Config + (*Upsert_Request)(nil), // 41: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 42: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 43: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 44: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 45: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 46: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 47: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 48: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 49: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 50: payload.v1.Remove.Config + (*Object_VectorRequest)(nil), // 51: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 52: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 53: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 54: payload.v1.Object.ID + (*Object_IDs)(nil), // 55: payload.v1.Object.IDs + (*Object_Vector)(nil), // 56: payload.v1.Object.Vector + (*Object_GetTimestampRequest)(nil), // 57: payload.v1.Object.GetTimestampRequest + (*Object_Timestamp)(nil), // 58: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 59: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 60: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 61: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 62: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 63: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 64: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 65: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 66: payload.v1.Object.Locations + (*Object_List)(nil), // 67: payload.v1.Object.List + (*Object_List_Request)(nil), // 68: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 69: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 70: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 71: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 72: payload.v1.Info.Index + (*Info_Pod)(nil), // 73: payload.v1.Info.Pod + (*Info_Node)(nil), // 74: payload.v1.Info.Node + (*Info_Service)(nil), // 75: payload.v1.Info.Service + (*Info_ServicePort)(nil), // 76: payload.v1.Info.ServicePort + (*Info_Labels)(nil), // 77: payload.v1.Info.Labels + (*Info_Annotations)(nil), // 78: payload.v1.Info.Annotations + (*Info_CPU)(nil), // 79: payload.v1.Info.CPU + (*Info_Memory)(nil), // 80: payload.v1.Info.Memory + (*Info_Pods)(nil), // 81: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 82: payload.v1.Info.Nodes + (*Info_Services)(nil), // 83: payload.v1.Info.Services + (*Info_IPs)(nil), // 84: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 85: payload.v1.Info.Index.Count + (*Info_Index_UUID)(nil), // 86: payload.v1.Info.Index.UUID + (*Info_Index_UUID_Committed)(nil), // 87: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 88: payload.v1.Info.Index.UUID.Uncommitted + nil, // 89: payload.v1.Info.Labels.LabelsEntry + nil, // 90: payload.v1.Info.Annotations.AnnotationsEntry + (*Mirror_Target)(nil), // 91: payload.v1.Mirror.Target + (*Mirror_Targets)(nil), // 92: payload.v1.Mirror.Targets + (*status.Status)(nil), // 93: google.rpc.Status } var file_v1_payload_payload_proto_depIdxs = []int32{ 20, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config @@ -5544,78 +5850,85 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 20, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 24, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 18, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 25, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 25, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 26, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 26, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 47, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 52, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 21, // 11: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 21, // 12: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 88, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 24, // 14: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 51, // 15: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 30, // 16: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 26, // 17: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 57, // 18: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 30, // 19: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 24, // 20: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 28, // 21: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 25, // 22: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 51, // 23: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 35, // 24: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 31, // 25: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 57, // 26: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 35, // 27: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 24, // 28: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 33, // 29: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 25, // 30: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 51, // 31: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 40, // 32: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 36, // 33: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 57, // 34: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 40, // 35: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 24, // 36: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 38, // 37: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 25, // 38: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 49, // 39: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 45, // 40: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 41, // 41: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 44, // 42: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 43: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 49, // 44: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 25, // 45: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 47, // 46: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 88, // 47: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 49, // 48: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID - 51, // 49: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 51, // 50: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 88, // 51: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 57, // 52: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 88, // 53: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 59, // 54: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 88, // 55: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 59, // 56: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 51, // 57: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 88, // 58: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 74, // 59: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 75, // 60: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 69, // 61: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 74, // 62: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 75, // 63: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 76, // 64: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 71, // 65: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort - 72, // 66: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels - 73, // 67: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations - 84, // 68: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry - 85, // 69: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry - 68, // 70: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 69, // 71: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 70, // 72: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service - 86, // 73: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target - 74, // [74:74] is the sub-list for method output_type - 74, // [74:74] is the sub-list for method input_type - 74, // [74:74] is the sub-list for extension type_name - 74, // [74:74] is the sub-list for extension extendee - 0, // [0:74] is the sub-list for field type_name + 93, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 24, // 14: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 25, // 15: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 52, // 16: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 25, // 17: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 52, // 18: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 56, // 19: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 25, // 20: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 56, // 21: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 56, // 22: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 35, // 23: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 31, // 24: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 62, // 25: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 35, // 26: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 24, // 27: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 33, // 28: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 26, // 29: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 56, // 30: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 40, // 31: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 36, // 32: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 62, // 33: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 40, // 34: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 24, // 35: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 38, // 36: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 26, // 37: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 56, // 38: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 45, // 39: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 41, // 40: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 62, // 41: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 45, // 42: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 24, // 43: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 43, // 44: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 26, // 45: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 54, // 46: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 50, // 47: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 46, // 48: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 49, // 49: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 50: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 54, // 51: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 26, // 52: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 52, // 53: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 93, // 54: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 54, // 55: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID + 56, // 56: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 56, // 57: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 93, // 58: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 62, // 59: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 93, // 60: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 64, // 61: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 93, // 62: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 64, // 63: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 56, // 64: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 93, // 65: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 79, // 66: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 80, // 67: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 74, // 68: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 79, // 69: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 80, // 70: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 81, // 71: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 76, // 72: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort + 77, // 73: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels + 78, // 74: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations + 89, // 75: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry + 90, // 76: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry + 73, // 77: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 74, // 78: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 75, // 79: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service + 91, // 80: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target + 81, // [81:81] is the sub-list for method output_type + 81, // [81:81] is the sub-list for method input_type + 81, // [81:81] is the sub-list for extension type_name + 81, // [81:81] is the sub-list for extension extendee + 0, // [0:81] is the sub-list for field type_name } func init() { file_v1_payload_payload_proto_init() } @@ -5901,7 +6214,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -5913,7 +6226,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -5925,7 +6238,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -5937,7 +6250,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -5949,7 +6262,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -5961,7 +6274,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -5973,7 +6286,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -5985,7 +6298,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -5997,7 +6310,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -6009,7 +6322,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -6021,7 +6334,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Config); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -6033,7 +6346,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -6045,7 +6358,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -6057,7 +6370,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -6069,7 +6382,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -6081,7 +6394,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -6093,7 +6406,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -6105,7 +6418,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -6117,7 +6430,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -6129,7 +6442,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -6141,7 +6454,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -6153,7 +6466,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -6165,7 +6478,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -6177,7 +6490,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -6189,7 +6502,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -6201,7 +6514,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_IDs); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -6213,7 +6526,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -6225,7 +6538,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_GetTimestampRequest); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -6237,7 +6550,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Timestamp); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -6249,7 +6562,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -6261,7 +6574,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -6273,7 +6586,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -6285,7 +6598,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_GetTimestampRequest); i { case 0: return &v.state case 1: @@ -6297,7 +6610,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Timestamp); i { case 0: return &v.state case 1: @@ -6309,7 +6622,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -6321,7 +6634,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -6333,7 +6646,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -6345,7 +6658,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -6357,7 +6670,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -6369,7 +6682,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -6381,7 +6694,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -6393,7 +6706,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -6405,7 +6718,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -6417,7 +6730,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -6429,7 +6742,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -6441,7 +6754,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Service); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -6453,7 +6766,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_ServicePort); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -6465,7 +6778,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Labels); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -6477,7 +6790,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Annotations); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -6489,7 +6802,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_CPU); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -6501,7 +6814,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Memory); i { + switch v := v.(*Info_Service); i { case 0: return &v.state case 1: @@ -6513,7 +6826,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_ServicePort); i { case 0: return &v.state case 1: @@ -6525,7 +6838,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Labels); i { case 0: return &v.state case 1: @@ -6537,7 +6850,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Services); i { + switch v := v.(*Info_Annotations); i { case 0: return &v.state case 1: @@ -6549,7 +6862,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -6561,7 +6874,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -6573,7 +6886,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -6585,7 +6898,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Nodes); i { case 0: return &v.state case 1: @@ -6597,7 +6910,31 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Uncommitted); i { + switch v := v.(*Info_Services); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_IPs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_Count); i { case 0: return &v.state case 1: @@ -6609,7 +6946,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Mirror_Target); i { + switch v := v.(*Info_Index_UUID); i { case 0: return &v.state case 1: @@ -6621,6 +6958,42 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Committed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Uncommitted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Mirror_Target); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Mirror_Targets); i { case 0: return &v.state @@ -6637,23 +7010,23 @@ func file_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[46].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[51].OneofWrappers = []interface{}{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[53].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[58].OneofWrappers = []interface{}{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[56].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[61].OneofWrappers = []interface{}{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[58].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[63].OneofWrappers = []interface{}{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[62].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[67].OneofWrappers = []interface{}{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -6663,7 +7036,7 @@ func file_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 86, + NumMessages: 91, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/swagger/v1/vald/filter.swagger.json b/apis/swagger/v1/vald/filter.swagger.json index 0e060ee5d3..d9ce673de5 100644 --- a/apis/swagger/v1/vald/filter.swagger.json +++ b/apis/swagger/v1/vald/filter.swagger.json @@ -270,6 +270,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "ObjectBlob": { "type": "object", "properties": { @@ -404,13 +414,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v1FilterTarget" - }, + "target": { + "$ref": "#/definitions/v1FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -438,7 +448,11 @@ "description": "A flag to skip exist check during insert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configurations." }, "timestamp": { @@ -530,11 +544,19 @@ "description": "Search timeout in nanoseconds." }, "ingressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Ingress filter configurations." }, "egressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Egress filter configurations." }, "minNum": { @@ -608,7 +630,11 @@ "description": "A flag to skip exist check during update operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { @@ -663,7 +689,11 @@ "description": "A flag to skip exist check during upsert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { diff --git a/apis/swagger/v1/vald/insert.swagger.json b/apis/swagger/v1/vald/insert.swagger.json index 6b76719382..0d5f31bb46 100644 --- a/apis/swagger/v1/vald/insert.swagger.json +++ b/apis/swagger/v1/vald/insert.swagger.json @@ -78,6 +78,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "ObjectLocations": { "type": "object", "properties": { @@ -165,13 +175,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v1FilterTarget" - }, + "target": { + "$ref": "#/definitions/v1FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -199,7 +209,11 @@ "description": "A flag to skip exist check during insert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configurations." }, "timestamp": { diff --git a/apis/swagger/v1/vald/object.swagger.json b/apis/swagger/v1/vald/object.swagger.json index de87f3948e..c039ef59c9 100644 --- a/apis/swagger/v1/vald/object.swagger.json +++ b/apis/swagger/v1/vald/object.swagger.json @@ -102,6 +102,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "ObjectID": { "type": "object", "properties": { @@ -198,13 +208,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v1FilterTarget" - }, + "target": { + "$ref": "#/definitions/v1FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." diff --git a/apis/swagger/v1/vald/search.swagger.json b/apis/swagger/v1/vald/search.swagger.json index b131377f51..25a82f0e78 100644 --- a/apis/swagger/v1/vald/search.swagger.json +++ b/apis/swagger/v1/vald/search.swagger.json @@ -270,6 +270,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "ObjectDistance": { "type": "object", "properties": { @@ -390,13 +400,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v1FilterTarget" - }, + "target": { + "$ref": "#/definitions/v1FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -444,11 +454,19 @@ "description": "Search timeout in nanoseconds." }, "ingressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Ingress filter configurations." }, "egressFilters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Egress filter configurations." }, "minNum": { diff --git a/apis/swagger/v1/vald/update.swagger.json b/apis/swagger/v1/vald/update.swagger.json index d295febc19..e5acdd2a77 100644 --- a/apis/swagger/v1/vald/update.swagger.json +++ b/apis/swagger/v1/vald/update.swagger.json @@ -78,6 +78,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "ObjectLocations": { "type": "object", "properties": { @@ -165,13 +175,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v1FilterTarget" - }, + "target": { + "$ref": "#/definitions/v1FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -220,7 +230,11 @@ "description": "A flag to skip exist check during update operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { diff --git a/apis/swagger/v1/vald/upsert.swagger.json b/apis/swagger/v1/vald/upsert.swagger.json index b36801bc74..b79828aa29 100644 --- a/apis/swagger/v1/vald/upsert.swagger.json +++ b/apis/swagger/v1/vald/upsert.swagger.json @@ -78,6 +78,16 @@ } }, "definitions": { + "FilterQuery": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The raw query string." + } + }, + "description": "Represent the filter query." + }, "ObjectLocations": { "type": "object", "properties": { @@ -165,13 +175,13 @@ "v1FilterConfig": { "type": "object", "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v1FilterTarget" - }, + "target": { + "$ref": "#/definitions/v1FilterTarget", "description": "Represent the filter target configuration." + }, + "query": { + "$ref": "#/definitions/FilterQuery", + "description": "The target query." } }, "description": "Represent filter configuration." @@ -220,7 +230,11 @@ "description": "A flag to skip exist check during upsert operation." }, "filters": { - "$ref": "#/definitions/v1FilterConfig", + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1FilterConfig" + }, "description": "Filter configuration." }, "timestamp": { diff --git a/rust/libs/proto/src/filter.egress.v1.tonic.rs b/rust/libs/proto/src/filter.egress.v1.tonic.rs index 87ea20f66c..65bf9fafef 100644 --- a/rust/libs/proto/src/filter.egress.v1.tonic.rs +++ b/rust/libs/proto/src/filter.egress.v1.tonic.rs @@ -104,10 +104,12 @@ pub mod filter_client { pub async fn filter_distance( &mut self, request: impl tonic::IntoRequest< - super::super::super::super::payload::v1::object::Distance, + super::super::super::super::payload::v1::filter::DistanceRequest, >, ) -> std::result::Result< - tonic::Response, + tonic::Response< + super::super::super::super::payload::v1::filter::DistanceResponse, + >, tonic::Status, > { self.inner @@ -133,10 +135,12 @@ pub mod filter_client { pub async fn filter_vector( &mut self, request: impl tonic::IntoRequest< - super::super::super::super::payload::v1::object::Vector, + super::super::super::super::payload::v1::filter::VectorRequest, >, ) -> std::result::Result< - tonic::Response, + tonic::Response< + super::super::super::super::payload::v1::filter::VectorResponse, + >, tonic::Status, > { self.inner @@ -171,10 +175,12 @@ pub mod filter_server { async fn filter_distance( &self, request: tonic::Request< - super::super::super::super::payload::v1::object::Distance, + super::super::super::super::payload::v1::filter::DistanceRequest, >, ) -> std::result::Result< - tonic::Response, + tonic::Response< + super::super::super::super::payload::v1::filter::DistanceResponse, + >, tonic::Status, >; /** Represent the RPC to filter the vector. @@ -182,10 +188,12 @@ pub mod filter_server { async fn filter_vector( &self, request: tonic::Request< - super::super::super::super::payload::v1::object::Vector, + super::super::super::super::payload::v1::filter::VectorRequest, >, ) -> std::result::Result< - tonic::Response, + tonic::Response< + super::super::super::super::payload::v1::filter::VectorResponse, + >, tonic::Status, >; } @@ -276,9 +284,9 @@ pub mod filter_server { impl< T: Filter, > tonic::server::UnaryService< - super::super::super::super::payload::v1::object::Distance, + super::super::super::super::payload::v1::filter::DistanceRequest, > for FilterDistanceSvc { - type Response = super::super::super::super::payload::v1::object::Distance; + type Response = super::super::super::super::payload::v1::filter::DistanceResponse; type Future = BoxFuture< tonic::Response, tonic::Status, @@ -286,7 +294,7 @@ pub mod filter_server { fn call( &mut self, request: tonic::Request< - super::super::super::super::payload::v1::object::Distance, + super::super::super::super::payload::v1::filter::DistanceRequest, >, ) -> Self::Future { let inner = Arc::clone(&self.0); @@ -325,9 +333,9 @@ pub mod filter_server { impl< T: Filter, > tonic::server::UnaryService< - super::super::super::super::payload::v1::object::Vector, + super::super::super::super::payload::v1::filter::VectorRequest, > for FilterVectorSvc { - type Response = super::super::super::super::payload::v1::object::Vector; + type Response = super::super::super::super::payload::v1::filter::VectorResponse; type Future = BoxFuture< tonic::Response, tonic::Status, @@ -335,7 +343,7 @@ pub mod filter_server { fn call( &mut self, request: tonic::Request< - super::super::super::super::payload::v1::object::Vector, + super::super::super::super::payload::v1::filter::VectorRequest, >, ) -> Self::Future { let inner = Arc::clone(&self.0); diff --git a/rust/libs/proto/src/mirror.v1.tonic.rs b/rust/libs/proto/src/mirror.v1.tonic.rs new file mode 100644 index 0000000000..7a76438644 --- /dev/null +++ b/rust/libs/proto/src/mirror.v1.tonic.rs @@ -0,0 +1,309 @@ +// +// Copyright (C) 2019-2024 vdaas.org vald team +// +// 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 +// +// https://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. +// +pub mod mirror_client { + #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + use tonic::codegen::*; + use tonic::codegen::http::Uri; + #[derive(Debug, Clone)] + pub struct MirrorClient { + inner: tonic::client::Grpc, + } + impl MirrorClient { + /// Attempt to create a new client by connecting to a given endpoint. + pub async fn connect(dst: D) -> Result + where + D: TryInto, + D::Error: Into, + { + let conn = tonic::transport::Endpoint::new(dst)?.connect().await?; + Ok(Self::new(conn)) + } + } + impl MirrorClient + where + T: tonic::client::GrpcService, + T::Error: Into, + T::ResponseBody: Body + Send + 'static, + ::Error: Into + Send, + { + pub fn new(inner: T) -> Self { + let inner = tonic::client::Grpc::new(inner); + Self { inner } + } + pub fn with_origin(inner: T, origin: Uri) -> Self { + let inner = tonic::client::Grpc::with_origin(inner, origin); + Self { inner } + } + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> MirrorClient> + where + F: tonic::service::Interceptor, + T::ResponseBody: Default, + T: tonic::codegen::Service< + http::Request, + Response = http::Response< + >::ResponseBody, + >, + >, + , + >>::Error: Into + Send + Sync, + { + MirrorClient::new(InterceptedService::new(inner, interceptor)) + } + /// Compress requests with the given encoding. + /// + /// This requires the server to support it otherwise it might respond with an + /// error. + #[must_use] + pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.inner = self.inner.send_compressed(encoding); + self + } + /// Enable decompressing responses. + #[must_use] + pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.inner = self.inner.accept_compressed(encoding); + self + } + /// Limits the maximum size of a decoded message. + /// + /// Default: `4MB` + #[must_use] + pub fn max_decoding_message_size(mut self, limit: usize) -> Self { + self.inner = self.inner.max_decoding_message_size(limit); + self + } + /// Limits the maximum size of an encoded message. + /// + /// Default: `usize::MAX` + #[must_use] + pub fn max_encoding_message_size(mut self, limit: usize) -> Self { + self.inner = self.inner.max_encoding_message_size(limit); + self + } + pub async fn register( + &mut self, + request: impl tonic::IntoRequest< + super::super::super::payload::v1::mirror::Targets, + >, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/mirror.v1.Mirror/Register", + ); + let mut req = request.into_request(); + req.extensions_mut().insert(GrpcMethod::new("mirror.v1.Mirror", "Register")); + self.inner.unary(req, path, codec).await + } + } +} +/// Generated server implementations. +pub mod mirror_server { + #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] + use tonic::codegen::*; + /// Generated trait containing gRPC methods that should be implemented for use with MirrorServer. + #[async_trait] + pub trait Mirror: Send + Sync + 'static { + async fn register( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + } + #[derive(Debug)] + pub struct MirrorServer { + inner: _Inner, + accept_compression_encodings: EnabledCompressionEncodings, + send_compression_encodings: EnabledCompressionEncodings, + max_decoding_message_size: Option, + max_encoding_message_size: Option, + } + struct _Inner(Arc); + impl MirrorServer { + pub fn new(inner: T) -> Self { + Self::from_arc(Arc::new(inner)) + } + pub fn from_arc(inner: Arc) -> Self { + let inner = _Inner(inner); + Self { + inner, + accept_compression_encodings: Default::default(), + send_compression_encodings: Default::default(), + max_decoding_message_size: None, + max_encoding_message_size: None, + } + } + pub fn with_interceptor( + inner: T, + interceptor: F, + ) -> InterceptedService + where + F: tonic::service::Interceptor, + { + InterceptedService::new(Self::new(inner), interceptor) + } + /// Enable decompressing requests with the given encoding. + #[must_use] + pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.accept_compression_encodings.enable(encoding); + self + } + /// Compress responses with the given encoding, if the client supports it. + #[must_use] + pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self { + self.send_compression_encodings.enable(encoding); + self + } + /// Limits the maximum size of a decoded message. + /// + /// Default: `4MB` + #[must_use] + pub fn max_decoding_message_size(mut self, limit: usize) -> Self { + self.max_decoding_message_size = Some(limit); + self + } + /// Limits the maximum size of an encoded message. + /// + /// Default: `usize::MAX` + #[must_use] + pub fn max_encoding_message_size(mut self, limit: usize) -> Self { + self.max_encoding_message_size = Some(limit); + self + } + } + impl tonic::codegen::Service> for MirrorServer + where + T: Mirror, + B: Body + Send + 'static, + B::Error: Into + Send + 'static, + { + type Response = http::Response; + type Error = std::convert::Infallible; + type Future = BoxFuture; + fn poll_ready( + &mut self, + _cx: &mut Context<'_>, + ) -> Poll> { + Poll::Ready(Ok(())) + } + fn call(&mut self, req: http::Request) -> Self::Future { + let inner = self.inner.clone(); + match req.uri().path() { + "/mirror.v1.Mirror/Register" => { + #[allow(non_camel_case_types)] + struct RegisterSvc(pub Arc); + impl< + T: Mirror, + > tonic::server::UnaryService< + super::super::super::payload::v1::mirror::Targets, + > for RegisterSvc { + type Response = super::super::super::payload::v1::mirror::Targets; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request< + super::super::super::payload::v1::mirror::Targets, + >, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { (*inner).register(request).await }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = RegisterSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + _ => { + Box::pin(async move { + Ok( + http::Response::builder() + .status(200) + .header("grpc-status", "12") + .header("content-type", "application/grpc") + .body(empty_body()) + .unwrap(), + ) + }) + } + } + } + } + impl Clone for MirrorServer { + fn clone(&self) -> Self { + let inner = self.inner.clone(); + Self { + inner, + accept_compression_encodings: self.accept_compression_encodings, + send_compression_encodings: self.send_compression_encodings, + max_decoding_message_size: self.max_decoding_message_size, + max_encoding_message_size: self.max_encoding_message_size, + } + } + } + impl Clone for _Inner { + fn clone(&self) -> Self { + Self(Arc::clone(&self.0)) + } + } + impl std::fmt::Debug for _Inner { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{:?}", self.0) + } + } + impl tonic::server::NamedService for MirrorServer { + const NAME: &'static str = "mirror.v1.Mirror"; + } +} diff --git a/rust/libs/proto/src/payload.v1.rs b/rust/libs/proto/src/payload.v1.rs index 3e5c7bfde6..675a07e260 100644 --- a/rust/libs/proto/src/payload.v1.rs +++ b/rust/libs/proto/src/payload.v1.rs @@ -99,11 +99,11 @@ pub mod search { #[prost(int64, tag="5")] pub timeout: i64, /// Ingress filter configurations. - #[prost(message, optional, tag="6")] - pub ingress_filters: ::core::option::Option, + #[prost(message, repeated, tag="6")] + pub ingress_filters: ::prost::alloc::vec::Vec, /// Egress filter configurations. - #[prost(message, optional, tag="7")] - pub egress_filters: ::core::option::Option, + #[prost(message, repeated, tag="7")] + pub egress_filters: ::prost::alloc::vec::Vec, /// Minimum number of result to be returned. #[prost(uint32, tag="8")] pub min_num: u32, @@ -205,13 +205,62 @@ pub mod filter { #[prost(uint32, tag="2")] pub port: u32, } + /// Represent the filter query. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct Query { + /// The raw query string. + #[prost(string, tag="1")] + pub query: ::prost::alloc::string::String, + } /// Represent filter configuration. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Config { /// Represent the filter target configuration. + #[prost(message, optional, tag="1")] + pub target: ::core::option::Option, + /// The target query. + #[prost(message, optional, tag="2")] + pub query: ::core::option::Option, + } + /// Represent the ID and distance pair. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct DistanceRequest { + /// Distance #[prost(message, repeated, tag="1")] - pub targets: ::prost::alloc::vec::Vec, + pub distance: ::prost::alloc::vec::Vec, + /// Query + #[prost(message, optional, tag="2")] + pub query: ::core::option::Option, + } + /// Represent the ID and distance pair. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct DistanceResponse { + /// Distance + #[prost(message, repeated, tag="1")] + pub distance: ::prost::alloc::vec::Vec, + } + /// Represent the ID and vector pair. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct VectorRequest { + /// Vector + #[prost(message, optional, tag="1")] + pub vector: ::core::option::Option, + /// Query + #[prost(message, optional, tag="2")] + pub query: ::core::option::Option, + } + /// Represent the ID and vector pair. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct VectorResponse { + /// Distance + #[prost(message, optional, tag="1")] + pub vector: ::core::option::Option, } } /// Insert related messages. @@ -270,8 +319,8 @@ pub mod insert { #[prost(bool, tag="1")] pub skip_strict_exist_check: bool, /// Filter configurations. - #[prost(message, optional, tag="2")] - pub filters: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub filters: ::prost::alloc::vec::Vec, /// Insert timestamp. #[prost(int64, tag="3")] pub timestamp: i64, @@ -333,8 +382,8 @@ pub mod update { #[prost(bool, tag="1")] pub skip_strict_exist_check: bool, /// Filter configuration. - #[prost(message, optional, tag="2")] - pub filters: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub filters: ::prost::alloc::vec::Vec, /// Update timestamp. #[prost(int64, tag="3")] pub timestamp: i64, @@ -400,8 +449,8 @@ pub mod upsert { #[prost(bool, tag="1")] pub skip_strict_exist_check: bool, /// Filter configuration. - #[prost(message, optional, tag="2")] - pub filters: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub filters: ::prost::alloc::vec::Vec, /// Upsert timestamp. #[prost(int64, tag="3")] pub timestamp: i64, @@ -531,8 +580,8 @@ pub mod object { #[prost(message, optional, tag="1")] pub id: ::core::option::Option, /// Filter configurations. - #[prost(message, optional, tag="2")] - pub filters: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub filters: ::prost::alloc::vec::Vec, } /// Represent the ID and distance pair. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1003,6 +1052,33 @@ pub mod info { pub ip: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, } } +/// Mirror related messages. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Mirror { +} +/// Nested message and enum types in `Mirror`. +pub mod mirror { + /// Represent server information. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct Target { + /// The target hostname. + #[prost(string, tag="1")] + pub host: ::prost::alloc::string::String, + /// The target port. + #[prost(uint32, tag="2")] + pub port: u32, + } + /// Represent the multiple Target message. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct Targets { + /// The multiple target information. + #[prost(message, repeated, tag="1")] + pub targets: ::prost::alloc::vec::Vec, + } +} /// Represent an empty message. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] From 6afac73ff12b9caae2267382b22a21e0d045f647 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 4 Mar 2024 11:54:50 +0900 Subject: [PATCH 21/43] fix: make proto/all format Signed-off-by: hlts2 --- apis/grpc/v1/payload/payload_vtproto.pb.go | 2951 ++++++++++++++------ 1 file changed, 2080 insertions(+), 871 deletions(-) diff --git a/apis/grpc/v1/payload/payload_vtproto.pb.go b/apis/grpc/v1/payload/payload_vtproto.pb.go index 1927bfab2a..711965e165 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -177,10 +177,22 @@ func (m *Search_Config) CloneVT() *Search_Config { r.Radius = m.Radius r.Epsilon = m.Epsilon r.Timeout = m.Timeout - r.IngressFilters = m.IngressFilters.CloneVT() - r.EgressFilters = m.EgressFilters.CloneVT() r.MinNum = m.MinNum r.AggregationAlgorithm = m.AggregationAlgorithm + if rhs := m.IngressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.IngressFilters = tmpContainer + } + if rhs := m.EgressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.EgressFilters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -318,17 +330,53 @@ func (m *Filter_Target) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *Filter_Query) CloneVT() *Filter_Query { + if m == nil { + return (*Filter_Query)(nil) + } + r := new(Filter_Query) + r.Query = m.Query + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Query) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *Filter_Config) CloneVT() *Filter_Config { if m == nil { return (*Filter_Config)(nil) } r := new(Filter_Config) - if rhs := m.Targets; rhs != nil { - tmpContainer := make([]*Filter_Target, len(rhs)) + r.Target = m.Target.CloneVT() + r.Query = m.Query.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Config) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceRequest) CloneVT() *Filter_DistanceRequest { + if m == nil { + return (*Filter_DistanceRequest)(nil) + } + r := new(Filter_DistanceRequest) + r.Query = m.Query.CloneVT() + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } - r.Targets = tmpContainer + r.Distance = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) @@ -337,7 +385,65 @@ func (m *Filter_Config) CloneVT() *Filter_Config { return r } -func (m *Filter_Config) CloneMessageVT() proto.Message { +func (m *Filter_DistanceRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceResponse) CloneVT() *Filter_DistanceResponse { + if m == nil { + return (*Filter_DistanceResponse)(nil) + } + r := new(Filter_DistanceResponse) + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Distance = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_DistanceResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorRequest) CloneVT() *Filter_VectorRequest { + if m == nil { + return (*Filter_VectorRequest)(nil) + } + r := new(Filter_VectorRequest) + r.Vector = m.Vector.CloneVT() + r.Query = m.Query.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorResponse) CloneVT() *Filter_VectorResponse { + if m == nil { + return (*Filter_VectorResponse)(nil) + } + r := new(Filter_VectorResponse) + r.Vector = m.Vector.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorResponse) CloneMessageVT() proto.Message { return m.CloneVT() } @@ -446,8 +552,14 @@ func (m *Insert_Config) CloneVT() *Insert_Config { } r := new(Insert_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -564,9 +676,15 @@ func (m *Update_Config) CloneVT() *Update_Config { } r := new(Update_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp r.DisableBalancedUpdate = m.DisableBalancedUpdate + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -683,9 +801,15 @@ func (m *Upsert_Config) CloneVT() *Upsert_Config { } r := new(Upsert_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp r.DisableBalancedUpdate = m.DisableBalancedUpdate + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -835,7 +959,13 @@ func (m *Object_VectorRequest) CloneVT() *Object_VectorRequest { } r := new(Object_VectorRequest) r.Id = m.Id.CloneVT() - r.Filters = m.Filters.CloneVT() + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -2058,12 +2188,40 @@ func (this *Search_Config) EqualVT(that *Search_Config) bool { if this.Timeout != that.Timeout { return false } - if !this.IngressFilters.EqualVT(that.IngressFilters) { + if len(this.IngressFilters) != len(that.IngressFilters) { return false } - if !this.EgressFilters.EqualVT(that.EgressFilters) { + for i, vx := range this.IngressFilters { + vy := that.IngressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.EgressFilters) != len(that.EgressFilters) { return false } + for i, vx := range this.EgressFilters { + vy := that.EgressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.MinNum != that.MinNum { return false } @@ -2269,34 +2427,152 @@ func (this *Filter_Target) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } +func (this *Filter_Query) EqualVT(that *Filter_Query) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Query != that.Query { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Query) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Query) + if !ok { + return false + } + return this.EqualVT(that) +} func (this *Filter_Config) EqualVT(that *Filter_Config) bool { if this == that { return true } else if this == nil || that == nil { return false } - if len(this.Targets) != len(that.Targets) { + if !this.Target.EqualVT(that.Target) { return false } - for i, vx := range this.Targets { - vy := that.Targets[i] + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Config) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_DistanceRequest) EqualVT(that *Filter_DistanceRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { + return false + } + for i, vx := range this.Distance { + vy := that.Distance[i] if p, q := vx, vy; p != q { if p == nil { - p = &Filter_Target{} + p = &Object_Distance{} } if q == nil { - q = &Filter_Target{} + q = &Object_Distance{} } if !p.EqualVT(q) { return false } } } + if !this.Query.EqualVT(that.Query) { + return false + } return string(this.unknownFields) == string(that.unknownFields) } -func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { - that, ok := thatMsg.(*Filter_Config) +func (this *Filter_DistanceRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_DistanceResponse) EqualVT(that *Filter_DistanceResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { + return false + } + for i, vx := range this.Distance { + vy := that.Distance[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Object_Distance{} + } + if q == nil { + q = &Object_Distance{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_DistanceResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_VectorRequest) EqualVT(that *Filter_VectorRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_VectorResponse) EqualVT(that *Filter_VectorResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorResponse) if !ok { return false } @@ -2440,9 +2716,23 @@ func (this *Insert_Config) EqualVT(that *Insert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2594,9 +2884,23 @@ func (this *Update_Config) EqualVT(that *Update_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2751,9 +3055,23 @@ func (this *Upsert_Config) EqualVT(that *Upsert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2943,15 +3261,29 @@ func (this *Object_VectorRequest) EqualVT(that *Object_VectorRequest) bool { if !this.Id.EqualVT(that.Id) { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } - return string(this.unknownFields) == string(that.unknownFields) -} - -func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { - that, ok := thatMsg.(*Object_VectorRequest) - if !ok { + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Object_VectorRequest) + if !ok { return false } return this.EqualVT(that) @@ -4691,25 +5023,29 @@ func (m *Search_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x40 } - if m.EgressFilters != nil { - size, err := m.EgressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.EgressFilters) > 0 { + for iNdEx := len(m.EgressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.EgressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x3a } - if m.IngressFilters != nil { - size, err := m.IngressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.IngressFilters) > 0 { + for iNdEx := len(m.IngressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.IngressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 } if m.Timeout != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timeout)) @@ -5010,7 +5346,7 @@ func (m *Filter_Target) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Query) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5023,12 +5359,12 @@ func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5040,22 +5376,17 @@ func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Targets) > 0 { - for iNdEx := len(m.Targets) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Targets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } + if len(m.Query) > 0 { + i -= len(m.Query) + copy(dAtA[i:], m.Query) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Query))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Filter) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5068,12 +5399,12 @@ func (m *Filter) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5085,10 +5416,30 @@ func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Target != nil { + size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5101,12 +5452,12 @@ func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5118,8 +5469,8 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5128,20 +5479,22 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5154,12 +5507,12 @@ func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5171,9 +5524,9 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5186,7 +5539,7 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5199,12 +5552,12 @@ func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5216,18 +5569,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Vectorizer != nil { - size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a - } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5236,8 +5579,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i-- dAtA[i] = 0x12 } - if m.Object != nil { - size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5249,52 +5592,7 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5307,12 +5605,12 @@ func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5324,35 +5622,20 @@ func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x12 - } - if m.SkipStrictExistCheck { - i-- - if m.SkipStrictExistCheck { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert) MarshalVT() (dAtA []byte, err error) { +func (m *Filter) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5365,12 +5648,12 @@ func (m *Insert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5385,7 +5668,7 @@ func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5398,12 +5681,12 @@ func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5438,7 +5721,7 @@ func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5451,12 +5734,12 @@ func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5483,7 +5766,7 @@ func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5496,12 +5779,12 @@ func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5546,7 +5829,7 @@ func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5559,12 +5842,12 @@ func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5591,7 +5874,7 @@ func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5604,12 +5887,12 @@ func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5621,30 +5904,22 @@ func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.DisableBalancedUpdate { - i-- - if m.DisableBalancedUpdate { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } if m.Timestamp != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x18 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 } if m.SkipStrictExistCheck { i-- @@ -5659,7 +5934,7 @@ func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update) MarshalVT() (dAtA []byte, err error) { +func (m *Insert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5672,12 +5947,12 @@ func (m *Update) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5692,7 +5967,7 @@ func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5705,12 +5980,12 @@ func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5745,7 +6020,7 @@ func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5758,12 +6033,12 @@ func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5790,7 +6065,7 @@ func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5803,12 +6078,12 @@ func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5853,7 +6128,7 @@ func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5866,12 +6141,12 @@ func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5898,7 +6173,7 @@ func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5911,12 +6186,12 @@ func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5943,15 +6218,17 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 } if m.SkipStrictExistCheck { i-- @@ -5966,7 +6243,7 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert) MarshalVT() (dAtA []byte, err error) { +func (m *Update) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5979,12 +6256,12 @@ func (m *Upsert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5999,7 +6276,7 @@ func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6012,12 +6289,12 @@ func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6039,8 +6316,8 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Id != nil { - size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6052,7 +6329,7 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6065,12 +6342,12 @@ func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6097,7 +6374,7 @@ func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6110,12 +6387,12 @@ func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6127,22 +6404,40 @@ func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Timestamps) > 0 { - for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + if m.Vectorizer != nil { + size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Object != nil { + size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6155,12 +6450,12 @@ func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6172,20 +6467,22 @@ func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Operator != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Operator)) - i-- - dAtA[i] = 0x10 - } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x8 + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6198,12 +6495,12 @@ func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6215,11 +6512,33 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.DisableBalancedUpdate { + i-- + if m.DisableBalancedUpdate { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } if m.Timestamp != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x18 } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } if m.SkipStrictExistCheck { i-- if m.SkipStrictExistCheck { @@ -6233,7 +6552,7 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6246,12 +6565,12 @@ func (m *Remove) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6266,7 +6585,7 @@ func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6279,12 +6598,12 @@ func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6296,8 +6615,8 @@ func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6319,7 +6638,7 @@ func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6332,12 +6651,12 @@ func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6349,23 +6668,22 @@ func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Distance != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) - i-- - dAtA[i] = 0x15 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6378,12 +6696,12 @@ func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamDistance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6395,87 +6713,40 @@ func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Payload.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Timestamps) > 0 { + for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size } return len(dAtA) - i, nil } -func (m *Object_StreamDistance_Distance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_StreamDistance_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Distance != nil { - size, err := m.Distance.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return dAtA[:n], nil } -func (m *Object_StreamDistance_Status) MarshalToVT(dAtA []byte) (int, error) { + +func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamDistance_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Status != nil { - if vtmsg, ok := interface{}(m.Status).(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - } else { - encoded, err := proto.Marshal(m.Status) - if err != nil { - return 0, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Object_ID) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6487,17 +6758,20 @@ func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + if m.Operator != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Operator)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x10 + } + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6510,12 +6784,12 @@ func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_IDs) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6527,19 +6801,25 @@ func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Ids) > 0 { - for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ids[iNdEx]) - copy(dAtA[i:], m.Ids[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ids[iNdEx]))) - i-- - dAtA[i] = 0xa + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if m.SkipStrictExistCheck { + i-- + if m.SkipStrictExistCheck { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { +func (m *Remove) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6552,12 +6832,12 @@ func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6569,32 +6849,10 @@ func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if len(m.Vector) > 0 { - for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { - f1 := math.Float32bits(float32(m.Vector[iNdEx])) - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Vector)*4)) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Object_GetTimestampRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6607,12 +6865,12 @@ func (m *Object_GetTimestampRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_GetTimestampRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_GetTimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6624,6 +6882,18 @@ func (m *Object_GetTimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, e i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } if m.Id != nil { size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { @@ -6637,7 +6907,7 @@ func (m *Object_GetTimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *Object_Timestamp) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6650,12 +6920,12 @@ func (m *Object_Timestamp) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Timestamp) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6667,10 +6937,11 @@ func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + if m.Distance != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x15 } if len(m.Id) > 0 { i -= len(m.Id) @@ -6682,52 +6953,7 @@ func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_Vectors) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Object_Vectors) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_Vectors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.Vectors) > 0 { - for iNdEx := len(m.Vectors) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Vectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6740,12 +6966,12 @@ func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamVector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6769,15 +6995,15 @@ func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_StreamVector_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Distance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if m.Distance != nil { + size, err := m.Distance.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6788,12 +7014,12 @@ func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, e } return len(dAtA) - i, nil } -func (m *Object_StreamVector_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := interface{}(m.Status).(interface { @@ -6819,7 +7045,7 @@ func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, e } return len(dAtA) - i, nil } -func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6832,12 +7058,12 @@ func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_ReshapeVector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_ID) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6849,38 +7075,17 @@ func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Shape) > 0 { - var pksize2 int - for _, num := range m.Shape { - pksize2 += protohelpers.SizeOfVarint(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num1 := range m.Shape { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if len(m.Object) > 0 { - i -= len(m.Object) - copy(dAtA[i:], m.Object) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { +func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6893,12 +7098,12 @@ func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Blob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_IDs) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6910,24 +7115,19 @@ func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Object) > 0 { - i -= len(m.Object) - copy(dAtA[i:], m.Object) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ids[iNdEx]) + copy(dAtA[i:], m.Ids[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ids[iNdEx]))) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6940,12 +7140,12 @@ func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamBlob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Vector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6957,27 +7157,63 @@ func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Payload.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if len(m.Vector) > 0 { + for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { + f1 := math.Float32bits(float32(m.Vector[iNdEx])) + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) } - i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Vector)*4)) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_StreamBlob_Blob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_GetTimestampRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_GetTimestampRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_GetTimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.Blob != nil { - size, err := m.Blob.MarshalToSizedBufferVT(dAtA[:i]) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Id != nil { + size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6988,38 +7224,53 @@ func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error } return len(dAtA) - i, nil } -func (m *Object_StreamBlob_Status) MarshalToVT(dAtA []byte) (int, error) { + +func (m *Object_Timestamp) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_Timestamp) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.Status != nil { - if vtmsg, ok := interface{}(m.Status).(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - } else { - encoded, err := proto.Marshal(m.Status) - if err != nil { - return 0, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) - } + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { + +func (m *Object_Vectors) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7032,12 +7283,12 @@ func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Location) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Vectors) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Vectors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7049,33 +7300,22 @@ func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Ips) > 0 { - for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ips[iNdEx]) - copy(dAtA[i:], m.Ips[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ips[iNdEx]))) + if len(m.Vectors) > 0 { + for iNdEx := len(m.Vectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Vectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa } } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7088,12 +7328,12 @@ func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamLocation) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7117,15 +7357,15 @@ func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_StreamLocation_Location) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Vector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Location != nil { - size, err := m.Location.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -7136,12 +7376,12 @@ func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (in } return len(dAtA) - i, nil } -func (m *Object_StreamLocation_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := interface{}(m.Status).(interface { @@ -7167,7 +7407,7 @@ func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { +func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7180,12 +7420,12 @@ func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Locations) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_ReshapeVector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7197,22 +7437,38 @@ func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Locations) > 0 { - for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Locations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Shape) > 0 { + var pksize2 int + for _, num := range m.Shape { + pksize2 += protohelpers.SizeOfVarint(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range m.Shape { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + dAtA[j1] = uint8(num) + j1++ } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x12 + } + if len(m.Object) > 0 { + i -= len(m.Object) + copy(dAtA[i:], m.Object) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7225,12 +7481,12 @@ func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7242,10 +7498,24 @@ func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Object) > 0 { + i -= len(m.Object) + copy(dAtA[i:], m.Object) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7258,12 +7528,12 @@ func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List_Response) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7287,16 +7557,16 @@ func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_List_Response_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { + if m.Blob != nil { + size, err := m.Blob.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { return 0, err } i -= size @@ -7306,12 +7576,12 @@ func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Object_List_Response_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := interface{}(m.Status).(interface { @@ -7337,7 +7607,7 @@ func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, } return len(dAtA) - i, nil } -func (m *Object_List) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7350,12 +7620,12 @@ func (m *Object_List) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Location) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7367,10 +7637,33 @@ func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Ips) > 0 { + for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ips[iNdEx]) + copy(dAtA[i:], m.Ips[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ips[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Object) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7383,12 +7676,12 @@ func (m *Object) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7400,10 +7693,69 @@ func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if vtmsg, ok := m.Payload.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } return len(dAtA) - i, nil } -func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamLocation_Location) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Location != nil { + size, err := m.Location.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *Object_StreamLocation_Status) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Status != nil { + if vtmsg, ok := interface{}(m.Status).(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + } else { + encoded, err := proto.Marshal(m.Status) + if err != nil { + return 0, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7416,12 +7768,12 @@ func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Control_CreateIndexRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Locations) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7433,15 +7785,22 @@ func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, e i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.PoolSize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PoolSize)) - i-- - dAtA[i] = 0x8 + if len(m.Locations) > 0 { + for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Locations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Control) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7454,12 +7813,12 @@ func (m *Control) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Control) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7474,7 +7833,7 @@ func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7487,12 +7846,12 @@ func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Discoverer_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List_Response) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7504,31 +7863,69 @@ func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Node) > 0 { - i -= len(m.Node) - copy(dAtA[i:], m.Node) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Node))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 + if vtmsg, ok := m.Payload.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + return len(dAtA) - i, nil +} + +func (m *Object_List_Response_Vector) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } +func (m *Object_List_Response_Status) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} -func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Status != nil { + if vtmsg, ok := interface{}(m.Status).(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + } else { + encoded, err := proto.Marshal(m.Status) + if err != nil { + return 0, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *Object_List) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7541,12 +7938,12 @@ func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Discoverer) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7561,7 +7958,7 @@ func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { +func (m *Object) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7574,12 +7971,12 @@ func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_Count) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7591,40 +7988,10 @@ func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Saving { - i-- - if m.Saving { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.Indexing { - i-- - if m.Indexing { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.Uncommitted != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Uncommitted)) - i-- - dAtA[i] = 0x10 - } - if m.Stored != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Stored)) - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } -func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { +func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7637,12 +8004,12 @@ func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_UUID_Committed) MarshalToVT(dAtA []byte) (int, error) { +func (m *Control_CreateIndexRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7654,8 +8021,229 @@ func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, er i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) + if m.PoolSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PoolSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Control) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Control) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Discoverer_Request) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Node) > 0 { + i -= len(m.Node) + copy(dAtA[i:], m.Node) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Node))) + i-- + dAtA[i] = 0x1a + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Discoverer) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Index_Count) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Saving { + i-- + if m.Saving { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Indexing { + i-- + if m.Indexing { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Uncommitted != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Uncommitted)) + i-- + dAtA[i] = 0x10 + } + if m.Stored != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Stored)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Index_UUID_Committed) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) copy(dAtA[i:], m.Uuid) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) i-- @@ -8777,13 +9365,17 @@ func (m *Search_Config) SizeVT() (n int) { if m.Timeout != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timeout)) } - if m.IngressFilters != nil { - l = m.IngressFilters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.IngressFilters) > 0 { + for _, e := range m.IngressFilters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.EgressFilters != nil { - l = m.EgressFilters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.EgressFilters) > 0 { + for _, e := range m.EgressFilters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.MinNum != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.MinNum)) @@ -8901,57 +9493,141 @@ func (m *Filter_Target) SizeVT() (n int) { return n } -func (m *Filter_Config) SizeVT() (n int) { +func (m *Filter_Query) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Targets) > 0 { - for _, e := range m.Targets { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Query) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Filter) SizeVT() (n int) { +func (m *Filter_Config) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.Target != nil { + l = m.Target.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Query != nil { + l = m.Query.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *Insert_Request) SizeVT() (n int) { +func (m *Filter_DistanceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Vector != nil { - l = m.Vector.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Distance) > 0 { + for _, e := range m.Distance { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.Config != nil { - l = m.Config.SizeVT() + if m.Query != nil { + l = m.Query.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Insert_MultiRequest) SizeVT() (n int) { +func (m *Filter_DistanceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Requests) > 0 { + if len(m.Distance) > 0 { + for _, e := range m.Distance { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Filter_VectorRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Query != nil { + l = m.Query.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter_VectorResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *Insert_Request) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Config != nil { + l = m.Config.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Insert_MultiRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { for _, e := range m.Requests { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) @@ -9008,9 +9684,11 @@ func (m *Insert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -9110,9 +9788,11 @@ func (m *Update_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -9215,9 +9895,11 @@ func (m *Upsert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -9341,9 +10023,11 @@ func (m *Object_VectorRequest) SizeVT() (n int) { l = m.Id.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n @@ -11062,10 +11746,8 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.IngressFilters == nil { - m.IngressFilters = &Filter_Config{} - } - if err := m.IngressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.IngressFilters = append(m.IngressFilters, &Filter_Config{}) + if err := m.IngressFilters[len(m.IngressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11083,52 +11765,554 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EgressFilters = append(m.EgressFilters, &Filter_Config{}) + if err := m.EgressFilters[len(m.EgressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinNum", wireType) + } + m.MinNum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinNum |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregationAlgorithm", wireType) + } + m.AggregationAlgorithm = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AggregationAlgorithm |= Search_AggregationAlgorithm(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_Response) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = append(m.Results, &Object_Distance{}) + if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Responses = append(m.Responses, &Search_Response{}) + if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { + if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &Search_Response{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Search_StreamResponse_Response{Response: v} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { + if unmarshal, ok := interface{}(oneof.Status).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { + return err + } + } + } else { + v := &status.Status{} + if unmarshal, ok := interface{}(v).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return err + } + } + m.Payload = &Search_StreamResponse_Status{Status: v} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.EgressFilters == nil { - m.EgressFilters = &Filter_Config{} - } - if err := m.EgressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Host = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinNum", wireType) - } - m.MinNum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinNum |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregationAlgorithm", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) } - m.AggregationAlgorithm = 0 + m.Port = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11138,7 +12322,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AggregationAlgorithm |= Search_AggregationAlgorithm(b&0x7F) << shift + m.Port |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -11165,7 +12349,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_Response) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Query) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11188,15 +12372,15 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Query: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Query: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11224,41 +12408,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = append(m.Results, &Object_Distance{}) - if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Query = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11282,7 +12432,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11305,15 +12455,15 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11340,8 +12490,46 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Responses = append(m.Responses, &Search_Response{}) - if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Target == nil { + m.Target = &Filter_Target{} + } + if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11367,7 +12555,7 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11390,15 +12578,15 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11425,21 +12613,14 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { - if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - v := &Search_Response{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Payload = &Search_StreamResponse_Response{Response: v} + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11466,32 +12647,11 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { - if unmarshal, ok := interface{}(oneof.Status).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { - return err - } - } - } else { - v := &status.Status{} - if unmarshal, ok := interface{}(v).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return err - } - } - m.Payload = &Search_StreamResponse_Status{Status: v} + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -11516,7 +12676,7 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11539,12 +12699,46 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -11567,7 +12761,7 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11590,17 +12784,17 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11610,29 +12804,33 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Host = string(dAtA[iNdEx:postIndex]) + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } - m.Port = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11642,11 +12840,28 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Port |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -11669,7 +12884,7 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11692,15 +12907,15 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11727,8 +12942,10 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Targets = append(m.Targets, &Filter_Target{}) - if err := m.Targets[len(m.Targets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12335,10 +13552,8 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12964,10 +14179,8 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13613,10 +14826,8 @@ func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14349,10 +15560,8 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex From 24239503a56bfab301bea1f191b272664fca279d Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 4 Mar 2024 12:06:41 +0900 Subject: [PATCH 22/43] fix: makge changes to build ci-container Signed-off-by: hlts2 --- .github/workflows/dockers-ci-container-image.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dockers-ci-container-image.yml b/.github/workflows/dockers-ci-container-image.yml index 8a77e749f3..c7c9084813 100644 --- a/.github/workflows/dockers-ci-container-image.yml +++ b/.github/workflows/dockers-ci-container-image.yml @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # + name: "Build docker image: ci-container" on: push: From 952448cf0e1915a836e2e63c933489a90d065600 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 4 Mar 2024 12:07:06 +0900 Subject: [PATCH 23/43] Revert "fix: makge changes to build ci-container" This reverts commit 24239503a56bfab301bea1f191b272664fca279d. --- .github/workflows/dockers-ci-container-image.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dockers-ci-container-image.yml b/.github/workflows/dockers-ci-container-image.yml index c7c9084813..8a77e749f3 100644 --- a/.github/workflows/dockers-ci-container-image.yml +++ b/.github/workflows/dockers-ci-container-image.yml @@ -13,7 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # - name: "Build docker image: ci-container" on: push: From c571363d6b463549c8f8dd68eb0d2f52bc88349b Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 4 Mar 2024 16:27:48 +0900 Subject: [PATCH 24/43] fix: error of ci and add comment about import path Signed-off-by: hlts2 fix: format-diff ci error Signed-off-by: hlts2 --- .../gateway/filter/egress-filter/main.go | 22 ++++---- .../gateway/filter/ingress-filter/main.go | 22 ++++---- example/client/gateway/filter/main.go | 12 ++++- example/client/go.mod | 29 +++++++---- example/client/go.mod.default | 2 + example/client/go.sum | 51 ++++++++++++------- example/client/mirror/main.go | 3 +- 7 files changed, 91 insertions(+), 50 deletions(-) diff --git a/example/client/gateway/filter/egress-filter/main.go b/example/client/gateway/filter/egress-filter/main.go index 3e9e3d3776..03a334b6d9 100644 --- a/example/client/gateway/filter/egress-filter/main.go +++ b/example/client/gateway/filter/egress-filter/main.go @@ -16,13 +16,21 @@ package main import ( "context" "flag" + "net" + "strconv" "github.com/kpango/glg" - "github.com/vdaas/vald/apis/grpc/v1/filter/egress" - "github.com/vdaas/vald/apis/grpc/v1/payload" - "github.com/vdaas/vald/internal/net" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" + + // NOTE: + // The correct approach is to use "github.com/vdaas/vald-client-go/v1/payload" and "github.com/vdaas/vald-client-go/v1/vald" in the "example/client". + // However, the "vald-client-go" module is not available in the filter client example + // because the changes to the filter query have not been released. (current version is v1.7.12) + // Therefore, the root module is used until it is released. + // The import path and go.mod will be changed after release. + "github.com/vdaas/vald/apis/grpc/v1/filter/egress" + "github.com/vdaas/vald/apis/grpc/v1/payload" ) var ( @@ -47,12 +55,8 @@ func init() { func main() { glg.Println("start gRPC Client.") - addr := net.JoinHostPort(egressServerHost, uint16(egressServerPort)) - conn, err := grpc.Dial( - addr, - grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithBlock(), - ) + addr := net.JoinHostPort(egressServerHost, strconv.Itoa(int(egressServerPort))) + conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { glg.Error("Connection failed.") return diff --git a/example/client/gateway/filter/ingress-filter/main.go b/example/client/gateway/filter/ingress-filter/main.go index 6e23e7376a..80a98e6558 100644 --- a/example/client/gateway/filter/ingress-filter/main.go +++ b/example/client/gateway/filter/ingress-filter/main.go @@ -16,13 +16,21 @@ package main import ( "context" "flag" + "net" + "strconv" "github.com/kpango/glg" - "github.com/vdaas/vald/apis/grpc/v1/filter/ingress" - "github.com/vdaas/vald/apis/grpc/v1/payload" - "github.com/vdaas/vald/internal/net" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" + + // NOTE: + // The correct approach is to use "github.com/vdaas/vald-client-go/v1/payload" and "github.com/vdaas/vald-client-go/v1/vald" in the "example/client". + // However, the "vald-client-go" module is not available in the filter client example + // because the changes to the filter query have not been released. (current version is v1.7.12) + // Therefore, the root module is used until it is released. + // The import path and go.mod will be changed after release. + "github.com/vdaas/vald/apis/grpc/v1/filter/ingress" + "github.com/vdaas/vald/apis/grpc/v1/payload" ) var ( @@ -47,12 +55,8 @@ func init() { func main() { glg.Println("start gRPC Client.") - addr := net.JoinHostPort(ingressServerHost, uint16(ingressServerPort)) - conn, err := grpc.Dial( - addr, - grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithBlock(), - ) + addr := net.JoinHostPort(ingressServerHost, strconv.Itoa(int(ingressServerPort))) + conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { glg.Error("Connection failed.") return diff --git a/example/client/gateway/filter/main.go b/example/client/gateway/filter/main.go index 5d8fb574e3..843d7d8324 100644 --- a/example/client/gateway/filter/main.go +++ b/example/client/gateway/filter/main.go @@ -20,9 +20,17 @@ import ( "time" "github.com/kpango/glg" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" + + // NOTE: + // The correct approach is to use "github.com/vdaas/vald-client-go/v1/payload" and "github.com/vdaas/vald-client-go/v1/vald" in the "example/client". + // However, the "vald-client-go" module is not available in the filter client example + // because the changes to the filter query have not been released. (current version is v1.7.12) + // Therefore, the root module is used until it is released. + // The import path and go.mod will be changed after release. "github.com/vdaas/vald/apis/grpc/v1/payload" "github.com/vdaas/vald/apis/grpc/v1/vald" - "google.golang.org/grpc" ) type dataset struct { @@ -67,7 +75,7 @@ func main() { // connect to the Vald cluster ctx := context.Background() - conn, err := grpc.DialContext(ctx, grpcServerAddr, grpc.WithInsecure()) + conn, err := grpc.DialContext(ctx, grpcServerAddr, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { glg.Error(err) return diff --git a/example/client/go.mod b/example/client/go.mod index 3a4a129c3f..effb62334c 100644 --- a/example/client/go.mod +++ b/example/client/go.mod @@ -6,15 +6,17 @@ replace ( github.com/envoyproxy/protoc-gen-validate => github.com/envoyproxy/protoc-gen-validate v1.0.4 github.com/goccy/go-json => github.com/goccy/go-json v0.10.2 github.com/golang/protobuf => github.com/golang/protobuf v1.5.3 + github.com/kpango/gache/v2 => github.com/kpango/gache/v2 v2.0.9 github.com/kpango/glg => github.com/kpango/glg v1.6.15 github.com/pkg/sftp => github.com/pkg/sftp v1.13.6 - golang.org/x/crypto => golang.org/x/crypto v0.19.0 + github.com/vdaas/vald => ../../../vald + golang.org/x/crypto => golang.org/x/crypto v0.20.0 golang.org/x/net => golang.org/x/net v0.21.0 golang.org/x/text => golang.org/x/text v0.14.0 - google.golang.org/genproto => google.golang.org/genproto v0.0.0-20240221002015-b0ce06bbee7c - google.golang.org/genproto/googleapis/api => google.golang.org/genproto/googleapis/api v0.0.0-20240221002015-b0ce06bbee7c - google.golang.org/genproto/googleapis/rpc => google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c - google.golang.org/grpc => google.golang.org/grpc v1.61.1 + google.golang.org/genproto => google.golang.org/genproto v0.0.0-20240228224816-df926f6c8641 + google.golang.org/genproto/googleapis/api => google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 + google.golang.org/genproto/googleapis/rpc => google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 + google.golang.org/grpc => google.golang.org/grpc v1.62.0 google.golang.org/protobuf => google.golang.org/protobuf v1.32.0 gopkg.in/yaml.v2 => gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 => gopkg.in/yaml.v3 v3.0.1 @@ -22,23 +24,28 @@ replace ( require ( github.com/kpango/fuid v0.0.0-20221203053508-503b5ad89aa1 - github.com/kpango/glg v1.6.14 - github.com/vdaas/vald-client-go v1.7.11 + github.com/kpango/glg v1.6.15 + github.com/vdaas/vald v0.0.0-00010101000000-000000000000 + github.com/vdaas/vald-client-go v1.7.12 gonum.org/v1/hdf5 v0.0.0-20210714002203-8c5d23bc6946 google.golang.org/grpc v1.61.1 ) require ( - buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.32.0-20240212200630-3014d81c3a48.1 // indirect + buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.32.0-20240221180331-f05a6f4403ce.1 // indirect github.com/goccy/go-json v0.10.2 // indirect github.com/golang/protobuf v1.5.3 // indirect + github.com/klauspost/cpuid/v2 v2.2.5 // indirect github.com/kpango/fastime v1.1.9 // indirect + github.com/kpango/gache/v2 v2.0.0-00010101000000-000000000000 // indirect github.com/planetscale/vtprotobuf v0.6.0 // indirect - golang.org/x/net v0.20.0 // indirect + github.com/zeebo/xxh3 v1.0.2 // indirect + go.uber.org/multierr v1.11.0 // indirect + go.uber.org/zap v1.26.0 // indirect + golang.org/x/net v0.21.0 // indirect golang.org/x/sys v0.17.0 // indirect golang.org/x/text v0.14.0 // indirect - google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240213162025-012b6fc9bca9 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240228201840-1f18d85a4ec2 // indirect google.golang.org/protobuf v1.32.0 // indirect ) diff --git a/example/client/go.mod.default b/example/client/go.mod.default index 257d184b47..d4b7b5f242 100644 --- a/example/client/go.mod.default +++ b/example/client/go.mod.default @@ -6,6 +6,7 @@ replace ( github.com/envoyproxy/protoc-gen-validate => github.com/envoyproxy/protoc-gen-validate latest github.com/goccy/go-json => github.com/goccy/go-json latest github.com/golang/protobuf => github.com/golang/protobuf latest + github.com/kpango/gache/v2 => github.com/kpango/gache/v2 latest github.com/kpango/glg => github.com/kpango/glg latest github.com/pkg/sftp => github.com/pkg/sftp latest golang.org/x/crypto => golang.org/x/crypto latest @@ -18,4 +19,5 @@ replace ( google.golang.org/protobuf => google.golang.org/protobuf latest gopkg.in/yaml.v2 => gopkg.in/yaml.v2 latest gopkg.in/yaml.v3 => gopkg.in/yaml.v3 latest + github.com/vdaas/vald => ../../../vald ) diff --git a/example/client/go.sum b/example/client/go.sum index d13e2f4547..311e3f58f3 100644 --- a/example/client/go.sum +++ b/example/client/go.sum @@ -1,5 +1,7 @@ -buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.32.0-20240212200630-3014d81c3a48.1 h1:rOe/itdO7+9cWOnKqvpn1K7VmTDwp3vI4juPz6aNQbc= -buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.32.0-20240212200630-3014d81c3a48.1/go.mod h1:tiTMKD8j6Pd/D2WzREoweufjzaJKHZg35f/VGcZ2v3I= +buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.32.0-20240221180331-f05a6f4403ce.1 h1:AmmAwHbvaeOIxDKG2+aTn5C36HjmFIMkrdTp49rp80Q= +buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.32.0-20240221180331-f05a6f4403ce.1/go.mod h1:tiTMKD8j6Pd/D2WzREoweufjzaJKHZg35f/VGcZ2v3I= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= @@ -7,26 +9,39 @@ github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/qbZg= +github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/kpango/fastime v1.1.9 h1:xVQHcqyPt5M69DyFH7g1EPRns1YQNap9d5eLhl/Jy84= github.com/kpango/fastime v1.1.9/go.mod h1:vyD7FnUn08zxY4b/QFBZVG+9EWMYsNl+QF0uE46urD4= github.com/kpango/fuid v0.0.0-20221203053508-503b5ad89aa1 h1:rxyM+7uaZQ35P9fbixdnld/h4AgEhODoubuy6A4nDdk= github.com/kpango/fuid v0.0.0-20221203053508-503b5ad89aa1/go.mod h1:CAYeq6us9NfnRkSz67/xKVIR6/vaY5ZQZRe6IVcaIKg= +github.com/kpango/gache/v2 v2.0.9 h1:iov+hbPaKXDVjAFxmJ52Oso2VZyhcMiUkNlkq+OwylM= +github.com/kpango/gache/v2 v2.0.9/go.mod h1:5AWVWlHau1dwI9Hzf+NZc4rPTwxM3SVwJQgob/OyAjQ= github.com/kpango/glg v1.6.15 h1:nw0xSxpSyrDIWHeb3dvnE08PW+SCbK+aYFETT75IeLA= github.com/kpango/glg v1.6.15/go.mod h1:cmsc7Yeu8AS3wHLmN7bhwENXOpxfq+QoqxCIk2FneRk= github.com/planetscale/vtprotobuf v0.6.0 h1:nBeETjudeJ5ZgBHUz1fVHvbqUKnYOXNhsIEabROxmNA= github.com/planetscale/vtprotobuf v0.6.0/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/vdaas/vald-client-go v1.7.11 h1:3CVTJStzH4DDRZIB/fGh3kuhJggNrdUOaHf+JnbG4zg= -github.com/vdaas/vald-client-go v1.7.11/go.mod h1:4lIIWe+enh6LDIZEqvU/ryzFcfjWH0LCxta3ECSD0I0= -go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= -go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= -go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= -go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/vdaas/vald-client-go v1.7.12 h1:61o1y1rA6ScjGf71dm0fx4sE/zGhM4zzDsM9QFuyEtU= +github.com/vdaas/vald-client-go v1.7.12/go.mod h1:Sz8IsW2V5UYcfi0FVXPBS1KZMrX/KLqjkUQI8WakEbs= +github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= +github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= +github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= +github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= +go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= @@ -34,13 +49,13 @@ golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gonum.org/v1/hdf5 v0.0.0-20210714002203-8c5d23bc6946 h1:vJpL69PeUullhJyKtTjHjENEmZU3BkO4e+fod7nKzgM= gonum.org/v1/hdf5 v0.0.0-20210714002203-8c5d23bc6946/go.mod h1:BQUWDHIAygjdt1HnUPQ0eWqLN2n5FwJycrpYUVUOx2I= -google.golang.org/genproto v0.0.0-20240221002015-b0ce06bbee7c h1:Zmyn5CV/jxzKnF+3d+xzbomACPwLQqVpLTpyXN5uTaQ= -google.golang.org/genproto v0.0.0-20240221002015-b0ce06bbee7c/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= -google.golang.org/genproto/googleapis/api v0.0.0-20240221002015-b0ce06bbee7c h1:9g7erC9qu44ks7UK4gDNlnk4kOxZG707xKm4jVniy6o= -google.golang.org/genproto/googleapis/api v0.0.0-20240221002015-b0ce06bbee7c/go.mod h1:5iCWqnniDlqZHrd3neWVTOwvh/v6s3232omMecelax8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c h1:NUsgEN92SQQqzfA+YtqYNqYmB3DMMYLlIwUZAQFVFbo= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c/go.mod h1:H4O17MA/PE9BsGx3w+a+W2VOLLD1Qf7oJneAoU6WktY= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1:SO1wX9btGFrwj9EzH3ocqfwiPVOxfv4ggAJajzlHA5s= +google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/example/client/mirror/main.go b/example/client/mirror/main.go index 38d586ed64..ab19b15661 100644 --- a/example/client/mirror/main.go +++ b/example/client/mirror/main.go @@ -27,6 +27,7 @@ import ( "github.com/vdaas/vald-client-go/v1/vald" "gonum.org/v1/hdf5" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) const ( @@ -68,7 +69,7 @@ func main() { // Creates Vald clients for connecting to Vald clusters. clients := make([]vald.Client, 0, len(grpcServerAddrs)) for _, addr := range grpcServerAddrs { - conn, err := grpc.DialContext(ctx, addr, grpc.WithInsecure()) + conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { glg.Fatal(err) } From ec0dee5d311ce7bddceb6c23f9847cfd22677b9c Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 4 Mar 2024 16:57:42 +0900 Subject: [PATCH 25/43] fix: make format and reviewdog warning Signed-off-by: hlts2 --- .../client/gateway/filter/egress-filter/main.go | 17 ++++++++--------- .../gateway/filter/ingress-filter/main.go | 17 ++++++++--------- example/client/gateway/filter/main.go | 17 ++++++++--------- internal/config/benchmark.go | 2 +- 4 files changed, 25 insertions(+), 28 deletions(-) diff --git a/example/client/gateway/filter/egress-filter/main.go b/example/client/gateway/filter/egress-filter/main.go index 03a334b6d9..871ec9ac1b 100644 --- a/example/client/gateway/filter/egress-filter/main.go +++ b/example/client/gateway/filter/egress-filter/main.go @@ -14,23 +14,22 @@ package main import ( - "context" - "flag" - "net" - "strconv" - - "github.com/kpango/glg" - "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" - // NOTE: // The correct approach is to use "github.com/vdaas/vald-client-go/v1/payload" and "github.com/vdaas/vald-client-go/v1/vald" in the "example/client". // However, the "vald-client-go" module is not available in the filter client example // because the changes to the filter query have not been released. (current version is v1.7.12) // Therefore, the root module is used until it is released. // The import path and go.mod will be changed after release. + "context" + "flag" + "net" + "strconv" + + "github.com/kpango/glg" "github.com/vdaas/vald/apis/grpc/v1/filter/egress" "github.com/vdaas/vald/apis/grpc/v1/payload" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) var ( diff --git a/example/client/gateway/filter/ingress-filter/main.go b/example/client/gateway/filter/ingress-filter/main.go index 80a98e6558..6989d0a498 100644 --- a/example/client/gateway/filter/ingress-filter/main.go +++ b/example/client/gateway/filter/ingress-filter/main.go @@ -14,23 +14,22 @@ package main import ( - "context" - "flag" - "net" - "strconv" - - "github.com/kpango/glg" - "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" - // NOTE: // The correct approach is to use "github.com/vdaas/vald-client-go/v1/payload" and "github.com/vdaas/vald-client-go/v1/vald" in the "example/client". // However, the "vald-client-go" module is not available in the filter client example // because the changes to the filter query have not been released. (current version is v1.7.12) // Therefore, the root module is used until it is released. // The import path and go.mod will be changed after release. + "context" + "flag" + "net" + "strconv" + + "github.com/kpango/glg" "github.com/vdaas/vald/apis/grpc/v1/filter/ingress" "github.com/vdaas/vald/apis/grpc/v1/payload" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) var ( diff --git a/example/client/gateway/filter/main.go b/example/client/gateway/filter/main.go index 843d7d8324..630e7028fb 100644 --- a/example/client/gateway/filter/main.go +++ b/example/client/gateway/filter/main.go @@ -14,23 +14,22 @@ package main import ( - "context" - "encoding/json" - "flag" - "time" - - "github.com/kpango/glg" - "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" - // NOTE: // The correct approach is to use "github.com/vdaas/vald-client-go/v1/payload" and "github.com/vdaas/vald-client-go/v1/vald" in the "example/client". // However, the "vald-client-go" module is not available in the filter client example // because the changes to the filter query have not been released. (current version is v1.7.12) // Therefore, the root module is used until it is released. // The import path and go.mod will be changed after release. + "context" + "encoding/json" + "flag" + "time" + + "github.com/kpango/glg" "github.com/vdaas/vald/apis/grpc/v1/payload" "github.com/vdaas/vald/apis/grpc/v1/vald" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) type dataset struct { diff --git a/internal/config/benchmark.go b/internal/config/benchmark.go index b7525f1664..f28188eaa7 100644 --- a/internal/config/benchmark.go +++ b/internal/config/benchmark.go @@ -188,7 +188,7 @@ func (cfg *FilterQuery) Bind() *FilterQuery { return cfg } -// FilterConfig defines the desired state of filter config +// FilterConfig defines the desired state of filter config. type FilterConfig struct { Target *FilterTarget `json:"target,omitempty" yaml:"target"` Query *FilterQuery `json:"query,omitempty" yaml:"query"` From 99be6c8db7869aaeb9e0734a88794d93cc5b2186 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Tue, 12 Mar 2024 17:07:53 +0900 Subject: [PATCH 26/43] fix: make proto/all format Signed-off-by: hlts2 --- apis/docs/v1/docs.md | 136 +- apis/grpc/v1/agent/core/agent.pb.go | 2 +- apis/grpc/v1/agent/sidecar/sidecar.pb.go | 2 +- apis/grpc/v1/discoverer/discoverer.pb.go | 2 +- .../grpc/v1/filter/egress/egress_filter.pb.go | 2 +- .../v1/filter/ingress/ingress_filter.pb.go | 2 +- .../grpc/v1/manager/index/index_manager.pb.go | 2 +- apis/grpc/v1/mirror/mirror.pb.go | 2 +- apis/grpc/v1/payload/payload.pb.go | 1089 +++++++++++------ .../v1/rpc/errdetails/error_details.pb.go | 2 +- apis/grpc/v1/vald/filter.pb.go | 2 +- apis/grpc/v1/vald/flush.pb.go | 2 +- apis/grpc/v1/vald/insert.pb.go | 2 +- apis/grpc/v1/vald/object.pb.go | 2 +- apis/grpc/v1/vald/remove.pb.go | 2 +- apis/grpc/v1/vald/search.pb.go | 2 +- apis/grpc/v1/vald/update.pb.go | 2 +- apis/grpc/v1/vald/upsert.pb.go | 2 +- 18 files changed, 844 insertions(+), 413 deletions(-) diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index 75316f51a6..5a0ac3f423 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -13,7 +13,12 @@ - [Empty](#payload-v1-Empty) - [Filter](#payload-v1-Filter) - [Filter.Config](#payload-v1-Filter-Config) + - [Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) + - [Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) + - [Filter.Query](#payload-v1-Filter-Query) - [Filter.Target](#payload-v1-Filter-Target) + - [Filter.VectorRequest](#payload-v1-Filter-VectorRequest) + - [Filter.VectorResponse](#payload-v1-Filter-VectorResponse) - [Flush](#payload-v1-Flush) - [Flush.Request](#payload-v1-Flush-Request) - [Info](#payload-v1-Info) @@ -203,9 +208,41 @@ Filter related messages. Represent filter configuration. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | -------- | ------------------------------------------ | -| targets | [Filter.Target](#payload-v1-Filter-Target) | repeated | Represent the filter target configuration. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ------------------------------------------ | +| target | [Filter.Target](#payload-v1-Filter-Target) | | Represent the filter target configuration. | +| query | [Filter.Query](#payload-v1-Filter-Query) | | The target query. | + + + +### Filter.DistanceRequest + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.DistanceResponse + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | + + + +### Filter.Query + +Represent the filter query. + +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | --------------------- | +| query | [string](#string) | | The raw query string. | @@ -218,6 +255,27 @@ Represent the target filter server. | host | [string](#string) | | The target hostname. | | port | [uint32](#uint32) | | The target port. | + + +### Filter.VectorRequest + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Vector | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.VectorResponse + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Distance | + ### Flush @@ -450,11 +508,11 @@ Insert related messages. Represent insert configurations. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | --------------------------------------------------- | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | -| timestamp | [int64](#int64) | | Insert timestamp. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | --------------------------------------------------- | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | +| timestamp | [int64](#int64) | | Insert timestamp. | @@ -709,10 +767,10 @@ Represent a vector. Represent a request to fetch raw vector. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | ----- | ---------------------------- | -| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | +| Field | Type | Label | Description | +| ------- | ------------------------------------------ | -------- | ---------------------------- | +| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | @@ -795,17 +853,17 @@ Search related messages. Represent search configuration. -| Field | Type | Label | Description | -| --------------------- | ---------------------------------------------------------------------- | ----- | ---------------------------------------- | -| request_id | [string](#string) | | Unique request ID. | -| num | [uint32](#uint32) | | Maximum number of result to be returned. | -| radius | [float](#float) | | Search radius. | -| epsilon | [float](#float) | | Search coefficient. | -| timeout | [int64](#int64) | | Search timeout in nanoseconds. | -| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Ingress filter configurations. | -| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Egress filter configurations. | -| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | -| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | +| Field | Type | Label | Description | +| --------------------- | ---------------------------------------------------------------------- | -------- | ---------------------------------------- | +| request_id | [string](#string) | | Unique request ID. | +| num | [uint32](#uint32) | | Maximum number of result to be returned. | +| radius | [float](#float) | | Search radius. | +| epsilon | [float](#float) | | Search coefficient. | +| timeout | [int64](#int64) | | Search timeout in nanoseconds. | +| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Ingress filter configurations. | +| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Egress filter configurations. | +| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | +| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | @@ -915,12 +973,12 @@ Update related messages Represent the update configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Update timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Update timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -977,12 +1035,12 @@ Upsert related messages. Represent the upsert configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Upsert timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Upsert timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -1121,10 +1179,10 @@ Represent the discoverer service. Represent the egress filter service. -| Method Name | Request Type | Response Type | Description | -| -------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------- | -| FilterDistance | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | Represent the RPC to filter the distance. | -| FilterVector | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to filter the vector. | +| Method Name | Request Type | Response Type | Description | +| -------------- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------- | ----------------------------------------- | +| FilterDistance | [.payload.v1.Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) | [.payload.v1.Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) | Represent the RPC to filter the distance. | +| FilterVector | [.payload.v1.Filter.VectorRequest](#payload-v1-Filter-VectorRequest) | [.payload.v1.Filter.VectorResponse](#payload-v1-Filter-VectorResponse) | Represent the RPC to filter the vector. | diff --git a/apis/grpc/v1/agent/core/agent.pb.go b/apis/grpc/v1/agent/core/agent.pb.go index 3541c8b8f0..aae0dd08bf 100644 --- a/apis/grpc/v1/agent/core/agent.pb.go +++ b/apis/grpc/v1/agent/core/agent.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/agent/core/agent.proto diff --git a/apis/grpc/v1/agent/sidecar/sidecar.pb.go b/apis/grpc/v1/agent/sidecar/sidecar.pb.go index b6b3ad1053..bfa798250a 100644 --- a/apis/grpc/v1/agent/sidecar/sidecar.pb.go +++ b/apis/grpc/v1/agent/sidecar/sidecar.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/agent/sidecar/sidecar.proto diff --git a/apis/grpc/v1/discoverer/discoverer.pb.go b/apis/grpc/v1/discoverer/discoverer.pb.go index fe6cc80593..9669f6bee8 100644 --- a/apis/grpc/v1/discoverer/discoverer.pb.go +++ b/apis/grpc/v1/discoverer/discoverer.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/discoverer/discoverer.proto diff --git a/apis/grpc/v1/filter/egress/egress_filter.pb.go b/apis/grpc/v1/filter/egress/egress_filter.pb.go index f2d0187662..a67401d7e3 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/filter/egress/egress_filter.proto diff --git a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go index ee4a3a302b..98814552ad 100644 --- a/apis/grpc/v1/filter/ingress/ingress_filter.pb.go +++ b/apis/grpc/v1/filter/ingress/ingress_filter.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/filter/ingress/ingress_filter.proto diff --git a/apis/grpc/v1/manager/index/index_manager.pb.go b/apis/grpc/v1/manager/index/index_manager.pb.go index 2ddc40a16b..fd15363c38 100644 --- a/apis/grpc/v1/manager/index/index_manager.pb.go +++ b/apis/grpc/v1/manager/index/index_manager.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/manager/index/index_manager.proto diff --git a/apis/grpc/v1/mirror/mirror.pb.go b/apis/grpc/v1/mirror/mirror.pb.go index 69f1516db7..5337586b5f 100644 --- a/apis/grpc/v1/mirror/mirror.pb.go +++ b/apis/grpc/v1/mirror/mirror.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/mirror/mirror.proto diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index 5d5082bbae..9f136d7387 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/payload/payload.proto @@ -1014,9 +1014,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1090,14 +1090,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1367,6 +1367,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1374,13 +1423,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1393,7 +1444,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1406,12 +1457,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} } -func (x *Filter_Config) GetTargets() []*Filter_Target { +func (x *Filter_Config) GetTarget() *Filter_Target { if x != nil { - return x.Targets + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil +} + +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} +} + +func (x *Filter_VectorResponse) GetVector() *Object_Vector { + if x != nil { + return x.Vector } return nil } @@ -1431,7 +1703,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1444,7 +1716,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1487,7 +1759,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1500,7 +1772,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1540,7 +1812,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1553,7 +1825,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1603,7 +1875,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1616,7 +1888,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1648,7 +1920,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1656,7 +1928,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1669,7 +1941,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1692,7 +1964,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1721,7 +1993,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1734,7 +2006,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1777,7 +2049,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1790,7 +2062,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1830,7 +2102,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1843,7 +2115,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1893,7 +2165,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1906,7 +2178,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1938,7 +2210,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -1949,7 +2221,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1962,7 +2234,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1985,7 +2257,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2021,7 +2293,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2034,7 +2306,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2077,7 +2349,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2090,7 +2362,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2130,7 +2402,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2143,7 +2415,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2193,7 +2465,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2206,7 +2478,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2238,7 +2510,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2249,7 +2521,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2262,7 +2534,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2285,7 +2557,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2321,7 +2593,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2334,7 +2606,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2377,7 +2649,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2390,7 +2662,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2426,7 +2698,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2439,7 +2711,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2477,7 +2749,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2490,7 +2762,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2535,7 +2807,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2548,7 +2820,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2587,7 +2859,7 @@ type Flush_Request struct { func (x *Flush_Request) Reset() { *x = Flush_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2600,7 +2872,7 @@ func (x *Flush_Request) String() string { func (*Flush_Request) ProtoMessage() {} func (x *Flush_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2625,13 +2897,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2644,7 +2916,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2667,7 +2939,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2689,7 +2961,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2702,7 +2974,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2748,7 +3020,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2761,7 +3033,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2828,7 +3100,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2841,7 +3113,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2876,7 +3148,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2889,7 +3161,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2929,7 +3201,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2942,7 +3214,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2992,7 +3264,7 @@ type Object_GetTimestampRequest struct { func (x *Object_GetTimestampRequest) Reset() { *x = Object_GetTimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3005,7 +3277,7 @@ func (x *Object_GetTimestampRequest) String() string { func (*Object_GetTimestampRequest) ProtoMessage() {} func (x *Object_GetTimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3043,7 +3315,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3056,7 +3328,7 @@ func (x *Object_Timestamp) String() string { func (*Object_Timestamp) ProtoMessage() {} func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3098,7 +3370,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3111,7 +3383,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3150,7 +3422,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3163,7 +3435,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3233,7 +3505,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3246,7 +3518,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3291,7 +3563,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3304,7 +3576,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3350,7 +3622,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3363,7 +3635,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3435,7 +3707,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3448,7 +3720,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3501,7 +3773,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3514,7 +3786,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3581,7 +3853,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3594,7 +3866,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3627,7 +3899,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3640,7 +3912,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3665,7 +3937,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3678,7 +3950,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3709,7 +3981,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3722,7 +3994,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3790,7 +4062,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3803,7 +4075,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3843,7 +4115,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3856,7 +4128,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3903,7 +4175,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3916,7 +4188,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3957,7 +4229,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3970,7 +4242,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4058,7 +4330,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4071,7 +4343,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4152,7 +4424,7 @@ type Info_Service struct { func (x *Info_Service) Reset() { *x = Info_Service{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4165,7 +4437,7 @@ func (x *Info_Service) String() string { func (*Info_Service) ProtoMessage() {} func (x *Info_Service) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4238,7 +4510,7 @@ type Info_ServicePort struct { func (x *Info_ServicePort) Reset() { *x = Info_ServicePort{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4251,7 +4523,7 @@ func (x *Info_ServicePort) String() string { func (*Info_ServicePort) ProtoMessage() {} func (x *Info_ServicePort) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4293,7 +4565,7 @@ type Info_Labels struct { func (x *Info_Labels) Reset() { *x = Info_Labels{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4306,7 +4578,7 @@ func (x *Info_Labels) String() string { func (*Info_Labels) ProtoMessage() {} func (x *Info_Labels) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4341,7 +4613,7 @@ type Info_Annotations struct { func (x *Info_Annotations) Reset() { *x = Info_Annotations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4354,7 +4626,7 @@ func (x *Info_Annotations) String() string { func (*Info_Annotations) ProtoMessage() {} func (x *Info_Annotations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4394,7 +4666,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4407,7 +4679,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4461,7 +4733,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4474,7 +4746,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4524,7 +4796,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4537,7 +4809,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4573,7 +4845,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4586,7 +4858,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4622,7 +4894,7 @@ type Info_Services struct { func (x *Info_Services) Reset() { *x = Info_Services{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4635,7 +4907,7 @@ func (x *Info_Services) String() string { func (*Info_Services) ProtoMessage() {} func (x *Info_Services) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4670,7 +4942,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4683,7 +4955,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4725,7 +4997,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4738,7 +5010,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4792,7 +5064,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4805,7 +5077,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4833,7 +5105,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[82] + mi := &file_v1_payload_payload_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4846,7 +5118,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[82] + mi := &file_v1_payload_payload_proto_msgTypes[87] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4881,7 +5153,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[83] + mi := &file_v1_payload_payload_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4894,7 +5166,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[83] + mi := &file_v1_payload_payload_proto_msgTypes[88] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4932,7 +5204,7 @@ type Mirror_Target struct { func (x *Mirror_Target) Reset() { *x = Mirror_Target{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[86] + mi := &file_v1_payload_payload_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4945,7 +5217,7 @@ func (x *Mirror_Target) String() string { func (*Mirror_Target) ProtoMessage() {} func (x *Mirror_Target) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[86] + mi := &file_v1_payload_payload_proto_msgTypes[91] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4988,7 +5260,7 @@ type Mirror_Targets struct { func (x *Mirror_Targets) Reset() { *x = Mirror_Targets{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[87] + mi := &file_v1_payload_payload_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5001,7 +5273,7 @@ func (x *Mirror_Targets) String() string { func (*Mirror_Targets) ProtoMessage() {} func (x *Mirror_Targets) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[87] + mi := &file_v1_payload_payload_proto_msgTypes[92] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5078,12 +5350,12 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x42, @@ -5119,15 +5391,44 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x6e, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x50, - 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0x79, 0x0a, 0x06, - 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x3d, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x07, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, + 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0xc8, 0x04, 0x0a, + 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1d, 0x0a, 0x05, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x6b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x7a, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x1a, 0x4b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x72, + 0x0a, 0x0d, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x1a, 0x43, 0x0a, 0x0e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, @@ -5161,7 +5462,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, @@ -5200,7 +5501,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, @@ -5242,7 +5543,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, @@ -5290,7 +5591,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x15, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xba, 0x48, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, @@ -5522,7 +5823,7 @@ func file_v1_payload_payload_proto_rawDescGZIP() []byte { } var file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 88) +var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 93) var file_v1_payload_payload_proto_goTypes = []interface{}{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -5550,71 +5851,76 @@ var file_v1_payload_payload_proto_goTypes = []interface{}{ (*Search_Responses)(nil), // 23: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 24: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 25: payload.v1.Filter.Target - (*Filter_Config)(nil), // 26: payload.v1.Filter.Config - (*Insert_Request)(nil), // 27: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 28: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 29: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 30: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 31: payload.v1.Insert.Config - (*Update_Request)(nil), // 32: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 33: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 34: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 35: payload.v1.Update.MultiObjectRequest - (*Update_Config)(nil), // 36: payload.v1.Update.Config - (*Upsert_Request)(nil), // 37: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 38: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 39: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 40: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 41: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 42: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 43: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 44: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 45: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 46: payload.v1.Remove.Config - (*Flush_Request)(nil), // 47: payload.v1.Flush.Request - (*Object_VectorRequest)(nil), // 48: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 49: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 50: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 51: payload.v1.Object.ID - (*Object_IDs)(nil), // 52: payload.v1.Object.IDs - (*Object_Vector)(nil), // 53: payload.v1.Object.Vector - (*Object_GetTimestampRequest)(nil), // 54: payload.v1.Object.GetTimestampRequest - (*Object_Timestamp)(nil), // 55: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 56: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 57: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 58: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 59: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 60: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 61: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 62: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 63: payload.v1.Object.Locations - (*Object_List)(nil), // 64: payload.v1.Object.List - (*Object_List_Request)(nil), // 65: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 66: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 67: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 68: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 69: payload.v1.Info.Index - (*Info_Pod)(nil), // 70: payload.v1.Info.Pod - (*Info_Node)(nil), // 71: payload.v1.Info.Node - (*Info_Service)(nil), // 72: payload.v1.Info.Service - (*Info_ServicePort)(nil), // 73: payload.v1.Info.ServicePort - (*Info_Labels)(nil), // 74: payload.v1.Info.Labels - (*Info_Annotations)(nil), // 75: payload.v1.Info.Annotations - (*Info_CPU)(nil), // 76: payload.v1.Info.CPU - (*Info_Memory)(nil), // 77: payload.v1.Info.Memory - (*Info_Pods)(nil), // 78: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 79: payload.v1.Info.Nodes - (*Info_Services)(nil), // 80: payload.v1.Info.Services - (*Info_IPs)(nil), // 81: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 82: payload.v1.Info.Index.Count - (*Info_Index_UUID)(nil), // 83: payload.v1.Info.Index.UUID - (*Info_Index_UUID_Committed)(nil), // 84: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 85: payload.v1.Info.Index.UUID.Uncommitted - nil, // 86: payload.v1.Info.Labels.LabelsEntry - nil, // 87: payload.v1.Info.Annotations.AnnotationsEntry - (*Mirror_Target)(nil), // 88: payload.v1.Mirror.Target - (*Mirror_Targets)(nil), // 89: payload.v1.Mirror.Targets - (*status.Status)(nil), // 90: google.rpc.Status + (*Filter_Query)(nil), // 26: payload.v1.Filter.Query + (*Filter_Config)(nil), // 27: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 28: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 29: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 30: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 31: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 32: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 33: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 34: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 35: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 36: payload.v1.Insert.Config + (*Update_Request)(nil), // 37: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 38: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 39: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 40: payload.v1.Update.MultiObjectRequest + (*Update_Config)(nil), // 41: payload.v1.Update.Config + (*Upsert_Request)(nil), // 42: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 43: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 44: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 45: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 46: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 47: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 48: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 49: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 50: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 51: payload.v1.Remove.Config + (*Flush_Request)(nil), // 52: payload.v1.Flush.Request + (*Object_VectorRequest)(nil), // 53: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 54: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 55: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 56: payload.v1.Object.ID + (*Object_IDs)(nil), // 57: payload.v1.Object.IDs + (*Object_Vector)(nil), // 58: payload.v1.Object.Vector + (*Object_GetTimestampRequest)(nil), // 59: payload.v1.Object.GetTimestampRequest + (*Object_Timestamp)(nil), // 60: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 61: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 62: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 63: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 64: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 65: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 66: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 67: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 68: payload.v1.Object.Locations + (*Object_List)(nil), // 69: payload.v1.Object.List + (*Object_List_Request)(nil), // 70: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 71: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 72: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 73: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 74: payload.v1.Info.Index + (*Info_Pod)(nil), // 75: payload.v1.Info.Pod + (*Info_Node)(nil), // 76: payload.v1.Info.Node + (*Info_Service)(nil), // 77: payload.v1.Info.Service + (*Info_ServicePort)(nil), // 78: payload.v1.Info.ServicePort + (*Info_Labels)(nil), // 79: payload.v1.Info.Labels + (*Info_Annotations)(nil), // 80: payload.v1.Info.Annotations + (*Info_CPU)(nil), // 81: payload.v1.Info.CPU + (*Info_Memory)(nil), // 82: payload.v1.Info.Memory + (*Info_Pods)(nil), // 83: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 84: payload.v1.Info.Nodes + (*Info_Services)(nil), // 85: payload.v1.Info.Services + (*Info_IPs)(nil), // 86: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 87: payload.v1.Info.Index.Count + (*Info_Index_UUID)(nil), // 88: payload.v1.Info.Index.UUID + (*Info_Index_UUID_Committed)(nil), // 89: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 90: payload.v1.Info.Index.UUID.Uncommitted + nil, // 91: payload.v1.Info.Labels.LabelsEntry + nil, // 92: payload.v1.Info.Annotations.AnnotationsEntry + (*Mirror_Target)(nil), // 93: payload.v1.Mirror.Target + (*Mirror_Targets)(nil), // 94: payload.v1.Mirror.Targets + (*status.Status)(nil), // 95: google.rpc.Status } var file_v1_payload_payload_proto_depIdxs = []int32{ 21, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config @@ -5624,78 +5930,85 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 21, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 25, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 19, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 26, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 26, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 27, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 27, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 49, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 54, // 10: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 22, // 11: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 22, // 12: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 90, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 25, // 14: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 53, // 15: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 31, // 16: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 27, // 17: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 59, // 18: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 31, // 19: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 25, // 20: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 29, // 21: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 26, // 22: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 53, // 23: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 36, // 24: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 32, // 25: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 59, // 26: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 36, // 27: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 25, // 28: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 34, // 29: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 26, // 30: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 53, // 31: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 41, // 32: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 37, // 33: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 59, // 34: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 41, // 35: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 25, // 36: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 39, // 37: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 26, // 38: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 51, // 39: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 46, // 40: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 42, // 41: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 45, // 42: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 43: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 51, // 44: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 26, // 45: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 49, // 46: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 90, // 47: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 51, // 48: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID - 53, // 49: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 53, // 50: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 90, // 51: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 59, // 52: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 90, // 53: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 61, // 54: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 90, // 55: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 61, // 56: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 53, // 57: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 90, // 58: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 76, // 59: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 77, // 60: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 71, // 61: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 76, // 62: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 77, // 63: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 78, // 64: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 73, // 65: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort - 74, // 66: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels - 75, // 67: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations - 86, // 68: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry - 87, // 69: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry - 70, // 70: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 71, // 71: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 72, // 72: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service - 88, // 73: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target - 74, // [74:74] is the sub-list for method output_type - 74, // [74:74] is the sub-list for method input_type - 74, // [74:74] is the sub-list for extension type_name - 74, // [74:74] is the sub-list for extension extendee - 0, // [0:74] is the sub-list for field type_name + 95, // 13: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 25, // 14: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 26, // 15: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 54, // 16: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 26, // 17: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 54, // 18: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 58, // 19: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 26, // 20: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 58, // 21: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 58, // 22: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 36, // 23: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 32, // 24: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 64, // 25: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 36, // 26: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 25, // 27: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 34, // 28: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 27, // 29: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 58, // 30: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 41, // 31: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 37, // 32: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 64, // 33: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 41, // 34: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 25, // 35: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 39, // 36: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 27, // 37: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 58, // 38: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 46, // 39: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 42, // 40: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 64, // 41: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 46, // 42: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 25, // 43: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 44, // 44: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 27, // 45: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 56, // 46: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 51, // 47: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 47, // 48: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 50, // 49: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 50: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 56, // 51: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 27, // 52: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 54, // 53: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 95, // 54: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 56, // 55: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID + 58, // 56: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 58, // 57: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 95, // 58: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 64, // 59: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 95, // 60: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 66, // 61: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 95, // 62: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 66, // 63: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 58, // 64: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 95, // 65: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 81, // 66: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 82, // 67: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 76, // 68: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 81, // 69: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 82, // 70: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 83, // 71: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 78, // 72: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort + 79, // 73: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels + 80, // 74: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations + 91, // 75: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry + 92, // 76: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry + 75, // 77: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 76, // 78: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 77, // 79: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service + 93, // 80: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target + 81, // [81:81] is the sub-list for method output_type + 81, // [81:81] is the sub-list for method input_type + 81, // [81:81] is the sub-list for extension type_name + 81, // [81:81] is the sub-list for extension extendee + 0, // [0:81] is the sub-list for field type_name } func init() { file_v1_payload_payload_proto_init() } @@ -5993,7 +6306,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -6005,7 +6318,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -6017,7 +6330,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -6029,7 +6342,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -6041,7 +6354,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -6053,7 +6366,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -6065,7 +6378,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -6077,7 +6390,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -6089,7 +6402,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -6101,7 +6414,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -6113,7 +6426,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Config); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -6125,7 +6438,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -6137,7 +6450,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -6149,7 +6462,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -6161,7 +6474,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -6173,7 +6486,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -6185,7 +6498,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -6197,7 +6510,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -6209,7 +6522,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -6221,7 +6534,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -6233,7 +6546,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -6245,7 +6558,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Flush_Request); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -6257,7 +6570,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -6269,7 +6582,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -6281,7 +6594,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -6293,7 +6606,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -6305,7 +6618,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_IDs); i { + switch v := v.(*Flush_Request); i { case 0: return &v.state case 1: @@ -6317,7 +6630,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -6329,7 +6642,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_GetTimestampRequest); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -6341,7 +6654,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Timestamp); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -6353,7 +6666,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -6365,7 +6678,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -6377,7 +6690,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -6389,7 +6702,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_GetTimestampRequest); i { case 0: return &v.state case 1: @@ -6401,7 +6714,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Timestamp); i { case 0: return &v.state case 1: @@ -6413,7 +6726,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -6425,7 +6738,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -6437,7 +6750,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -6449,7 +6762,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -6461,7 +6774,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -6473,7 +6786,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -6485,7 +6798,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -6497,7 +6810,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -6509,7 +6822,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -6521,7 +6834,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -6533,7 +6846,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -6545,7 +6858,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Service); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -6557,7 +6870,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_ServicePort); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -6569,7 +6882,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Labels); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -6581,7 +6894,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Annotations); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -6593,7 +6906,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_CPU); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -6605,7 +6918,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Memory); i { + switch v := v.(*Info_Service); i { case 0: return &v.state case 1: @@ -6617,7 +6930,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_ServicePort); i { case 0: return &v.state case 1: @@ -6629,7 +6942,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Labels); i { case 0: return &v.state case 1: @@ -6641,7 +6954,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Services); i { + switch v := v.(*Info_Annotations); i { case 0: return &v.state case 1: @@ -6653,7 +6966,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -6665,7 +6978,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -6677,7 +6990,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -6689,7 +7002,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Nodes); i { case 0: return &v.state case 1: @@ -6701,7 +7014,31 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Uncommitted); i { + switch v := v.(*Info_Services); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_IPs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_Count); i { case 0: return &v.state case 1: @@ -6713,7 +7050,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Mirror_Target); i { + switch v := v.(*Info_Index_UUID); i { case 0: return &v.state case 1: @@ -6725,6 +7062,42 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Committed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Uncommitted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Mirror_Target); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Mirror_Targets); i { case 0: return &v.state @@ -6741,23 +7114,23 @@ func file_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[48].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[53].OneofWrappers = []interface{}{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[55].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []interface{}{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[58].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[63].OneofWrappers = []interface{}{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[65].OneofWrappers = []interface{}{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[64].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[69].OneofWrappers = []interface{}{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -6767,7 +7140,7 @@ func file_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 88, + NumMessages: 93, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/grpc/v1/rpc/errdetails/error_details.pb.go b/apis/grpc/v1/rpc/errdetails/error_details.pb.go index c1b22e2cbc..b63fb8a1ae 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details.pb.go +++ b/apis/grpc/v1/rpc/errdetails/error_details.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/rpc/errdetails/error_details.proto diff --git a/apis/grpc/v1/vald/filter.pb.go b/apis/grpc/v1/vald/filter.pb.go index 51baa71dbd..18de53f45f 100644 --- a/apis/grpc/v1/vald/filter.pb.go +++ b/apis/grpc/v1/vald/filter.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/vald/filter.proto diff --git a/apis/grpc/v1/vald/flush.pb.go b/apis/grpc/v1/vald/flush.pb.go index 20a8e9ff4f..65002337d2 100644 --- a/apis/grpc/v1/vald/flush.pb.go +++ b/apis/grpc/v1/vald/flush.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/vald/flush.proto diff --git a/apis/grpc/v1/vald/insert.pb.go b/apis/grpc/v1/vald/insert.pb.go index 1523003a54..be1b06d9b2 100644 --- a/apis/grpc/v1/vald/insert.pb.go +++ b/apis/grpc/v1/vald/insert.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/vald/insert.proto diff --git a/apis/grpc/v1/vald/object.pb.go b/apis/grpc/v1/vald/object.pb.go index 16ed2f94cf..7441264c93 100644 --- a/apis/grpc/v1/vald/object.pb.go +++ b/apis/grpc/v1/vald/object.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/vald/object.proto diff --git a/apis/grpc/v1/vald/remove.pb.go b/apis/grpc/v1/vald/remove.pb.go index 21a057dc8a..e173431677 100644 --- a/apis/grpc/v1/vald/remove.pb.go +++ b/apis/grpc/v1/vald/remove.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/vald/remove.proto diff --git a/apis/grpc/v1/vald/search.pb.go b/apis/grpc/v1/vald/search.pb.go index 9ffb9435ce..750b5299d1 100644 --- a/apis/grpc/v1/vald/search.pb.go +++ b/apis/grpc/v1/vald/search.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/vald/search.proto diff --git a/apis/grpc/v1/vald/update.pb.go b/apis/grpc/v1/vald/update.pb.go index 673a078d24..3e758a7ac7 100644 --- a/apis/grpc/v1/vald/update.pb.go +++ b/apis/grpc/v1/vald/update.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/vald/update.proto diff --git a/apis/grpc/v1/vald/upsert.pb.go b/apis/grpc/v1/vald/upsert.pb.go index 8ad5eb4345..115d2a1cc7 100644 --- a/apis/grpc/v1/vald/upsert.pb.go +++ b/apis/grpc/v1/vald/upsert.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 +// protoc-gen-go v1.33.0 // protoc (unknown) // source: v1/vald/upsert.proto From f77297db7f5e6f5d8aff5dee2dfa5cbf323aa398 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 13 May 2024 17:17:49 +0900 Subject: [PATCH 27/43] fix: make proto/all format Signed-off-by: hlts2 --- apis/docs/v1/docs.md | 138 +- .../grpc/v1/filter/egress/egress_filter.pb.go | 60 +- apis/grpc/v1/payload/payload.pb.go | 1089 ++++++--- apis/grpc/v1/payload/payload.pb.json.go | 50 + apis/grpc/v1/payload/payload_vtproto.pb.go | 2145 +++++++++++++---- 5 files changed, 2588 insertions(+), 894 deletions(-) diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index 2a4a50ecb7..98984c4f8b 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -13,7 +13,12 @@ - [Empty](#payload-v1-Empty) - [Filter](#payload-v1-Filter) - [Filter.Config](#payload-v1-Filter-Config) + - [Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) + - [Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) + - [Filter.Query](#payload-v1-Filter-Query) - [Filter.Target](#payload-v1-Filter-Target) + - [Filter.VectorRequest](#payload-v1-Filter-VectorRequest) + - [Filter.VectorResponse](#payload-v1-Filter-VectorResponse) - [Flush](#payload-v1-Flush) - [Flush.Request](#payload-v1-Flush-Request) - [Info](#payload-v1-Info) @@ -203,9 +208,41 @@ Filter related messages. Represent filter configuration. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | -------- | ------------------------------------------ | -| targets | [Filter.Target](#payload-v1-Filter-Target) | repeated | Represent the filter target configuration. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ------------------------------------------ | +| target | [Filter.Target](#payload-v1-Filter-Target) | | Represent the filter target configuration. | +| query | [Filter.Query](#payload-v1-Filter-Query) | | The target query. | + + + +### Filter.DistanceRequest + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.DistanceResponse + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | + + + +### Filter.Query + +Represent the filter query. + +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | --------------------- | +| query | [string](#string) | | The raw query string. | @@ -218,6 +255,27 @@ Represent the target filter server. | host | [string](#string) | | The target hostname. | | port | [uint32](#uint32) | | The target port. | + + +### Filter.VectorRequest + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Vector | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.VectorResponse + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Distance | + ### Flush @@ -450,11 +508,11 @@ Insert related messages. Represent insert configurations. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | --------------------------------------------------- | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | -| timestamp | [int64](#int64) | | Insert timestamp. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | --------------------------------------------------- | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | +| timestamp | [int64](#int64) | | Insert timestamp. | @@ -709,10 +767,10 @@ Represent a vector. Represent a request to fetch raw vector. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | ----- | ---------------------------- | -| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | +| Field | Type | Label | Description | +| ------- | ------------------------------------------ | -------- | ---------------------------- | +| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | @@ -795,18 +853,18 @@ Search related messages. Represent search configuration. -| Field | Type | Label | Description | -| --------------------- | ---------------------------------------------------------------------- | ----- | -------------------------------------------- | -| request_id | [string](#string) | | Unique request ID. | -| num | [uint32](#uint32) | | Maximum number of result to be returned. | -| radius | [float](#float) | | Search radius. | -| epsilon | [float](#float) | | Search coefficient. | -| timeout | [int64](#int64) | | Search timeout in nanoseconds. | -| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Ingress filter configurations. | -| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Egress filter configurations. | -| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | -| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | -| ratio | [google.protobuf.FloatValue](#google-protobuf-FloatValue) | | Search ratio for agent return result number. | +| Field | Type | Label | Description | +| --------------------- | ---------------------------------------------------------------------- | -------- | -------------------------------------------- | +| request_id | [string](#string) | | Unique request ID. | +| num | [uint32](#uint32) | | Maximum number of result to be returned. | +| radius | [float](#float) | | Search radius. | +| epsilon | [float](#float) | | Search coefficient. | +| timeout | [int64](#int64) | | Search timeout in nanoseconds. | +| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Ingress filter configurations. | +| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Egress filter configurations. | +| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | +| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | +| ratio | [google.protobuf.FloatValue](#google-protobuf-FloatValue) | | Search ratio for agent return result number. | @@ -916,12 +974,12 @@ Update related messages Represent the update configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Update timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Update timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -978,12 +1036,12 @@ Upsert related messages. Represent the upsert configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Upsert timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Upsert timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -1122,10 +1180,10 @@ Represent the discoverer service. Represent the egress filter service. -| Method Name | Request Type | Response Type | Description | -| -------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------- | -| FilterDistance | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | Represent the RPC to filter the distance. | -| FilterVector | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to filter the vector. | +| Method Name | Request Type | Response Type | Description | +| -------------- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------- | ----------------------------------------- | +| FilterDistance | [.payload.v1.Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) | [.payload.v1.Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) | Represent the RPC to filter the distance. | +| FilterVector | [.payload.v1.Filter.VectorRequest](#payload-v1-Filter-VectorRequest) | [.payload.v1.Filter.VectorResponse](#payload-v1-Filter-VectorResponse) | Represent the RPC to filter the vector. | diff --git a/apis/grpc/v1/filter/egress/egress_filter.pb.go b/apis/grpc/v1/filter/egress/egress_filter.pb.go index 979b819852..983689c8cf 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -48,39 +48,43 @@ var file_v1_filter_egress_egress_filter_proto_rawDesc = []byte{ 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x32, 0xe0, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x6e, 0x0a, 0x0e, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x2e, - 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x1b, 0x2e, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, - 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, - 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0c, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x19, 0x2e, 0x70, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x42, 0x6b, 0x0a, 0x23, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x64, 0x61, 0x61, 0x73, - 0x2e, 0x76, 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x2e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x10, 0x56, 0x61, 0x6c, 0x64, - 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x30, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x64, 0x61, 0x61, 0x73, - 0x2f, 0x76, 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, - 0x76, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x32, 0xfe, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x7d, 0x0a, 0x0e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, + 0x2a, 0x22, 0x17, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x75, 0x0a, 0x0c, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x20, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x56, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x42, 0x6b, 0x0a, 0x23, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2e, 0x76, + 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x10, 0x56, 0x61, 0x6c, 0x64, 0x45, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2f, 0x76, + 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, + 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_v1_filter_egress_egress_filter_proto_goTypes = []interface{}{ - (*payload.Object_Distance)(nil), // 0: payload.v1.Object.Distance - (*payload.Object_Vector)(nil), // 1: payload.v1.Object.Vector + (*payload.Filter_DistanceRequest)(nil), // 0: payload.v1.Filter.DistanceRequest + (*payload.Filter_VectorRequest)(nil), // 1: payload.v1.Filter.VectorRequest + (*payload.Filter_DistanceResponse)(nil), // 2: payload.v1.Filter.DistanceResponse + (*payload.Filter_VectorResponse)(nil), // 3: payload.v1.Filter.VectorResponse } var file_v1_filter_egress_egress_filter_proto_depIdxs = []int32{ - 0, // 0: filter.egress.v1.Filter.FilterDistance:input_type -> payload.v1.Object.Distance - 1, // 1: filter.egress.v1.Filter.FilterVector:input_type -> payload.v1.Object.Vector - 0, // 2: filter.egress.v1.Filter.FilterDistance:output_type -> payload.v1.Object.Distance - 1, // 3: filter.egress.v1.Filter.FilterVector:output_type -> payload.v1.Object.Vector + 0, // 0: filter.egress.v1.Filter.FilterDistance:input_type -> payload.v1.Filter.DistanceRequest + 1, // 1: filter.egress.v1.Filter.FilterVector:input_type -> payload.v1.Filter.VectorRequest + 2, // 2: filter.egress.v1.Filter.FilterDistance:output_type -> payload.v1.Filter.DistanceResponse + 3, // 3: filter.egress.v1.Filter.FilterVector:output_type -> payload.v1.Filter.VectorResponse 2, // [2:4] is the sub-list for method output_type 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index c68b9dd9e4..19b90ba94d 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -1015,9 +1015,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1093,14 +1093,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1377,6 +1377,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1384,13 +1433,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1403,7 +1454,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1416,12 +1467,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} } -func (x *Filter_Config) GetTargets() []*Filter_Target { +func (x *Filter_Config) GetTarget() *Filter_Target { if x != nil { - return x.Targets + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil +} + +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} +} + +func (x *Filter_VectorResponse) GetVector() *Object_Vector { + if x != nil { + return x.Vector } return nil } @@ -1441,7 +1713,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1454,7 +1726,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1497,7 +1769,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1510,7 +1782,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1550,7 +1822,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1563,7 +1835,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1613,7 +1885,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1626,7 +1898,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1658,7 +1930,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1666,7 +1938,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1679,7 +1951,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1702,7 +1974,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1731,7 +2003,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1744,7 +2016,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1787,7 +2059,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1800,7 +2072,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1840,7 +2112,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1853,7 +2125,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1903,7 +2175,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1916,7 +2188,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1948,7 +2220,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -1959,7 +2231,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1972,7 +2244,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1995,7 +2267,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2031,7 +2303,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2044,7 +2316,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2087,7 +2359,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2100,7 +2372,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2140,7 +2412,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2153,7 +2425,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2203,7 +2475,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2216,7 +2488,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2248,7 +2520,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2259,7 +2531,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2272,7 +2544,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2295,7 +2567,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2331,7 +2603,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2344,7 +2616,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2387,7 +2659,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2400,7 +2672,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2436,7 +2708,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2449,7 +2721,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2487,7 +2759,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2500,7 +2772,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2545,7 +2817,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2558,7 +2830,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2597,7 +2869,7 @@ type Flush_Request struct { func (x *Flush_Request) Reset() { *x = Flush_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2610,7 +2882,7 @@ func (x *Flush_Request) String() string { func (*Flush_Request) ProtoMessage() {} func (x *Flush_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2635,13 +2907,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2654,7 +2926,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2677,7 +2949,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2699,7 +2971,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2712,7 +2984,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2758,7 +3030,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2771,7 +3043,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2838,7 +3110,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2851,7 +3123,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2886,7 +3158,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2899,7 +3171,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2939,7 +3211,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2952,7 +3224,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3002,7 +3274,7 @@ type Object_GetTimestampRequest struct { func (x *Object_GetTimestampRequest) Reset() { *x = Object_GetTimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3015,7 +3287,7 @@ func (x *Object_GetTimestampRequest) String() string { func (*Object_GetTimestampRequest) ProtoMessage() {} func (x *Object_GetTimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3053,7 +3325,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3066,7 +3338,7 @@ func (x *Object_Timestamp) String() string { func (*Object_Timestamp) ProtoMessage() {} func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3108,7 +3380,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3121,7 +3393,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3160,7 +3432,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3173,7 +3445,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3243,7 +3515,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3256,7 +3528,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3301,7 +3573,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3314,7 +3586,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3360,7 +3632,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3373,7 +3645,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3445,7 +3717,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3458,7 +3730,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3511,7 +3783,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3524,7 +3796,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3591,7 +3863,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3604,7 +3876,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3637,7 +3909,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3650,7 +3922,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3675,7 +3947,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3688,7 +3960,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3719,7 +3991,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3732,7 +4004,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3800,7 +4072,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3813,7 +4085,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3853,7 +4125,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3866,7 +4138,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3913,7 +4185,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3926,7 +4198,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3967,7 +4239,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3980,7 +4252,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4068,7 +4340,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4081,7 +4353,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4162,7 +4434,7 @@ type Info_Service struct { func (x *Info_Service) Reset() { *x = Info_Service{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4175,7 +4447,7 @@ func (x *Info_Service) String() string { func (*Info_Service) ProtoMessage() {} func (x *Info_Service) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4248,7 +4520,7 @@ type Info_ServicePort struct { func (x *Info_ServicePort) Reset() { *x = Info_ServicePort{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4261,7 +4533,7 @@ func (x *Info_ServicePort) String() string { func (*Info_ServicePort) ProtoMessage() {} func (x *Info_ServicePort) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4303,7 +4575,7 @@ type Info_Labels struct { func (x *Info_Labels) Reset() { *x = Info_Labels{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4316,7 +4588,7 @@ func (x *Info_Labels) String() string { func (*Info_Labels) ProtoMessage() {} func (x *Info_Labels) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4351,7 +4623,7 @@ type Info_Annotations struct { func (x *Info_Annotations) Reset() { *x = Info_Annotations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4364,7 +4636,7 @@ func (x *Info_Annotations) String() string { func (*Info_Annotations) ProtoMessage() {} func (x *Info_Annotations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4404,7 +4676,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4417,7 +4689,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4471,7 +4743,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4484,7 +4756,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4534,7 +4806,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4547,7 +4819,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4583,7 +4855,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4596,7 +4868,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4632,7 +4904,7 @@ type Info_Services struct { func (x *Info_Services) Reset() { *x = Info_Services{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4645,7 +4917,7 @@ func (x *Info_Services) String() string { func (*Info_Services) ProtoMessage() {} func (x *Info_Services) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4680,7 +4952,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4693,7 +4965,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4735,7 +5007,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4748,7 +5020,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4802,7 +5074,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4815,7 +5087,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4843,7 +5115,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[82] + mi := &file_v1_payload_payload_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4856,7 +5128,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[82] + mi := &file_v1_payload_payload_proto_msgTypes[87] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4891,7 +5163,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[83] + mi := &file_v1_payload_payload_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4904,7 +5176,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[83] + mi := &file_v1_payload_payload_proto_msgTypes[88] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4942,7 +5214,7 @@ type Mirror_Target struct { func (x *Mirror_Target) Reset() { *x = Mirror_Target{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[86] + mi := &file_v1_payload_payload_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4955,7 +5227,7 @@ func (x *Mirror_Target) String() string { func (*Mirror_Target) ProtoMessage() {} func (x *Mirror_Target) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[86] + mi := &file_v1_payload_payload_proto_msgTypes[91] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4998,7 +5270,7 @@ type Mirror_Targets struct { func (x *Mirror_Targets) Reset() { *x = Mirror_Targets{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[87] + mi := &file_v1_payload_payload_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5011,7 +5283,7 @@ func (x *Mirror_Targets) String() string { func (*Mirror_Targets) ProtoMessage() {} func (x *Mirror_Targets) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[87] + mi := &file_v1_payload_payload_proto_msgTypes[92] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5090,12 +5362,12 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x42, @@ -5135,14 +5407,43 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, - 0x79, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x3d, 0x0a, 0x06, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, + 0xc8, 0x04, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1d, 0x0a, 0x05, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x6b, 0x0a, 0x06, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x7a, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x64, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x1a, 0x4b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x1a, 0x72, 0x0a, 0x0d, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x43, 0x0a, 0x0e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, @@ -5176,7 +5477,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x5f, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, - 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, @@ -5215,7 +5516,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, @@ -5257,7 +5558,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, @@ -5305,7 +5606,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xba, 0x48, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, @@ -5538,7 +5839,7 @@ func file_v1_payload_payload_proto_rawDescGZIP() []byte { } var file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 88) +var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 93) var file_v1_payload_payload_proto_goTypes = []interface{}{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -5566,72 +5867,77 @@ var file_v1_payload_payload_proto_goTypes = []interface{}{ (*Search_Responses)(nil), // 23: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 24: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 25: payload.v1.Filter.Target - (*Filter_Config)(nil), // 26: payload.v1.Filter.Config - (*Insert_Request)(nil), // 27: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 28: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 29: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 30: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 31: payload.v1.Insert.Config - (*Update_Request)(nil), // 32: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 33: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 34: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 35: payload.v1.Update.MultiObjectRequest - (*Update_Config)(nil), // 36: payload.v1.Update.Config - (*Upsert_Request)(nil), // 37: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 38: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 39: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 40: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 41: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 42: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 43: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 44: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 45: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 46: payload.v1.Remove.Config - (*Flush_Request)(nil), // 47: payload.v1.Flush.Request - (*Object_VectorRequest)(nil), // 48: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 49: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 50: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 51: payload.v1.Object.ID - (*Object_IDs)(nil), // 52: payload.v1.Object.IDs - (*Object_Vector)(nil), // 53: payload.v1.Object.Vector - (*Object_GetTimestampRequest)(nil), // 54: payload.v1.Object.GetTimestampRequest - (*Object_Timestamp)(nil), // 55: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 56: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 57: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 58: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 59: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 60: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 61: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 62: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 63: payload.v1.Object.Locations - (*Object_List)(nil), // 64: payload.v1.Object.List - (*Object_List_Request)(nil), // 65: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 66: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 67: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 68: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 69: payload.v1.Info.Index - (*Info_Pod)(nil), // 70: payload.v1.Info.Pod - (*Info_Node)(nil), // 71: payload.v1.Info.Node - (*Info_Service)(nil), // 72: payload.v1.Info.Service - (*Info_ServicePort)(nil), // 73: payload.v1.Info.ServicePort - (*Info_Labels)(nil), // 74: payload.v1.Info.Labels - (*Info_Annotations)(nil), // 75: payload.v1.Info.Annotations - (*Info_CPU)(nil), // 76: payload.v1.Info.CPU - (*Info_Memory)(nil), // 77: payload.v1.Info.Memory - (*Info_Pods)(nil), // 78: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 79: payload.v1.Info.Nodes - (*Info_Services)(nil), // 80: payload.v1.Info.Services - (*Info_IPs)(nil), // 81: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 82: payload.v1.Info.Index.Count - (*Info_Index_UUID)(nil), // 83: payload.v1.Info.Index.UUID - (*Info_Index_UUID_Committed)(nil), // 84: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 85: payload.v1.Info.Index.UUID.Uncommitted - nil, // 86: payload.v1.Info.Labels.LabelsEntry - nil, // 87: payload.v1.Info.Annotations.AnnotationsEntry - (*Mirror_Target)(nil), // 88: payload.v1.Mirror.Target - (*Mirror_Targets)(nil), // 89: payload.v1.Mirror.Targets - (*wrapperspb.FloatValue)(nil), // 90: google.protobuf.FloatValue - (*status.Status)(nil), // 91: google.rpc.Status + (*Filter_Query)(nil), // 26: payload.v1.Filter.Query + (*Filter_Config)(nil), // 27: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 28: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 29: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 30: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 31: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 32: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 33: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 34: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 35: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 36: payload.v1.Insert.Config + (*Update_Request)(nil), // 37: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 38: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 39: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 40: payload.v1.Update.MultiObjectRequest + (*Update_Config)(nil), // 41: payload.v1.Update.Config + (*Upsert_Request)(nil), // 42: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 43: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 44: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 45: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 46: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 47: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 48: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 49: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 50: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 51: payload.v1.Remove.Config + (*Flush_Request)(nil), // 52: payload.v1.Flush.Request + (*Object_VectorRequest)(nil), // 53: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 54: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 55: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 56: payload.v1.Object.ID + (*Object_IDs)(nil), // 57: payload.v1.Object.IDs + (*Object_Vector)(nil), // 58: payload.v1.Object.Vector + (*Object_GetTimestampRequest)(nil), // 59: payload.v1.Object.GetTimestampRequest + (*Object_Timestamp)(nil), // 60: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 61: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 62: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 63: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 64: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 65: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 66: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 67: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 68: payload.v1.Object.Locations + (*Object_List)(nil), // 69: payload.v1.Object.List + (*Object_List_Request)(nil), // 70: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 71: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 72: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 73: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 74: payload.v1.Info.Index + (*Info_Pod)(nil), // 75: payload.v1.Info.Pod + (*Info_Node)(nil), // 76: payload.v1.Info.Node + (*Info_Service)(nil), // 77: payload.v1.Info.Service + (*Info_ServicePort)(nil), // 78: payload.v1.Info.ServicePort + (*Info_Labels)(nil), // 79: payload.v1.Info.Labels + (*Info_Annotations)(nil), // 80: payload.v1.Info.Annotations + (*Info_CPU)(nil), // 81: payload.v1.Info.CPU + (*Info_Memory)(nil), // 82: payload.v1.Info.Memory + (*Info_Pods)(nil), // 83: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 84: payload.v1.Info.Nodes + (*Info_Services)(nil), // 85: payload.v1.Info.Services + (*Info_IPs)(nil), // 86: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 87: payload.v1.Info.Index.Count + (*Info_Index_UUID)(nil), // 88: payload.v1.Info.Index.UUID + (*Info_Index_UUID_Committed)(nil), // 89: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 90: payload.v1.Info.Index.UUID.Uncommitted + nil, // 91: payload.v1.Info.Labels.LabelsEntry + nil, // 92: payload.v1.Info.Annotations.AnnotationsEntry + (*Mirror_Target)(nil), // 93: payload.v1.Mirror.Target + (*Mirror_Targets)(nil), // 94: payload.v1.Mirror.Targets + (*wrapperspb.FloatValue)(nil), // 95: google.protobuf.FloatValue + (*status.Status)(nil), // 96: google.rpc.Status } var file_v1_payload_payload_proto_depIdxs = []int32{ 21, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config @@ -5641,79 +5947,86 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 21, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 25, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 19, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 26, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 26, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 27, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 27, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 90, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue - 49, // 11: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 95, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue + 54, // 11: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 22, // 12: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 22, // 13: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 91, // 14: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 25, // 15: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 53, // 16: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 31, // 17: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 27, // 18: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 59, // 19: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 31, // 20: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 25, // 21: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 29, // 22: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 26, // 23: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 53, // 24: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 36, // 25: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 32, // 26: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 59, // 27: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 36, // 28: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 25, // 29: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 34, // 30: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 26, // 31: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 53, // 32: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 41, // 33: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 37, // 34: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 59, // 35: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 41, // 36: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 25, // 37: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 39, // 38: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 26, // 39: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 51, // 40: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 46, // 41: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 42, // 42: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 45, // 43: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 44: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 51, // 45: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 26, // 46: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 49, // 47: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 91, // 48: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 51, // 49: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID - 53, // 50: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 53, // 51: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 91, // 52: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 59, // 53: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 91, // 54: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 61, // 55: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 91, // 56: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 61, // 57: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 53, // 58: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 91, // 59: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 76, // 60: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 77, // 61: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 71, // 62: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 76, // 63: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 77, // 64: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 78, // 65: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 73, // 66: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort - 74, // 67: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels - 75, // 68: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations - 86, // 69: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry - 87, // 70: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry - 70, // 71: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 71, // 72: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 72, // 73: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service - 88, // 74: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target - 75, // [75:75] is the sub-list for method output_type - 75, // [75:75] is the sub-list for method input_type - 75, // [75:75] is the sub-list for extension type_name - 75, // [75:75] is the sub-list for extension extendee - 0, // [0:75] is the sub-list for field type_name + 96, // 14: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 25, // 15: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 26, // 16: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 54, // 17: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 26, // 18: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 54, // 19: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 58, // 20: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 26, // 21: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 58, // 22: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 58, // 23: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 36, // 24: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 32, // 25: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 64, // 26: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 36, // 27: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 25, // 28: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 34, // 29: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 27, // 30: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 58, // 31: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 41, // 32: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 37, // 33: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 64, // 34: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 41, // 35: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 25, // 36: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 39, // 37: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 27, // 38: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 58, // 39: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 46, // 40: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 42, // 41: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 64, // 42: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 46, // 43: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 25, // 44: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 44, // 45: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 27, // 46: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 56, // 47: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 51, // 48: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 47, // 49: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 50, // 50: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 51: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 56, // 52: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 27, // 53: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 54, // 54: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 96, // 55: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 56, // 56: payload.v1.Object.GetTimestampRequest.id:type_name -> payload.v1.Object.ID + 58, // 57: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 58, // 58: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 96, // 59: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 64, // 60: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 96, // 61: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 66, // 62: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 96, // 63: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 66, // 64: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 58, // 65: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 96, // 66: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 81, // 67: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 82, // 68: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 76, // 69: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 81, // 70: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 82, // 71: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 83, // 72: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 78, // 73: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort + 79, // 74: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels + 80, // 75: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations + 91, // 76: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry + 92, // 77: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry + 75, // 78: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 76, // 79: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 77, // 80: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service + 93, // 81: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target + 82, // [82:82] is the sub-list for method output_type + 82, // [82:82] is the sub-list for method input_type + 82, // [82:82] is the sub-list for extension type_name + 82, // [82:82] is the sub-list for extension extendee + 0, // [0:82] is the sub-list for field type_name } func init() { file_v1_payload_payload_proto_init() } @@ -6011,7 +6324,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -6023,7 +6336,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -6035,7 +6348,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -6047,7 +6360,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -6059,7 +6372,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -6071,7 +6384,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -6083,7 +6396,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -6095,7 +6408,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -6107,7 +6420,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -6119,7 +6432,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -6131,7 +6444,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Update_Config); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -6143,7 +6456,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -6155,7 +6468,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -6167,7 +6480,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -6179,7 +6492,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -6191,7 +6504,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -6203,7 +6516,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -6215,7 +6528,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -6227,7 +6540,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -6239,7 +6552,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -6251,7 +6564,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -6263,7 +6576,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Flush_Request); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -6275,7 +6588,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -6287,7 +6600,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -6299,7 +6612,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -6311,7 +6624,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -6323,7 +6636,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_IDs); i { + switch v := v.(*Flush_Request); i { case 0: return &v.state case 1: @@ -6335,7 +6648,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -6347,7 +6660,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_GetTimestampRequest); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -6359,7 +6672,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Timestamp); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -6371,7 +6684,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -6383,7 +6696,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -6395,7 +6708,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -6407,7 +6720,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_GetTimestampRequest); i { case 0: return &v.state case 1: @@ -6419,7 +6732,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Timestamp); i { case 0: return &v.state case 1: @@ -6431,7 +6744,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -6443,7 +6756,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -6455,7 +6768,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -6467,7 +6780,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -6479,7 +6792,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -6491,7 +6804,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -6503,7 +6816,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -6515,7 +6828,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -6527,7 +6840,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -6539,7 +6852,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -6551,7 +6864,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -6563,7 +6876,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Service); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -6575,7 +6888,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_ServicePort); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -6587,7 +6900,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Labels); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -6599,7 +6912,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Annotations); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -6611,7 +6924,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_CPU); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -6623,7 +6936,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Memory); i { + switch v := v.(*Info_Service); i { case 0: return &v.state case 1: @@ -6635,7 +6948,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_ServicePort); i { case 0: return &v.state case 1: @@ -6647,7 +6960,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Labels); i { case 0: return &v.state case 1: @@ -6659,7 +6972,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Services); i { + switch v := v.(*Info_Annotations); i { case 0: return &v.state case 1: @@ -6671,7 +6984,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -6683,7 +6996,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -6695,7 +7008,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -6707,7 +7020,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Nodes); i { case 0: return &v.state case 1: @@ -6719,7 +7032,31 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Info_Index_UUID_Uncommitted); i { + switch v := v.(*Info_Services); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_IPs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_Count); i { case 0: return &v.state case 1: @@ -6731,7 +7068,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Mirror_Target); i { + switch v := v.(*Info_Index_UUID); i { case 0: return &v.state case 1: @@ -6743,6 +7080,42 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Committed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Info_Index_UUID_Uncommitted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Mirror_Target); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Mirror_Targets); i { case 0: return &v.state @@ -6759,23 +7132,23 @@ func file_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[48].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[53].OneofWrappers = []interface{}{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[55].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []interface{}{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[58].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[63].OneofWrappers = []interface{}{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[65].OneofWrappers = []interface{}{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[64].OneofWrappers = []interface{}{ + file_v1_payload_payload_proto_msgTypes[69].OneofWrappers = []interface{}{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -6785,7 +7158,7 @@ func file_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 88, + NumMessages: 93, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/grpc/v1/payload/payload.pb.json.go b/apis/grpc/v1/payload/payload.pb.json.go index cf5d15d4d5..9559a85856 100644 --- a/apis/grpc/v1/payload/payload.pb.json.go +++ b/apis/grpc/v1/payload/payload.pb.json.go @@ -153,6 +153,16 @@ func (msg *Filter_Target) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{}.Unmarshal(b, msg) } +// MarshalJSON implements json.Marshaler +func (msg *Filter_Query) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *Filter_Query) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + // MarshalJSON implements json.Marshaler func (msg *Filter_Config) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{}.Marshal(msg) @@ -163,6 +173,46 @@ func (msg *Filter_Config) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{}.Unmarshal(b, msg) } +// MarshalJSON implements json.Marshaler +func (msg *Filter_DistanceRequest) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *Filter_DistanceRequest) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + +// MarshalJSON implements json.Marshaler +func (msg *Filter_DistanceResponse) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *Filter_DistanceResponse) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + +// MarshalJSON implements json.Marshaler +func (msg *Filter_VectorRequest) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *Filter_VectorRequest) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + +// MarshalJSON implements json.Marshaler +func (msg *Filter_VectorResponse) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *Filter_VectorResponse) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + // MarshalJSON implements json.Marshaler func (msg *Insert) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{}.Marshal(msg) diff --git a/apis/grpc/v1/payload/payload_vtproto.pb.go b/apis/grpc/v1/payload/payload_vtproto.pb.go index 53d8e69ecc..89c8e768ba 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -179,11 +179,23 @@ func (m *Search_Config) CloneVT() *Search_Config { r.Radius = m.Radius r.Epsilon = m.Epsilon r.Timeout = m.Timeout - r.IngressFilters = m.IngressFilters.CloneVT() - r.EgressFilters = m.EgressFilters.CloneVT() r.MinNum = m.MinNum r.AggregationAlgorithm = m.AggregationAlgorithm r.Ratio = (*wrapperspb.FloatValue)((*wrapperspb1.FloatValue)(m.Ratio).CloneVT()) + if rhs := m.IngressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.IngressFilters = tmpContainer + } + if rhs := m.EgressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.EgressFilters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -321,17 +333,53 @@ func (m *Filter_Target) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *Filter_Query) CloneVT() *Filter_Query { + if m == nil { + return (*Filter_Query)(nil) + } + r := new(Filter_Query) + r.Query = m.Query + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Query) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *Filter_Config) CloneVT() *Filter_Config { if m == nil { return (*Filter_Config)(nil) } r := new(Filter_Config) - if rhs := m.Targets; rhs != nil { - tmpContainer := make([]*Filter_Target, len(rhs)) + r.Target = m.Target.CloneVT() + r.Query = m.Query.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Config) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceRequest) CloneVT() *Filter_DistanceRequest { + if m == nil { + return (*Filter_DistanceRequest)(nil) + } + r := new(Filter_DistanceRequest) + r.Query = m.Query.CloneVT() + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } - r.Targets = tmpContainer + r.Distance = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) @@ -340,7 +388,65 @@ func (m *Filter_Config) CloneVT() *Filter_Config { return r } -func (m *Filter_Config) CloneMessageVT() proto.Message { +func (m *Filter_DistanceRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceResponse) CloneVT() *Filter_DistanceResponse { + if m == nil { + return (*Filter_DistanceResponse)(nil) + } + r := new(Filter_DistanceResponse) + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Distance = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_DistanceResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorRequest) CloneVT() *Filter_VectorRequest { + if m == nil { + return (*Filter_VectorRequest)(nil) + } + r := new(Filter_VectorRequest) + r.Vector = m.Vector.CloneVT() + r.Query = m.Query.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorResponse) CloneVT() *Filter_VectorResponse { + if m == nil { + return (*Filter_VectorResponse)(nil) + } + r := new(Filter_VectorResponse) + r.Vector = m.Vector.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorResponse) CloneMessageVT() proto.Message { return m.CloneVT() } @@ -449,8 +555,14 @@ func (m *Insert_Config) CloneVT() *Insert_Config { } r := new(Insert_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -567,9 +679,15 @@ func (m *Update_Config) CloneVT() *Update_Config { } r := new(Update_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp r.DisableBalancedUpdate = m.DisableBalancedUpdate + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -686,9 +804,15 @@ func (m *Upsert_Config) CloneVT() *Upsert_Config { } r := new(Upsert_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp r.DisableBalancedUpdate = m.DisableBalancedUpdate + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -870,7 +994,13 @@ func (m *Object_VectorRequest) CloneVT() *Object_VectorRequest { } r := new(Object_VectorRequest) r.Id = m.Id.CloneVT() - r.Filters = m.Filters.CloneVT() + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -2093,12 +2223,40 @@ func (this *Search_Config) EqualVT(that *Search_Config) bool { if this.Timeout != that.Timeout { return false } - if !this.IngressFilters.EqualVT(that.IngressFilters) { + if len(this.IngressFilters) != len(that.IngressFilters) { return false } - if !this.EgressFilters.EqualVT(that.EgressFilters) { + for i, vx := range this.IngressFilters { + vy := that.IngressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.EgressFilters) != len(that.EgressFilters) { return false } + for i, vx := range this.EgressFilters { + vy := that.EgressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.MinNum != that.MinNum { return false } @@ -2307,34 +2465,152 @@ func (this *Filter_Target) EqualMessageVT(thatMsg proto.Message) bool { } return this.EqualVT(that) } +func (this *Filter_Query) EqualVT(that *Filter_Query) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Query != that.Query { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Query) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Query) + if !ok { + return false + } + return this.EqualVT(that) +} func (this *Filter_Config) EqualVT(that *Filter_Config) bool { if this == that { return true } else if this == nil || that == nil { return false } - if len(this.Targets) != len(that.Targets) { + if !this.Target.EqualVT(that.Target) { return false } - for i, vx := range this.Targets { - vy := that.Targets[i] + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Config) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_DistanceRequest) EqualVT(that *Filter_DistanceRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { + return false + } + for i, vx := range this.Distance { + vy := that.Distance[i] if p, q := vx, vy; p != q { if p == nil { - p = &Filter_Target{} + p = &Object_Distance{} } if q == nil { - q = &Filter_Target{} + q = &Object_Distance{} } if !p.EqualVT(q) { return false } } } + if !this.Query.EqualVT(that.Query) { + return false + } return string(this.unknownFields) == string(that.unknownFields) } -func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { - that, ok := thatMsg.(*Filter_Config) +func (this *Filter_DistanceRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_DistanceResponse) EqualVT(that *Filter_DistanceResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { + return false + } + for i, vx := range this.Distance { + vy := that.Distance[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Object_Distance{} + } + if q == nil { + q = &Object_Distance{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_DistanceResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_VectorRequest) EqualVT(that *Filter_VectorRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Filter_VectorResponse) EqualVT(that *Filter_VectorResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorResponse) if !ok { return false } @@ -2478,9 +2754,23 @@ func (this *Insert_Config) EqualVT(that *Insert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2632,9 +2922,23 @@ func (this *Update_Config) EqualVT(that *Update_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2789,9 +3093,23 @@ func (this *Upsert_Config) EqualVT(that *Upsert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -3013,15 +3331,29 @@ func (this *Object_VectorRequest) EqualVT(that *Object_VectorRequest) bool { if !this.Id.EqualVT(that.Id) { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } - return string(this.unknownFields) == string(that.unknownFields) -} - -func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { - that, ok := thatMsg.(*Object_VectorRequest) - if !ok { + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Object_VectorRequest) + if !ok { return false } return this.EqualVT(that) @@ -4771,25 +5103,29 @@ func (m *Search_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x40 } - if m.EgressFilters != nil { - size, err := m.EgressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.EgressFilters) > 0 { + for iNdEx := len(m.EgressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.EgressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x3a } - if m.IngressFilters != nil { - size, err := m.IngressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.IngressFilters) > 0 { + for iNdEx := len(m.IngressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.IngressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 } if m.Timeout != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timeout)) @@ -5090,7 +5426,7 @@ func (m *Filter_Target) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Query) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5103,12 +5439,12 @@ func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5120,22 +5456,17 @@ func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Targets) > 0 { - for iNdEx := len(m.Targets) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Targets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } + if len(m.Query) > 0 { + i -= len(m.Query) + copy(dAtA[i:], m.Query) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Query))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Filter) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5148,12 +5479,12 @@ func (m *Filter) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5165,10 +5496,30 @@ func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Target != nil { + size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5181,12 +5532,12 @@ func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5198,8 +5549,8 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5208,20 +5559,22 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5234,12 +5587,12 @@ func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5251,9 +5604,9 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5266,7 +5619,7 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5279,12 +5632,12 @@ func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5296,18 +5649,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Vectorizer != nil { - size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a - } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5316,8 +5659,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i-- dAtA[i] = 0x12 } - if m.Object != nil { - size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5329,52 +5672,7 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5387,12 +5685,12 @@ func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5404,35 +5702,20 @@ func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x12 - } - if m.SkipStrictExistCheck { - i-- - if m.SkipStrictExistCheck { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert) MarshalVT() (dAtA []byte, err error) { +func (m *Filter) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5445,12 +5728,12 @@ func (m *Insert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5465,7 +5748,7 @@ func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5478,12 +5761,12 @@ func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5518,7 +5801,7 @@ func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5531,12 +5814,12 @@ func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5563,7 +5846,7 @@ func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5576,12 +5859,12 @@ func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5626,7 +5909,7 @@ func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5639,12 +5922,12 @@ func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5671,7 +5954,7 @@ func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5684,12 +5967,12 @@ func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5701,30 +5984,22 @@ func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.DisableBalancedUpdate { - i-- - if m.DisableBalancedUpdate { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } if m.Timestamp != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x18 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 } if m.SkipStrictExistCheck { i-- @@ -5739,7 +6014,7 @@ func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update) MarshalVT() (dAtA []byte, err error) { +func (m *Insert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5752,12 +6027,12 @@ func (m *Update) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5772,7 +6047,7 @@ func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5785,12 +6060,12 @@ func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5825,7 +6100,7 @@ func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5838,12 +6113,12 @@ func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5870,7 +6145,7 @@ func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5883,12 +6158,12 @@ func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5933,7 +6208,7 @@ func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5946,12 +6221,12 @@ func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5978,7 +6253,7 @@ func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5991,12 +6266,12 @@ func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6023,15 +6298,17 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 } if m.SkipStrictExistCheck { i-- @@ -6046,7 +6323,7 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert) MarshalVT() (dAtA []byte, err error) { +func (m *Update) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6059,12 +6336,12 @@ func (m *Upsert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6079,7 +6356,7 @@ func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6092,12 +6369,12 @@ func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6119,8 +6396,8 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Id != nil { - size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6132,7 +6409,7 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6145,12 +6422,12 @@ func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6177,7 +6454,7 @@ func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6190,12 +6467,12 @@ func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6207,22 +6484,40 @@ func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Timestamps) > 0 { - for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + if m.Vectorizer != nil { + size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Object != nil { + size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6235,12 +6530,12 @@ func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6252,20 +6547,22 @@ func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Operator != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Operator)) - i-- - dAtA[i] = 0x10 - } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x8 + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6278,12 +6575,12 @@ func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6295,11 +6592,33 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.DisableBalancedUpdate { + i-- + if m.DisableBalancedUpdate { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } if m.Timestamp != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x18 } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } if m.SkipStrictExistCheck { i-- if m.SkipStrictExistCheck { @@ -6313,7 +6632,7 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6326,12 +6645,12 @@ func (m *Remove) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6346,7 +6665,7 @@ func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Flush_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6359,12 +6678,12 @@ func (m *Flush_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Flush_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Flush_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6376,10 +6695,30 @@ func (m *Flush_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Id != nil { + size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Flush) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6392,12 +6731,12 @@ func (m *Flush) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Flush) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Flush) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6409,10 +6748,22 @@ func (m *Flush) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } return len(dAtA) - i, nil } -func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6425,12 +6776,12 @@ func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6442,30 +6793,22 @@ func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } - if m.Id != nil { - size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Timestamps) > 0 { + for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6478,12 +6821,12 @@ func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6495,14 +6838,259 @@ func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Distance != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) + if m.Operator != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Operator)) i-- - dAtA[i] = 0x15 + dAtA[i] = 0x10 } - if len(m.Id) > 0 { - i -= len(m.Id) + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if m.SkipStrictExistCheck { + i-- + if m.SkipStrictExistCheck { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Remove) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *Flush_Request) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Flush_Request) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Flush_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *Flush) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Flush) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Flush) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + return len(dAtA) - i, nil +} + +func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.Id != nil { + size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Distance != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) + i-- + dAtA[i] = 0x15 + } + if len(m.Id) > 0 { + i -= len(m.Id) copy(dAtA[i:], m.Id) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) i-- @@ -8923,13 +9511,17 @@ func (m *Search_Config) SizeVT() (n int) { if m.Timeout != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timeout)) } - if m.IngressFilters != nil { - l = m.IngressFilters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.IngressFilters) > 0 { + for _, e := range m.IngressFilters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.EgressFilters != nil { - l = m.EgressFilters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.EgressFilters) > 0 { + for _, e := range m.EgressFilters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.MinNum != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.MinNum)) @@ -9051,14 +9643,66 @@ func (m *Filter_Target) SizeVT() (n int) { return n } -func (m *Filter_Config) SizeVT() (n int) { +func (m *Filter_Query) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Targets) > 0 { - for _, e := range m.Targets { + l = len(m.Query) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter_Config) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Target != nil { + l = m.Target.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Query != nil { + l = m.Query.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter_DistanceRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Distance) > 0 { + for _, e := range m.Distance { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.Query != nil { + l = m.Query.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter_DistanceResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Distance) > 0 { + for _, e := range m.Distance { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -9067,6 +9711,38 @@ func (m *Filter_Config) SizeVT() (n int) { return n } +func (m *Filter_VectorRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Query != nil { + l = m.Query.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter_VectorResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + func (m *Filter) SizeVT() (n int) { if m == nil { return 0 @@ -9158,9 +9834,11 @@ func (m *Insert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -9260,9 +9938,11 @@ func (m *Update_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -9365,9 +10045,11 @@ func (m *Upsert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -9511,9 +10193,11 @@ func (m *Object_VectorRequest) SizeVT() (n int) { l = m.Id.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n @@ -11232,10 +11916,8 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.IngressFilters == nil { - m.IngressFilters = &Filter_Config{} - } - if err := m.IngressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.IngressFilters = append(m.IngressFilters, &Filter_Config{}) + if err := m.IngressFilters[len(m.IngressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11268,10 +11950,8 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.EgressFilters == nil { - m.EgressFilters = &Filter_Config{} - } - if err := m.EgressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.EgressFilters = append(m.EgressFilters, &Filter_Config{}) + if err := m.EgressFilters[len(m.EgressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11315,9 +11995,498 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ratio", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ratio", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ratio == nil { + m.Ratio = &wrapperspb.FloatValue{} + } + if err := (*wrapperspb1.FloatValue)(m.Ratio).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_Response) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Results = append(m.Results, &Object_Distance{}) + if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Responses = append(m.Responses, &Search_Response{}) + if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { + if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &Search_Response{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Search_StreamResponse_Response{Response: v} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { + if unmarshal, ok := interface{}(oneof.Status).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { + return err + } + } + } else { + v := &status.Status{} + if unmarshal, ok := interface{}(v).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return err + } + } + m.Payload = &Search_StreamResponse_Status{Status: v} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Search) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11327,28 +12496,43 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Ratio == nil { - m.Ratio = &wrapperspb.FloatValue{} + m.Host = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) } - if err := (*wrapperspb1.FloatValue)(m.Ratio).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -11371,7 +12555,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_Response) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Query) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11394,15 +12578,15 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Query: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Query: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11430,41 +12614,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = append(m.Results, &Object_Distance{}) - if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Query = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11488,7 +12638,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11511,15 +12661,15 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11546,8 +12696,46 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Responses = append(m.Responses, &Search_Response{}) - if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Target == nil { + m.Target = &Filter_Target{} + } + if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11573,7 +12761,7 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11596,15 +12784,15 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11631,21 +12819,14 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { - if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - v := &Search_Response{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Payload = &Search_StreamResponse_Response{Response: v} + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11672,32 +12853,11 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { - if unmarshal, ok := interface{}(oneof.Status).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { - return err - } - } - } else { - v := &status.Status{} - if unmarshal, ok := interface{}(v).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return err - } - } - m.Payload = &Search_StreamResponse_Status{Status: v} + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -11722,7 +12882,7 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Search) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11745,12 +12905,46 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -11773,7 +12967,7 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11796,17 +12990,17 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11816,29 +13010,33 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Host = string(dAtA[iNdEx:postIndex]) + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } - m.Port = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11848,11 +13046,28 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Port |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -11875,7 +13090,7 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11898,15 +13113,15 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11933,8 +13148,10 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Targets = append(m.Targets, &Filter_Target{}) - if err := m.Targets[len(m.Targets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12541,10 +13758,8 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13170,10 +14385,8 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13819,10 +15032,8 @@ func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14657,10 +15868,8 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex From ffecb7e7308f92aa67d99bda70e21cce7e5e299d Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 13 May 2024 18:04:11 +0900 Subject: [PATCH 28/43] fix: add new line for debug Signed-off-by: hlts2 --- .github/workflows/dockers-ci-container-image.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dockers-ci-container-image.yml b/.github/workflows/dockers-ci-container-image.yml index 8a77e749f3..eccfe3d906 100644 --- a/.github/workflows/dockers-ci-container-image.yml +++ b/.github/workflows/dockers-ci-container-image.yml @@ -54,6 +54,7 @@ on: - "Makefile.d/**" - "versions/GO_VERSION" - "versions/NGT_VERSION" + jobs: build: uses: ./.github/workflows/_docker-image.yaml From 6667cedb34ba6151d8d72a615e2bd45280359956 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 13 May 2024 18:17:54 +0900 Subject: [PATCH 29/43] Revert "fix: add new line for debug" This reverts commit ffecb7e7308f92aa67d99bda70e21cce7e5e299d. --- .github/workflows/dockers-ci-container-image.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dockers-ci-container-image.yml b/.github/workflows/dockers-ci-container-image.yml index eccfe3d906..8a77e749f3 100644 --- a/.github/workflows/dockers-ci-container-image.yml +++ b/.github/workflows/dockers-ci-container-image.yml @@ -54,7 +54,6 @@ on: - "Makefile.d/**" - "versions/GO_VERSION" - "versions/NGT_VERSION" - jobs: build: uses: ./.github/workflows/_docker-image.yaml From a1cbcf056fc9ab1cc838c96564359f5f01e693a9 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 13 May 2024 20:06:59 +0900 Subject: [PATCH 30/43] fix: use glg fatal function Signed-off-by: hlts2 --- example/server/egress-filter/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/server/egress-filter/main.go b/example/server/egress-filter/main.go index c92bdf82b1..a2d3a8d6d7 100644 --- a/example/server/egress-filter/main.go +++ b/example/server/egress-filter/main.go @@ -103,7 +103,7 @@ func (s *myEgressServer) FilterVector(ctx context.Context, in *payload.Filter_Ve func main() { listener, err := net.Listen("tcp", fmt.Sprintf(":%d", egressServerPort)) if err != nil { - panic(err) + glg.Fatal(err) } s := grpc.NewServer() From ca1b7fc494c1b54dac91c45a7d002b14c5d7f1a3 Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Mon, 13 May 2024 21:13:58 +0900 Subject: [PATCH 31/43] Update example/server/egress-filter/main.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Hiroto Funakoshi --- example/server/egress-filter/main.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/example/server/egress-filter/main.go b/example/server/egress-filter/main.go index a2d3a8d6d7..caabed0918 100644 --- a/example/server/egress-filter/main.go +++ b/example/server/egress-filter/main.go @@ -59,7 +59,6 @@ type myEgressServer struct { } func (s *myEgressServer) FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error) { - // Write your own logic glg.Log("filtering vector %#v", in) qCategory, ok := getSplitValue(in.GetQuery().GetQuery(), "=", 1) if !ok { @@ -69,14 +68,12 @@ func (s *myEgressServer) FilterDistance(ctx context.Context, in *payload.Filter_ } filteredDis := []*payload.Object_Distance{} - for _, d := range in.GetDistance() { + distances := in.GetDistance() // Avoid multiple calls to GetDistance + for _, d := range distances { iCategory, ok := getSplitValue(d.GetId(), "_", 1) if !ok { - return &payload.Filter_DistanceResponse{ - Distance: in.GetDistance(), - }, nil + continue // Use continue to reduce nesting } - glg.Infof("qCategory: %v, iCategory: %v", qCategory, iCategory) if qCategory == iCategory { filteredDis = append(filteredDis, d) From 42895ac4cf3a0019f5d056774c10817e6d7dae2b Mon Sep 17 00:00:00 2001 From: Hiroto Funakoshi Date: Mon, 13 May 2024 21:21:20 +0900 Subject: [PATCH 32/43] Update example/client/gateway/filter/main.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Hiroto Funakoshi --- example/client/gateway/filter/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/example/client/gateway/filter/main.go b/example/client/gateway/filter/main.go index 630e7028fb..cc63a9203a 100644 --- a/example/client/gateway/filter/main.go +++ b/example/client/gateway/filter/main.go @@ -48,6 +48,7 @@ var ( ) func init() { + // init initializes the command-line flags with default values for the filter client setup. /** Addr option specifies grpc server address of filter gateway. Default value is `127.0.0.1:8081`. Ingresshost option specifies grpc server host of your ingress filter. Default value is `127.0.0.1`. From ca888dd449a61fa90a50644941e3ee6710222a4d Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 13 May 2024 21:22:25 +0900 Subject: [PATCH 33/43] fix: deleted unnecessary comment and variable Signed-off-by: hlts2 --- example/server/egress-filter/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/example/server/egress-filter/main.go b/example/server/egress-filter/main.go index caabed0918..ec0858bb49 100644 --- a/example/server/egress-filter/main.go +++ b/example/server/egress-filter/main.go @@ -68,11 +68,10 @@ func (s *myEgressServer) FilterDistance(ctx context.Context, in *payload.Filter_ } filteredDis := []*payload.Object_Distance{} - distances := in.GetDistance() // Avoid multiple calls to GetDistance - for _, d := range distances { + for _, d := range in.GetDistance() { iCategory, ok := getSplitValue(d.GetId(), "_", 1) if !ok { - continue // Use continue to reduce nesting + continue } glg.Infof("qCategory: %v, iCategory: %v", qCategory, iCategory) if qCategory == iCategory { From a8dec7e100a924beca4e5edb94563b9d4f1f0fdc Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 13 May 2024 21:24:58 +0900 Subject: [PATCH 34/43] fix: fix coderabbit warning Signed-off-by: hlts2 --- example/server/egress-filter/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/example/server/egress-filter/main.go b/example/server/egress-filter/main.go index ec0858bb49..7c06708a03 100644 --- a/example/server/egress-filter/main.go +++ b/example/server/egress-filter/main.go @@ -36,6 +36,7 @@ var ( ) func init() { + // init initializes the command-line flags with default values for the filter setup. /** Port option specifies grpc server port of your egress filter. Default value is `8083`. Dimension option specifies dimension size of vectors. Default value is `784`. From 0bf1af825315a61364af03cb49597c5ef199dfcd Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 13 May 2024 21:35:53 +0900 Subject: [PATCH 35/43] fix: add query configuration to client-api-confi.md Signed-off-by: hlts2 --- docs/user-guides/client-api-config.md | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/user-guides/client-api-config.md b/docs/user-guides/client-api-config.md index 2683c845d7..08df5218fd 100644 --- a/docs/user-guides/client-api-config.md +++ b/docs/user-guides/client-api-config.md @@ -112,6 +112,12 @@ message Filter { uint32 port = 2; } + // Represent the filter query. + message Query { + // The raw query string. + string query = 1; + } + // Represent filter configuration. message Config { // Represent the filter target configuration. @@ -241,6 +247,12 @@ message Filter { uint32 port = 2; } + // Represent the filter query. + message Query { + // The raw query string. + string query = 1; + } + // Represent filter configuration. message Config { // Represent the filter target configuration. @@ -369,6 +381,12 @@ message Filter { uint32 port = 2; } + // Represent the filter query. + message Query { + // The raw query string. + string query = 1; + } + // Represent filter configuration. message Config { // Represent the filter target configuration. @@ -591,6 +609,12 @@ message Filter { uint32 port = 2; } + // Represent the filter query. + message Query { + // The raw query string. + string query = 1; + } + // Represent filter configuration. message Config { // Represent the filter target configuration. @@ -618,6 +642,12 @@ message Filter { uint32 port = 2; } + // Represent the filter query. + message Query { + // The raw query string. + string query = 1; + } + // Represent filter configuration. message Config { // Represent the filter target configuration. From 799a5f1886fe8093732d8b7b376551cdbb0ced9d Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 10 Jun 2024 17:47:17 +0900 Subject: [PATCH 36/43] fix: add filter configuration to api docs Signed-off-by: hlts2 --- docs/api/insert.md | 36 +++--- docs/api/object.md | 20 ++-- docs/api/search.md | 288 ++++++++++++++++++++++----------------------- docs/api/update.md | 42 +++---- docs/api/upsert.md | 40 +++---- 5 files changed, 213 insertions(+), 213 deletions(-) diff --git a/docs/api/insert.md b/docs/api/insert.md index ef9e2dd43f..e736447b14 100644 --- a/docs/api/insert.md +++ b/docs/api/insert.md @@ -31,7 +31,7 @@ Inset RPC is the method to add a new single vector. message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -53,11 +53,11 @@ Inset RPC is the method to add a new single vector. - Insert.Config - | field | type | label | required | description | - | :---------------------: | :------------ | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | - | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | - | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | - | filters | Filter.Config | | | Configuration for filter. | + | field | type | label | required | description | + | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | + | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | + | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for filter. | - Object.Vector @@ -135,7 +135,7 @@ It's the recommended method to insert a large number of vectors. } message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -157,11 +157,11 @@ It's the recommended method to insert a large number of vectors. - Insert.Config - | field | type | label | required | description | - | :---------------------: | :------------ | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | - | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | - | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | - | filters | Filter.Config | | | Configuration for the filter targets. | + | field | type | label | required | description | + | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | + | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | + | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for filter. | - Object.Vector @@ -266,7 +266,7 @@ Please be careful that the size of the request exceeds the limit. message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -294,11 +294,11 @@ Please be careful that the size of the request exceeds the limit. - Insert.Config - | field | type | label | required | description | - | :---------------------: | :------------ | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | - | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | - | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | - | filters | Filter.Config | | | Configuration for the filter targets. | + | field | type | label | required | description | + | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | + | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | + | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for filter. | - Object.Vector diff --git a/docs/api/object.md b/docs/api/object.md index ca4b0e89c2..95355d4cda 100644 --- a/docs/api/object.md +++ b/docs/api/object.md @@ -95,7 +95,7 @@ GetObject RPC is the method to get the metadata of a vector inserted into the `v message Object { message VectorRequest { ID id = 1 [ (validate.rules).repeated .min_items = 2 ]; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; } message ID { @@ -106,10 +106,10 @@ GetObject RPC is the method to get the metadata of a vector inserted into the `v - Object.VectorRequest - | field | type | label | required | description | - | :-----: | :------------ | :---- | :------: | :------------------------------------------------------------- | - | id | Object.ID | | \* | The ID of a vector. ID should consist of 1 or more characters. | - | filters | Filter.Config | | | Configuration for filter. | + | field | type | label | required | description | + | :-----: | :---------------------------- | :---- | :------: | :------------------------------------------------------------- | + | id | Object.ID | | \* | The ID of a vector. ID should consist of 1 or more characters. | + | filters | repeated(Array[Filter.Config] | | | Configuration for filter. | - Object.ID @@ -176,7 +176,7 @@ Each Upsert request and response are independent. message Object { message VectorRequest { ID id = 1 [ (validate.rules).repeated .min_items = 2 ]; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; } message ID { @@ -187,10 +187,10 @@ Each Upsert request and response are independent. - Object.VectorRequest - | field | type | label | required | description | - | :-----: | :------------ | :---- | :------: | :------------------------------------------------------------- | - | id | Object.ID | | \* | The ID of a vector. ID should consist of 1 or more characters. | - | filters | Filter.Config | | | Configuration for the filter targets. | + | field | type | label | required | description | + | :-----: | :----------------------------- | :---- | :------: | :------------------------------------------------------------- | + | id | Object.ID | | \* | The ID of a vector. ID should consist of 1 or more characters. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for the filter targets. | - Object.ID diff --git a/docs/api/search.md b/docs/api/search.md index dab76e0cec..95707dda72 100644 --- a/docs/api/search.md +++ b/docs/api/search.md @@ -63,8 +63,8 @@ Search RPC is the method to search vector(s) similar to the request vector. float radius = 3; float epsilon = 4; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -88,17 +88,17 @@ Search RPC is the method to search vector(s) similar to the request vector. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | radius | float | | \* | The search radius. | - | epsilon | float | | \* | The search coefficient (default value is `0.1`). | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | radius | float | | \* | The search radius. | + | epsilon | float | | \* | The search coefficient (default value is `0.1`). | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -184,8 +184,8 @@ The vector with the same requested ID should be indexed into the `vald-agent` be float radius = 3; float epsilon = 4; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -209,17 +209,17 @@ The vector with the same requested ID should be indexed into the `vald-agent` be - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | radius | float | | \* | The search radius. | - | epsilon | float | | \* | The search coefficient (default value is `0.1`). | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | radius | float | | \* | The search radius. | + | epsilon | float | | \* | The search coefficient (default value is `0.1`). | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -306,8 +306,8 @@ Each Search request and response are independent. float radius = 3; float epsilon = 4; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -331,17 +331,17 @@ Each Search request and response are independent. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | radius | float | | \* | The search radius. | - | epsilon | float | | \* | The search coefficient (default value is `0.1`). | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | radius | float | | \* | The search radius. | + | epsilon | float | | \* | The search coefficient (default value is `0.1`). | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -442,8 +442,8 @@ Each SearchByID request and response are independent. float radius = 3; float epsilon = 4; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -467,17 +467,17 @@ Each SearchByID request and response are independent. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | radius | float | | \* | The search radius. | - | epsilon | float | | \* | The search coefficient (default value is `0.1`). | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | radius | float | | \* | The search radius. | + | epsilon | float | | \* | The search coefficient (default value is `0.1`). | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -585,8 +585,8 @@ Please be careful that the size of the request exceeds the limit. float radius = 3; float epsilon = 4; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -616,17 +616,17 @@ Please be careful that the size of the request exceeds the limit. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | radius | float | | \* | The search radius. | - | epsilon | float | | \* | The search coefficient (default value is `0.1`). | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | radius | float | | \* | The search radius. | + | epsilon | float | | \* | The search coefficient (default value is `0.1`). | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -731,8 +731,8 @@ Please be careful that the size of the request exceeds the limit. float radius = 3; float epsilon = 4; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -762,17 +762,17 @@ Please be careful that the size of the request exceeds the limit. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | radius | float | | \* | The search radius. | - | epsilon | float | | \* | The search coefficient (default value is `0.1`). | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | radius | float | | \* | The search radius. | + | epsilon | float | | \* | The search coefficient (default value is `0.1`). | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -865,8 +865,8 @@ LinearSearch RPC is the method to linear search vector(s) similar to the request string request_id = 1; uint32 num = 2 [ (validate.rules).uint32.gte = 1 ]; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -890,15 +890,15 @@ LinearSearch RPC is the method to linear search vector(s) similar to the request - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -983,8 +983,8 @@ You will get a `NOT_FOUND` error if the vector isn't stored. string request_id = 1; uint32 num = 2 [ (validate.rules).uint32.gte = 1 ]; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -1008,15 +1008,15 @@ You will get a `NOT_FOUND` error if the vector isn't stored. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -1101,8 +1101,8 @@ Each LinearSearch request and response are independent. string request_id = 1; uint32 num = 2 [ (validate.rules).uint32.gte = 1 ]; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -1126,15 +1126,15 @@ Each LinearSearch request and response are independent. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -1233,8 +1233,8 @@ Each LinearSearchByID request and response are independent. string request_id = 1; uint32 num = 2 [ (validate.rules).uint32.gte = 1 ]; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -1258,15 +1258,15 @@ Each LinearSearchByID request and response are independent. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -1372,8 +1372,8 @@ Please be careful that the size of the request exceeds the limit. string request_id = 1; uint32 num = 2 [ (validate.rules).uint32.gte = 1 ]; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -1403,15 +1403,15 @@ Please be careful that the size of the request exceeds the limit. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output @@ -1514,8 +1514,8 @@ Please be careful that the size of the request exceeds the limit. string request_id = 1; uint32 num = 2 [ (validate.rules).uint32.gte = 1 ]; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8; AggregationAlgorithm aggregation_algorithm = 9; } @@ -1545,15 +1545,15 @@ Please be careful that the size of the request exceeds the limit. - Search.Config - | field | type | label | required | description | - | :-------------------: | :------------------- | :---- | :------: | :---------------------------------------------------------------------------- | - | request_id | string | | | Unique request ID. | - | num | uint32 | | \* | The maximum number of results to be returned. | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | - | ingress_filters | Filter.Config | | | Ingress Filter configuration. | - | egress_filters | Filter.Config | | | Egress Filter configuration. | - | min_num | uint32 | | | The minimum number of results to be returned. | - | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | + | field | type | label | required | description | + | :-------------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------------------------------- | + | request_id | string | | | Unique request ID. | + | num | uint32 | | \* | The maximum number of results to be returned. | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`). | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration. | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration. | + | min_num | uint32 | | | The minimum number of results to be returned. | + | aggregation_algorithm | AggregationAlgorithm | | | The search aggregation algorithm option (default value is `ConcurrentQueue`). | ### Output diff --git a/docs/api/update.md b/docs/api/update.md index f1517b2a64..89ade2c004 100644 --- a/docs/api/update.md +++ b/docs/api/update.md @@ -31,7 +31,7 @@ Update RPC is the method to update a single vector. message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -53,12 +53,12 @@ Update RPC is the method to update a single vector. - Update.Config - | field | type | label | required | description | - | :---------------------: | :------------ | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | - | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | - | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | - | filters | Filter.Config | | | Configuration for filter. | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | description | + | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | + | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | + | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for filter. | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - Object.Vector @@ -138,7 +138,7 @@ It's the recommended method to update the large amount of vectors. } message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -160,12 +160,12 @@ It's the recommended method to update the large amount of vectors. - Update.Config - | field | type | label | required | description | - | :---------------------: | :------------ | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | - | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | - | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | - | filters | Filter.Config | | | Configuration for filter. | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | description | + | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | + | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | + | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for filter. | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - Object.Vector @@ -272,7 +272,7 @@ Please be careful that the size of the request exceeds the limit. message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -300,12 +300,12 @@ Please be careful that the size of the request exceeds the limit. - Update.Config - | field | type | label | required | description | - | :---------------------: | :------------ | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | - | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | - | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | - | filters | Filter.Config | | | Configuration for filter. | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | description | + | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | + | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | + | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for filter. | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - Object.Vector diff --git a/docs/api/upsert.md b/docs/api/upsert.md index bd3128419d..34bc95cb76 100644 --- a/docs/api/upsert.md +++ b/docs/api/upsert.md @@ -35,7 +35,7 @@ Upsert RPC is the method to update the inserted vector to a new single vector or message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -57,12 +57,12 @@ Upsert RPC is the method to update the inserted vector to a new single vector or - Upsert.Config - | field | type | label | required | description | - | :---------------------: | :------------ | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | - | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | - | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | - | filters | Filter.Config | | | Configuration for filter. | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | description | + | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | + | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | + | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for filter. | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - Object.Vector @@ -140,7 +140,7 @@ It’s the recommended method to upsert a large number of vectors. } message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -162,12 +162,12 @@ It’s the recommended method to upsert a large number of vectors. - Upsert.Config - | field | type | label | required | description | - | :---------------------: | :------------ | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | - | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | - | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | - | filters | Filter.Config | | | Configuration for filter. | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | description | + | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | + | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | + | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for filter. | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - Object.Vector @@ -272,7 +272,7 @@ Please be careful that the size of the request exceeds the limit. message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -301,11 +301,11 @@ Please be careful that the size of the request exceeds the limit. - Upsert.Config | field | type | label | required | description | - | :---------------------: | :------------ | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | - | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | - | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | - | filters | Filter.Config | | | Configuration for filter. | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | + | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | + | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | Configuration for filter. | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - Object.Vector From cafd16e1afe2e50cc948e1ead4dc58899c6fc99d Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 08:47:57 +0000 Subject: [PATCH 37/43] style: format code with Gofumpt and Prettier This commit fixes the style issues introduced in 799a5f1 according to the output from Gofumpt and Prettier. Details: https://github.com/vdaas/vald/pull/2097 --- docs/api/upsert.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/upsert.md b/docs/api/upsert.md index 34bc95cb76..8ce264c288 100644 --- a/docs/api/upsert.md +++ b/docs/api/upsert.md @@ -300,7 +300,7 @@ Please be careful that the size of the request exceeds the limit. - Upsert.Config - | field | type | label | required | description | + | field | type | label | required | description | | :---------------------: | :----------------------------- | :---- | :------: | :------------------------------------------------------------------------------------------------------------ | | skip_strict_exist_check | bool | | | Check whether the same vector is already inserted or not.
The ID should be unique if the value is `true`. | | timestamp | int64 | | | The timestamp of the vector inserted.
If it is N/A, the current time will be used. | From 266f35b3cb260f124d6e97e8b1b905ee9d9e9540 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 10 Jun 2024 18:23:43 +0900 Subject: [PATCH 38/43] fix: update filter-gateway api document Signed-off-by: hlts2 --- docs/api/filter-gateway.md | 471 +++++++++++++++++++++++++------------ 1 file changed, 327 insertions(+), 144 deletions(-) diff --git a/docs/api/filter-gateway.md b/docs/api/filter-gateway.md index dba621862c..cdd4b66054 100644 --- a/docs/api/filter-gateway.md +++ b/docs/api/filter-gateway.md @@ -36,7 +36,7 @@ service Filter { message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -54,8 +54,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -77,11 +82,18 @@ service Filter { - Insert.Config - | field | type | label | required | desc. | - | :---------------------: | :------------ | :---- | :------: | :--------------------------------------------------------------------------------------------------- | - | skip_strict_exist_check | bool | | | check the same vector is already inserted or not.
the ID should be unique if the value is `true`. | - | timestamp | int64 | | | the timestamp of the vector inserted.
if it is N/A, the current time will be used. | - | filters | Filter.Config | | | configuration for filter | + | field | type | label | required | desc. | + | :---------------------: | :----------------------------- | :---- | :------: | :--------------------------------------------------------------------------------------------------- | + | skip_strict_exist_check | bool | | | check the same vector is already inserted or not.
the ID should be unique if the value is `true`. | + | timestamp | int64 | | | the timestamp of the vector inserted.
if it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -90,11 +102,11 @@ service Filter { | host | string | | \* | the target hostname | | port | port | | \* | the target port | - - Filter.Config + - Filter.Query - | field | type | label | required | desc. | - | :-----: | :------------ | :----------------------------- | :------: | :------------------------------ | - | targets | Filter.Target | repeated(Array[Filter.Target]) | \* | the filter target configuration | + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -158,7 +170,7 @@ service Filter { message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -176,8 +188,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -199,11 +216,18 @@ service Filter { - Insert.Config - | field | type | label | required | desc. | - | :---------------------: | :------------ | :---- | :------: | :--------------------------------------------------------------------------------------------------- | - | skip_strict_exist_check | bool | | | check the same vector is already inserted or not.
the ID should be unique if the value is `true`. | - | timestamp | int64 | | | the timestamp of the vector inserted.
if it is N/A, the current time will be used. | - | filters | Filter.Config | | | configuration for filter | + | field | type | label | required | desc. | + | :---------------------: | :----------------------------- | :---- | :------: | :--------------------------------------------------------------------------------------------------- | + | skip_strict_exist_check | bool | | | check the same vector is already inserted or not.
the ID should be unique if the value is `true`. | + | timestamp | int64 | | | the timestamp of the vector inserted.
if it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -212,11 +236,11 @@ service Filter { | host | string | | \* | the target hostname | | port | port | | \* | the target port | - - Filter.Config + - Filter.Query - | field | type | label | required | desc. | - | :-----: | :------------ | :----------------------------- | :------: | :------------------------------ | - | targets | Filter.Target | repeated(Array[Filter.Target]) | \* | the filter target configuration | + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -307,7 +331,7 @@ service Filter { message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -325,8 +349,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -354,11 +383,18 @@ service Filter { - Insert.Config - | field | type | label | required | desc. | - | :---------------------: | :------------ | :---- | :------: | :--------------------------------------------------------------------------------------------------- | - | skip_strict_exist_check | bool | | | check the same vector is already inserted or not.
the ID should be unique if the value is `true`. | - | timestamp | int64 | | | the timestamp of the vector inserted.
if it is N/A, the current time will be used. | - | filters | Filter.Config | | | configuration for filter | + | field | type | label | required | desc. | + | :---------------------: | :----------------------------- | :---- | :------: | :--------------------------------------------------------------------------------------------------- | + | skip_strict_exist_check | bool | | | check the same vector is already inserted or not.
the ID should be unique if the value is `true`. | + | timestamp | int64 | | | the timestamp of the vector inserted.
if it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -367,11 +403,11 @@ service Filter { | host | string | | \* | the target hostname | | port | port | | \* | the target port | - - Filter.Config + - Filter.Query - | field | type | label | required | desc. | - | :-----: | :------------ | :----------------------------- | :------: | :------------------------------ | - | targets | Filter.Target | repeated(Array[Filter.Target]) | \* | the filter target configuration | + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -444,7 +480,7 @@ service Filter { message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -462,8 +498,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -485,12 +526,19 @@ service Filter { - Update.Config - | field | type | label | required | desc. | - | :---------------------: | :------------ | :---- | :------: | :-------------------------------------------------------------------------------------------------- | - | skip_strict_exist_check | bool | | | check the same vector is already updated or not.
the ID should be unique if the value is `true`. | - | timestamp | int64 | | | the timestamp of the vector updated.
if it is N/A, the current time will be used. | - | filters | Filter.Config | | | configuration for filter | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | desc. | + | :---------------------: | :----------------------------- | :---- | :------: | :-------------------------------------------------------------------------------------------------- | + | skip_strict_exist_check | bool | | | check the same vector is already updated or not.
the ID should be unique if the value is `true`. | + | timestamp | int64 | | | the timestamp of the vector updated.
if it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -499,11 +547,11 @@ service Filter { | host | string | | \* | the target hostname | | port | port | | \* | the target port | - - Filter.Config + - Filter.Query - | field | type | label | required | desc. | - | :-----: | :------------ | :----------------------------- | :------: | :------------------------------ | - | targets | Filter.Target | repeated(Array[Filter.Target]) | \* | the filter target configuration | + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -566,7 +614,7 @@ service Filter { message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -584,8 +632,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -607,12 +660,19 @@ service Filter { - Update.Config - | field | type | label | required | desc. | - | :---------------------: | :------------ | :---- | :------: | :-------------------------------------------------------------------------------------------------- | - | skip_strict_exist_check | bool | | | check the same vector is already updated or not.
the ID should be unique if the value is `true`. | - | timestamp | int64 | | | the timestamp of the vector updated.
if it is N/A, the current time will be used. | - | filters | Filter.Config | | | configuration for filter | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | desc. | + | :---------------------: | :----------------------------- | :---- | :------: | :-------------------------------------------------------------------------------------------------- | + | skip_strict_exist_check | bool | | | check the same vector is already updated or not.
the ID should be unique if the value is `true`. | + | timestamp | int64 | | | the timestamp of the vector updated.
if it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -621,11 +681,11 @@ service Filter { | host | string | | \* | the target hostname | | port | port | | \* | the target port | - - Filter.Config + - Filter.Query - | field | type | label | required | desc. | - | :-----: | :------------ | :----------------------------- | :------: | :------------------------------ | - | targets | Filter.Target | repeated(Array[Filter.Target]) | \* | the filter target configuration | + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -721,7 +781,7 @@ service Filter { message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -739,8 +799,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -768,12 +833,19 @@ service Filter { - Update.Config - | field | type | label | required | desc. | - | :---------------------: | :------------ | :---- | :------: | :-------------------------------------------------------------------------------------------------- | - | skip_strict_exist_check | bool | | | check the same vector is already updated or not.
the ID should be unique if the value is `true`. | - | timestamp | int64 | | | the timestamp of the vector updated.
if it is N/A, the current time will be used. | - | filters | Filter.Config | | | configuration for filter | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | desc. | + | :---------------------: | :----------------------------- | :---- | :------: | :-------------------------------------------------------------------------------------------------- | + | skip_strict_exist_check | bool | | | check the same vector is already updated or not.
the ID should be unique if the value is `true`. | + | timestamp | int64 | | | the timestamp of the vector updated.
if it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -782,11 +854,11 @@ service Filter { | host | string | | \* | the target hostname | | port | port | | \* | the target port | - - Filter.Config + - Filter.Query - | field | type | label | required | desc. | - | :-----: | :------------ | :----------------------------- | :------: | :------------------------------ | - | targets | Filter.Target | repeated(Array[Filter.Target]) | \* | the filter target configuration | + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -859,7 +931,7 @@ service Filter { message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -877,8 +949,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -900,12 +977,19 @@ service Filter { - Update.Config - | field | type | label | required | desc. | - | :---------------------: | :------------ | :---- | :------: | :--------------------------------------------------------------------------------------------------- | - | skip_strict_exist_check | bool | | | check the same vector is already upserted or not.
the ID should be unique if the value is `true`. | - | timestamp | int64 | | | the timestamp of the vector upserted.
if it is N/A, the current time will be used. | - | filters | Filter.Config | | | configuration for filter | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | desc. | + | :---------------------: | :----------------------------- | :---- | :------: | :--------------------------------------------------------------------------------------------------- | + | skip_strict_exist_check | bool | | | check the same vector is already upserted or not.
the ID should be unique if the value is `true`. | + | timestamp | int64 | | | the timestamp of the vector upserted.
if it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -914,11 +998,11 @@ service Filter { | host | string | | \* | the target hostname | | port | port | | \* | the target port | - - Filter.Config + - Filter.Query - | field | type | label | required | desc. | - | :-----: | :------------ | :----------------------------- | :------: | :------------------------------ | - | targets | Filter.Target | repeated(Array[Filter.Target]) | \* | the filter target configuration | + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -978,7 +1062,7 @@ service Filter { message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -996,8 +1080,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -1019,12 +1108,19 @@ service Filter { - Update.Config - | field | type | label | required | desc. | - | :---------------------: | :------------ | :---- | :------: | :--------------------------------------------------------------------------------------------------- | - | skip_strict_exist_check | bool | | | check the same vector is already upserted or not.
the ID should be unique if the value is `true`. | - | timestamp | int64 | | | the timestamp of the vector upserted.
if it is N/A, the current time will be used. | - | filters | Filter.Config | | | configuration for filter | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | desc. | + | :---------------------: | :----------------------------- | :---- | :------: | :--------------------------------------------------------------------------------------------------- | + | skip_strict_exist_check | bool | | | check the same vector is already upserted or not.
the ID should be unique if the value is `true`. | + | timestamp | int64 | | | the timestamp of the vector upserted.
if it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -1033,11 +1129,11 @@ service Filter { | host | string | | \* | the target hostname | | port | port | | \* | the target port | - - Filter.Config + - Filter.Query - | field | type | label | required | desc. | - | :-----: | :------------ | :----------------------------- | :------: | :------------------------------ | - | targets | Filter.Target | repeated(Array[Filter.Target]) | \* | the filter target configuration | + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -1133,7 +1229,7 @@ service Filter { message Config { bool skip_strict_exist_check = 1; - Filter.Config filters = 2; + repeated Filter.Config filters = 2; int64 timestamp = 3; } } @@ -1151,8 +1247,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -1180,12 +1281,19 @@ service Filter { - Update.Config - | field | type | label | required | desc. | - | :---------------------: | :------------ | :---- | :------: | :--------------------------------------------------------------------------------------------------- | - | skip_strict_exist_check | bool | | | check the same vector is already upserted or not.
the ID should be unique if the value is `true`. | - | timestamp | int64 | | | the timestamp of the vector upserted.
if it is N/A, the current time will be used. | - | filters | Filter.Config | | | configuration for filter | - | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + | field | type | label | required | desc. | + | :---------------------: | :----------------------------- | :---- | :------: | :--------------------------------------------------------------------------------------------------- | + | skip_strict_exist_check | bool | | | check the same vector is already upserted or not.
the ID should be unique if the value is `true`. | + | timestamp | int64 | | | the timestamp of the vector upserted.
if it is N/A, the current time will be used. | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -1194,11 +1302,11 @@ service Filter { | host | string | | \* | the target hostname | | port | port | | \* | the target port | - - Filter.Config + - Filter.Query - | field | type | label | required | desc. | - | :-----: | :------------ | :----------------------------- | :------: | :------------------------------ | - | targets | Filter.Target | repeated(Array[Filter.Target]) | \* | the filter target configuration | + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -1275,8 +1383,8 @@ service Filter { float radius = 3; float epsilon = 4; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8 [ (validate.rules).uint32.gte = 0 ]; } } @@ -1287,8 +1395,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -1303,16 +1416,36 @@ service Filter { - Search.Config - | field | type | label | required | desc. | - | :-------------: | :------------ | :---- | :------: | :---------------------------------------------------- | - | request_id | string | | | unique request ID | - | num | uint32 | | \* | the maximum number of result to be returned | - | radius | float | | \* | the search radius | - | epsilon | float | | \* | the search coefficient (default value is `0.1`) | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`) | - | ingress_filters | Filter.Config | | | Ingress Filter configuration | - | egress_filters | Filter.Config | | | Egress Filter configuration | - | min_num | uint32 | | | the minimum number of result to be returned | + | field | type | label | required | desc. | + | :-------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------- | + | request_id | string | | | unique request ID | + | num | uint32 | | \* | the maximum number of result to be returned | + | radius | float | | \* | the search radius | + | epsilon | float | | \* | the search coefficient (default value is `0.1`) | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`) | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration | + | min_num | uint32 | | | the minimum number of result to be returned | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | + + - Filter.Target + + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :------------------ | + | host | string | | \* | the target hostname | + | port | port | | \* | the target port | + + - Filter.Query + + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -1390,8 +1523,8 @@ service Filter { float radius = 3; float epsilon = 4; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8 [ (validate.rules).uint32.gte = 0 ]; } } @@ -1402,8 +1535,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -1418,16 +1556,36 @@ service Filter { - Search.Config - | field | type | label | required | desc. | - | :-------------: | :------------ | :---- | :------: | :---------------------------------------------------- | - | request_id | string | | | unique request ID | - | num | uint32 | | \* | the maximum number of result to be returned | - | radius | float | | \* | the search radius | - | epsilon | float | | \* | the search coefficient (default value is `0.1`) | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`) | - | ingress_filters | Filter.Config | | | Ingress Filter configuration | - | egress_filters | Filter.Config | | | Egress Filter configuration | - | min_num | uint32 | | | the minimum number of result to be returned | + | field | type | label | required | desc. | + | :-------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------- | + | request_id | string | | | unique request ID | + | num | uint32 | | \* | the maximum number of result to be returned | + | radius | float | | \* | the search radius | + | epsilon | float | | \* | the search coefficient (default value is `0.1`) | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`) | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration | + | min_num | uint32 | | | the minimum number of result to be returned | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | + + - Filter.Target + + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :------------------ | + | host | string | | \* | the target hostname | + | port | port | | \* | the target port | + + - Filter.Query + + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output @@ -1531,8 +1689,8 @@ service Filter { float radius = 3; float epsilon = 4; int64 timeout = 5; - Filter.Config ingress_filters = 6; - Filter.Config egress_filters = 7; + repeated Filter.Config ingress_filters = 6; + repeated Filter.Config egress_filters = 7; uint32 min_num = 8 [ (validate.rules).uint32.gte = 0 ]; } } @@ -1543,8 +1701,13 @@ service Filter { uint32 port = 2; } + message Query { + string query = 1; + } + message Config { - repeated Target targets = 1; + Target target = 1; + Query query = 2; } } ``` @@ -1565,16 +1728,36 @@ service Filter { - Search.Config - | field | type | label | required | desc. | - | :-------------: | :------------ | :---- | :------: | :---------------------------------------------------- | - | request_id | string | | | unique request ID | - | num | uint32 | | \* | the maximum number of result to be returned | - | radius | float | | \* | the search radius | - | epsilon | float | | \* | the search coefficient (default value is `0.1`) | - | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`) | - | ingress_filters | Filter.Config | | | Ingress Filter configuration | - | egress_filters | Filter.Config | | | Egress Filter configuration | - | min_num | uint32 | | | the minimum number of result to be returned | + | field | type | label | required | desc. | + | :-------------: | :----------------------------- | :---- | :------: | :---------------------------------------------------- | + | request_id | string | | | unique request ID | + | num | uint32 | | \* | the maximum number of result to be returned | + | radius | float | | \* | the search radius | + | epsilon | float | | \* | the search coefficient (default value is `0.1`) | + | timeout | int64 | | | Search timeout in nanoseconds (default value is `5s`) | + | ingress_filters | repeated(Array[Filter.Config]) | | | Ingress Filter configuration | + | egress_filters | repeated(Array[Filter.Config]) | | | Egress Filter configuration | + | min_num | uint32 | | | the minimum number of result to be returned | + + - Filter.Config + + | field | type | label | required | desc. | + | :-----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | + + - Filter.Target + + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :------------------ | + | host | string | | \* | the target hostname | + | port | port | | \* | the target port | + + - Filter.Query + + | field | type | label | required | desc. | + | :---: | :----- | :---- | :------: | :--------------- | + | query | string | | | the filter query | ### Output From 844c7cb013c27089b5effa03de8c153c383a22d7 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 09:24:15 +0000 Subject: [PATCH 39/43] style: format code with Gofumpt and Prettier This commit fixes the style issues introduced in 266f35b according to the output from Gofumpt and Prettier. Details: https://github.com/vdaas/vald/pull/2097 --- docs/api/filter-gateway.md | 102 ++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/docs/api/filter-gateway.md b/docs/api/filter-gateway.md index cdd4b66054..0e243eec33 100644 --- a/docs/api/filter-gateway.md +++ b/docs/api/filter-gateway.md @@ -90,10 +90,10 @@ service Filter { - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -224,10 +224,10 @@ service Filter { - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -391,10 +391,10 @@ service Filter { - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -530,15 +530,15 @@ service Filter { | :---------------------: | :----------------------------- | :---- | :------: | :-------------------------------------------------------------------------------------------------- | | skip_strict_exist_check | bool | | | check the same vector is already updated or not.
the ID should be unique if the value is `true`. | | timestamp | int64 | | | the timestamp of the vector updated.
if it is N/A, the current time will be used. | - | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -664,15 +664,15 @@ service Filter { | :---------------------: | :----------------------------- | :---- | :------: | :-------------------------------------------------------------------------------------------------- | | skip_strict_exist_check | bool | | | check the same vector is already updated or not.
the ID should be unique if the value is `true`. | | timestamp | int64 | | | the timestamp of the vector updated.
if it is N/A, the current time will be used. | - | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -837,15 +837,15 @@ service Filter { | :---------------------: | :----------------------------- | :---- | :------: | :-------------------------------------------------------------------------------------------------- | | skip_strict_exist_check | bool | | | check the same vector is already updated or not.
the ID should be unique if the value is `true`. | | timestamp | int64 | | | the timestamp of the vector updated.
if it is N/A, the current time will be used. | - | filters | repeated(Array[Filter.Config]) | | | configuration for filter | + | filters | repeated(Array[Filter.Config]) | | | configuration for filter | | disable_balanced_update | bool | | | A flag to disable balanced update (split remove -> insert operation) during update operation. | - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -986,10 +986,10 @@ service Filter { - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -1117,10 +1117,10 @@ service Filter { - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -1290,10 +1290,10 @@ service Filter { - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -1429,10 +1429,10 @@ service Filter { - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -1569,10 +1569,10 @@ service Filter { - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target @@ -1741,10 +1741,10 @@ service Filter { - Filter.Config - | field | type | label | required | desc. | - | :-----: | :------------ | :---- | :------: | :------------------------------ | - | target | Filter.Target | | \* | the filter target configuration | - | query | Filter.Query | | | the filter target configuration | + | field | type | label | required | desc. | + | :----: | :------------ | :---- | :------: | :------------------------------ | + | target | Filter.Target | | \* | the filter target configuration | + | query | Filter.Query | | | the filter target configuration | - Filter.Target From b406be66b8759e672396a51dce86a90d848ea5c7 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Fri, 13 Sep 2024 11:19:15 +0900 Subject: [PATCH 40/43] fix: make proto/all format Signed-off-by: hlts2 --- apis/docs/v1/docs.md | 140 +- .../v1/agent/sidecar/sidecar_vtproto.pb.go | 2 +- .../grpc/v1/filter/egress/egress_filter.pb.go | 60 +- .../filter/egress/egress_filter_vtproto.pb.go | 36 +- apis/grpc/v1/payload/payload.pb.go | 1158 ++-- apis/grpc/v1/payload/payload_vtproto.pb.go | 5425 ++++++++++------- .../v1/rpc/errdetails/error_details.pb.go | 1 - .../gateway/filter/egress-filter/main.go | 8 +- .../gateway/filter/ingress-filter/main.go | 8 +- example/client/gateway/filter/main.go | 16 +- example/server/egress-filter/main.go | 14 +- example/server/ingress-filter/main.go | 14 +- rust/libs/proto/src/filter.egress.v1.tonic.rs | 4 + .../libs/proto/src/filter.ingress.v1.tonic.rs | 4 + rust/libs/proto/src/vald.v1.tonic.rs | 8 + 15 files changed, 4287 insertions(+), 2611 deletions(-) diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index e9ad2d2c6d..3ef5fe1759 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -13,7 +13,12 @@ - [Empty](#payload-v1-Empty) - [Filter](#payload-v1-Filter) - [Filter.Config](#payload-v1-Filter-Config) + - [Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) + - [Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) + - [Filter.Query](#payload-v1-Filter-Query) - [Filter.Target](#payload-v1-Filter-Target) + - [Filter.VectorRequest](#payload-v1-Filter-VectorRequest) + - [Filter.VectorResponse](#payload-v1-Filter-VectorResponse) - [Flush](#payload-v1-Flush) - [Flush.Request](#payload-v1-Flush-Request) - [Info](#payload-v1-Info) @@ -212,9 +217,41 @@ Filter related messages. Represent filter configuration. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | -------- | ------------------------------------------ | -| targets | [Filter.Target](#payload-v1-Filter-Target) | repeated | Represent the filter target configuration. | +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ------------------------------------------ | +| target | [Filter.Target](#payload-v1-Filter-Target) | | Represent the filter target configuration. | +| query | [Filter.Query](#payload-v1-Filter-Query) | | The target query. | + + + +### Filter.DistanceRequest + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.DistanceResponse + +Represent the ID and distance pair. + +| Field | Type | Label | Description | +| -------- | ---------------------------------------------- | -------- | ----------- | +| distance | [Object.Distance](#payload-v1-Object-Distance) | repeated | Distance | + + + +### Filter.Query + +Represent the filter query. + +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | --------------------- | +| query | [string](#string) | | The raw query string. | @@ -227,6 +264,27 @@ Represent the target filter server. | host | [string](#string) | | The target hostname. | | port | [uint32](#uint32) | | The target port. | + + +### Filter.VectorRequest + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Vector | +| query | [Filter.Query](#payload-v1-Filter-Query) | | Query | + + + +### Filter.VectorResponse + +Represent the ID and vector pair. + +| Field | Type | Label | Description | +| ------ | ------------------------------------------ | ----- | ----------- | +| vector | [Object.Vector](#payload-v1-Object-Vector) | | Distance | + ### Flush @@ -603,11 +661,11 @@ Insert related messages. Represent insert configurations. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | --------------------------------------------------- | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | -| timestamp | [int64](#int64) | | Insert timestamp. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | --------------------------------------------------- | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during insert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | +| timestamp | [int64](#int64) | | Insert timestamp. | @@ -862,10 +920,10 @@ Represent a vector. Represent a request to fetch raw vector. -| Field | Type | Label | Description | -| ------- | ------------------------------------------ | ----- | ---------------------------- | -| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configurations. | +| Field | Type | Label | Description | +| ------- | ------------------------------------------ | -------- | ---------------------------- | +| id | [Object.ID](#payload-v1-Object-ID) | | The vector ID to be fetched. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configurations. | @@ -948,19 +1006,19 @@ Search related messages. Represent search configuration. -| Field | Type | Label | Description | -| --------------------- | ---------------------------------------------------------------------- | ----- | -------------------------------------------- | -| request_id | [string](#string) | | Unique request ID. | -| num | [uint32](#uint32) | | Maximum number of result to be returned. | -| radius | [float](#float) | | Search radius. | -| epsilon | [float](#float) | | Search coefficient. | -| timeout | [int64](#int64) | | Search timeout in nanoseconds. | -| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Ingress filter configurations. | -| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | | Egress filter configurations. | -| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | -| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | -| ratio | [google.protobuf.FloatValue](#google-protobuf-FloatValue) | | Search ratio for agent return result number. | -| nprobe | [uint32](#uint32) | | Search nprobe. | +| Field | Type | Label | Description | +| --------------------- | ---------------------------------------------------------------------- | -------- | -------------------------------------------- | +| request_id | [string](#string) | | Unique request ID. | +| num | [uint32](#uint32) | | Maximum number of result to be returned. | +| radius | [float](#float) | | Search radius. | +| epsilon | [float](#float) | | Search coefficient. | +| timeout | [int64](#int64) | | Search timeout in nanoseconds. | +| ingress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Ingress filter configurations. | +| egress_filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Egress filter configurations. | +| min_num | [uint32](#uint32) | | Minimum number of result to be returned. | +| aggregation_algorithm | [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) | | Aggregation Algorithm | +| ratio | [google.protobuf.FloatValue](#google-protobuf-FloatValue) | | Search ratio for agent return result number. | +| nprobe | [uint32](#uint32) | | Search nprobe. | @@ -1070,12 +1128,12 @@ Update related messages Represent the update configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Update timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during update operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Update timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -1144,12 +1202,12 @@ Upsert related messages. Represent the upsert configuration. -| Field | Type | Label | Description | -| ----------------------- | ------------------------------------------ | ----- | ------------------------------------------------------------------------------------------------ | -| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | -| filters | [Filter.Config](#payload-v1-Filter-Config) | | Filter configuration. | -| timestamp | [int64](#int64) | | Upsert timestamp. | -| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | +| Field | Type | Label | Description | +| ----------------------- | ------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------ | +| skip_strict_exist_check | [bool](#bool) | | A flag to skip exist check during upsert operation. | +| filters | [Filter.Config](#payload-v1-Filter-Config) | repeated | Filter configuration. | +| timestamp | [int64](#int64) | | Upsert timestamp. | +| disable_balanced_update | [bool](#bool) | | A flag to disable balanced update (split remove -> insert operation) during update operation. | @@ -1286,10 +1344,10 @@ Represent the discoverer service. Represent the egress filter service. -| Method Name | Request Type | Response Type | Description | -| -------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------- | -| FilterDistance | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | [.payload.v1.Object.Distance](#payload-v1-Object-Distance) | Represent the RPC to filter the distance. | -| FilterVector | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to filter the vector. | +| Method Name | Request Type | Response Type | Description | +| -------------- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------- | ----------------------------------------- | +| FilterDistance | [.payload.v1.Filter.DistanceRequest](#payload-v1-Filter-DistanceRequest) | [.payload.v1.Filter.DistanceResponse](#payload-v1-Filter-DistanceResponse) | Represent the RPC to filter the distance. | +| FilterVector | [.payload.v1.Filter.VectorRequest](#payload-v1-Filter-VectorRequest) | [.payload.v1.Filter.VectorResponse](#payload-v1-Filter-VectorResponse) | Represent the RPC to filter the vector. | diff --git a/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go b/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go index 3e7fb5da06..f60d8f002f 100644 --- a/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go +++ b/apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go @@ -36,7 +36,7 @@ const _ = grpc.SupportPackageIsVersion7 // SidecarClient is the client API for Sidecar service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type SidecarClient any +type SidecarClient interface{} type sidecarClient struct { cc grpc.ClientConnInterface diff --git a/apis/grpc/v1/filter/egress/egress_filter.pb.go b/apis/grpc/v1/filter/egress/egress_filter.pb.go index 5d60c42564..7d7df2bd4e 100644 --- a/apis/grpc/v1/filter/egress/egress_filter.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter.pb.go @@ -48,40 +48,44 @@ var file_v1_filter_egress_egress_filter_proto_rawDesc = []byte{ 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x32, 0xe0, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x6e, 0x0a, 0x0e, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x2e, - 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x1b, 0x2e, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, - 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, - 0x01, 0x2a, 0x22, 0x17, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x0c, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x19, 0x2e, 0x70, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x42, 0x6b, 0x0a, 0x23, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x64, 0x61, 0x61, 0x73, - 0x2e, 0x76, 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x2e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x10, 0x56, 0x61, 0x6c, 0x64, - 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x30, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x64, 0x61, 0x61, 0x73, - 0x2f, 0x76, 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, - 0x76, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x32, 0xfe, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x7d, 0x0a, 0x0e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x01, + 0x2a, 0x22, 0x17, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x75, 0x0a, 0x0c, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x20, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x56, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x22, 0x15, 0x2f, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x42, 0x6b, 0x0a, 0x23, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2e, 0x76, + 0x61, 0x6c, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x10, 0x56, 0x61, 0x6c, 0x64, 0x45, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x64, 0x61, 0x61, 0x73, 0x2f, 0x76, + 0x61, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x76, 0x31, + 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_v1_filter_egress_egress_filter_proto_goTypes = []any{ - (*payload.Object_Distance)(nil), // 0: payload.v1.Object.Distance - (*payload.Object_Vector)(nil), // 1: payload.v1.Object.Vector + (*payload.Filter_DistanceRequest)(nil), // 0: payload.v1.Filter.DistanceRequest + (*payload.Filter_VectorRequest)(nil), // 1: payload.v1.Filter.VectorRequest + (*payload.Filter_DistanceResponse)(nil), // 2: payload.v1.Filter.DistanceResponse + (*payload.Filter_VectorResponse)(nil), // 3: payload.v1.Filter.VectorResponse } var file_v1_filter_egress_egress_filter_proto_depIdxs = []int32{ - 0, // 0: filter.egress.v1.Filter.FilterDistance:input_type -> payload.v1.Object.Distance - 1, // 1: filter.egress.v1.Filter.FilterVector:input_type -> payload.v1.Object.Vector - 0, // 2: filter.egress.v1.Filter.FilterDistance:output_type -> payload.v1.Object.Distance - 1, // 3: filter.egress.v1.Filter.FilterVector:output_type -> payload.v1.Object.Vector + 0, // 0: filter.egress.v1.Filter.FilterDistance:input_type -> payload.v1.Filter.DistanceRequest + 1, // 1: filter.egress.v1.Filter.FilterVector:input_type -> payload.v1.Filter.VectorRequest + 2, // 2: filter.egress.v1.Filter.FilterDistance:output_type -> payload.v1.Filter.DistanceResponse + 3, // 3: filter.egress.v1.Filter.FilterVector:output_type -> payload.v1.Filter.VectorResponse 2, // [2:4] is the sub-list for method output_type 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name diff --git a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go index fc9d0d34e2..e73d367db4 100644 --- a/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go +++ b/apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go @@ -43,9 +43,9 @@ const _ = grpc.SupportPackageIsVersion7 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type FilterClient interface { // Represent the RPC to filter the distance. - FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (*payload.Object_Distance, error) + FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption) (*payload.Filter_DistanceResponse, error) // Represent the RPC to filter the vector. - FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Object_Vector, error) + FilterVector(ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption) (*payload.Filter_VectorResponse, error) } type filterClient struct { @@ -57,9 +57,9 @@ func NewFilterClient(cc grpc.ClientConnInterface) FilterClient { } func (c *filterClient) FilterDistance( - ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption, -) (*payload.Object_Distance, error) { - out := new(payload.Object_Distance) + ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption, +) (*payload.Filter_DistanceResponse, error) { + out := new(payload.Filter_DistanceResponse) err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterDistance", in, out, opts...) if err != nil { return nil, err @@ -68,9 +68,9 @@ func (c *filterClient) FilterDistance( } func (c *filterClient) FilterVector( - ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption, -) (*payload.Object_Vector, error) { - out := new(payload.Object_Vector) + ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption, +) (*payload.Filter_VectorResponse, error) { + out := new(payload.Filter_VectorResponse) err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterVector", in, out, opts...) if err != nil { return nil, err @@ -83,9 +83,9 @@ func (c *filterClient) FilterVector( // for forward compatibility type FilterServer interface { // Represent the RPC to filter the distance. - FilterDistance(context.Context, *payload.Object_Distance) (*payload.Object_Distance, error) + FilterDistance(context.Context, *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error) // Represent the RPC to filter the vector. - FilterVector(context.Context, *payload.Object_Vector) (*payload.Object_Vector, error) + FilterVector(context.Context, *payload.Filter_VectorRequest) (*payload.Filter_VectorResponse, error) mustEmbedUnimplementedFilterServer() } @@ -93,14 +93,14 @@ type FilterServer interface { type UnimplementedFilterServer struct{} func (UnimplementedFilterServer) FilterDistance( - context.Context, *payload.Object_Distance, -) (*payload.Object_Distance, error) { + context.Context, *payload.Filter_DistanceRequest, +) (*payload.Filter_DistanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterDistance not implemented") } func (UnimplementedFilterServer) FilterVector( - context.Context, *payload.Object_Vector, -) (*payload.Object_Vector, error) { + context.Context, *payload.Filter_VectorRequest, +) (*payload.Filter_VectorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FilterVector not implemented") } func (UnimplementedFilterServer) mustEmbedUnimplementedFilterServer() {} @@ -119,7 +119,7 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) { func _Filter_FilterDistance_Handler( srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { - in := new(payload.Object_Distance) + in := new(payload.Filter_DistanceRequest) if err := dec(in); err != nil { return nil, err } @@ -131,7 +131,7 @@ func _Filter_FilterDistance_Handler( FullMethod: "/filter.egress.v1.Filter/FilterDistance", } handler := func(ctx context.Context, req any) (any, error) { - return srv.(FilterServer).FilterDistance(ctx, req.(*payload.Object_Distance)) + return srv.(FilterServer).FilterDistance(ctx, req.(*payload.Filter_DistanceRequest)) } return interceptor(ctx, in, info, handler) } @@ -139,7 +139,7 @@ func _Filter_FilterDistance_Handler( func _Filter_FilterVector_Handler( srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor, ) (any, error) { - in := new(payload.Object_Vector) + in := new(payload.Filter_VectorRequest) if err := dec(in); err != nil { return nil, err } @@ -151,7 +151,7 @@ func _Filter_FilterVector_Handler( FullMethod: "/filter.egress.v1.Filter/FilterVector", } handler := func(ctx context.Context, req any) (any, error) { - return srv.(FilterServer).FilterVector(ctx, req.(*payload.Object_Vector)) + return srv.(FilterServer).FilterVector(ctx, req.(*payload.Filter_VectorRequest)) } return interceptor(ctx, in, info, handler) } diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index c304cfb284..3bc29561ca 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -1017,9 +1017,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1097,14 +1097,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1388,6 +1388,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1395,13 +1444,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1414,7 +1465,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1427,12 +1478,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} } -func (x *Filter_Config) GetTargets() []*Filter_Target { +func (x *Filter_Config) GetTarget() *Filter_Target { if x != nil { - return x.Targets + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil +} + +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} +} + +func (x *Filter_VectorResponse) GetVector() *Object_Vector { + if x != nil { + return x.Vector } return nil } @@ -1452,7 +1724,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1465,7 +1737,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1508,7 +1780,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1521,7 +1793,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1561,7 +1833,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1574,7 +1846,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1624,7 +1896,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1637,7 +1909,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1669,7 +1941,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1677,7 +1949,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1690,7 +1962,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1713,7 +1985,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1742,7 +2014,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1755,7 +2027,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1798,7 +2070,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1811,7 +2083,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1851,7 +2123,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1864,7 +2136,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1914,7 +2186,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1927,7 +2199,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1967,7 +2239,7 @@ type Update_TimestampRequest struct { func (x *Update_TimestampRequest) Reset() { *x = Update_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1980,7 +2252,7 @@ func (x *Update_TimestampRequest) String() string { func (*Update_TimestampRequest) ProtoMessage() {} func (x *Update_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2026,7 +2298,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2037,7 +2309,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2050,7 +2322,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2073,7 +2345,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2109,7 +2381,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2122,7 +2394,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2165,7 +2437,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2178,7 +2450,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2218,7 +2490,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2231,7 +2503,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2281,7 +2553,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2294,7 +2566,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2326,7 +2598,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2337,7 +2609,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2350,7 +2622,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2373,7 +2645,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2409,7 +2681,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2422,7 +2694,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2465,7 +2737,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2478,7 +2750,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2515,7 +2787,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2528,7 +2800,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2566,7 +2838,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2579,7 +2851,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2624,7 +2896,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2637,7 +2909,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2676,7 +2948,7 @@ type Flush_Request struct { func (x *Flush_Request) Reset() { *x = Flush_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2689,7 +2961,7 @@ func (x *Flush_Request) String() string { func (*Flush_Request) ProtoMessage() {} func (x *Flush_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2714,13 +2986,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2733,7 +3005,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2756,7 +3028,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2778,7 +3050,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2791,7 +3063,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2837,7 +3109,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2850,7 +3122,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2917,7 +3189,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2930,7 +3202,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2965,7 +3237,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2978,7 +3250,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3018,7 +3290,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3031,7 +3303,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3081,7 +3353,7 @@ type Object_TimestampRequest struct { func (x *Object_TimestampRequest) Reset() { *x = Object_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3094,7 +3366,7 @@ func (x *Object_TimestampRequest) String() string { func (*Object_TimestampRequest) ProtoMessage() {} func (x *Object_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3132,7 +3404,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3145,7 +3417,7 @@ func (x *Object_Timestamp) String() string { func (*Object_Timestamp) ProtoMessage() {} func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3187,7 +3459,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3200,7 +3472,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3239,7 +3511,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3252,7 +3524,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3322,7 +3594,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3335,7 +3607,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3380,7 +3652,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3393,7 +3665,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3439,7 +3711,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3452,7 +3724,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3524,7 +3796,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3537,7 +3809,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3590,7 +3862,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3603,7 +3875,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3670,7 +3942,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3683,7 +3955,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3716,7 +3988,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3729,7 +4001,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3754,7 +4026,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3767,7 +4039,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3798,7 +4070,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3811,7 +4083,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3879,7 +4151,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3892,7 +4164,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3932,7 +4204,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3945,7 +4217,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3992,7 +4264,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4005,7 +4277,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4046,7 +4318,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4059,7 +4331,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4147,7 +4419,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4160,7 +4432,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4241,7 +4513,7 @@ type Info_Service struct { func (x *Info_Service) Reset() { *x = Info_Service{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4254,7 +4526,7 @@ func (x *Info_Service) String() string { func (*Info_Service) ProtoMessage() {} func (x *Info_Service) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4327,7 +4599,7 @@ type Info_ServicePort struct { func (x *Info_ServicePort) Reset() { *x = Info_ServicePort{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4340,7 +4612,7 @@ func (x *Info_ServicePort) String() string { func (*Info_ServicePort) ProtoMessage() {} func (x *Info_ServicePort) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4382,7 +4654,7 @@ type Info_Labels struct { func (x *Info_Labels) Reset() { *x = Info_Labels{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4395,7 +4667,7 @@ func (x *Info_Labels) String() string { func (*Info_Labels) ProtoMessage() {} func (x *Info_Labels) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4430,7 +4702,7 @@ type Info_Annotations struct { func (x *Info_Annotations) Reset() { *x = Info_Annotations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4443,7 +4715,7 @@ func (x *Info_Annotations) String() string { func (*Info_Annotations) ProtoMessage() {} func (x *Info_Annotations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4483,7 +4755,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4496,7 +4768,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4550,7 +4822,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4563,7 +4835,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4613,7 +4885,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4626,7 +4898,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4662,7 +4934,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4675,7 +4947,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4711,7 +4983,7 @@ type Info_Services struct { func (x *Info_Services) Reset() { *x = Info_Services{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4724,7 +4996,7 @@ func (x *Info_Services) String() string { func (*Info_Services) ProtoMessage() {} func (x *Info_Services) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4759,7 +5031,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4772,7 +5044,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4814,7 +5086,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4827,7 +5099,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4888,7 +5160,7 @@ type Info_Index_Detail struct { func (x *Info_Index_Detail) Reset() { *x = Info_Index_Detail{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[82] + mi := &file_v1_payload_payload_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4901,7 +5173,7 @@ func (x *Info_Index_Detail) String() string { func (*Info_Index_Detail) ProtoMessage() {} func (x *Info_Index_Detail) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[82] + mi := &file_v1_payload_payload_proto_msgTypes[87] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4948,7 +5220,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[83] + mi := &file_v1_payload_payload_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4961,7 +5233,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[83] + mi := &file_v1_payload_payload_proto_msgTypes[88] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5021,7 +5293,7 @@ type Info_Index_Statistics struct { func (x *Info_Index_Statistics) Reset() { *x = Info_Index_Statistics{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[84] + mi := &file_v1_payload_payload_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5034,7 +5306,7 @@ func (x *Info_Index_Statistics) String() string { func (*Info_Index_Statistics) ProtoMessage() {} func (x *Info_Index_Statistics) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[84] + mi := &file_v1_payload_payload_proto_msgTypes[89] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5294,7 +5566,7 @@ type Info_Index_StatisticsDetail struct { func (x *Info_Index_StatisticsDetail) Reset() { *x = Info_Index_StatisticsDetail{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[85] + mi := &file_v1_payload_payload_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5307,7 +5579,7 @@ func (x *Info_Index_StatisticsDetail) String() string { func (*Info_Index_StatisticsDetail) ProtoMessage() {} func (x *Info_Index_StatisticsDetail) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[85] + mi := &file_v1_payload_payload_proto_msgTypes[90] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5375,7 +5647,7 @@ type Info_Index_Property struct { func (x *Info_Index_Property) Reset() { *x = Info_Index_Property{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[86] + mi := &file_v1_payload_payload_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5388,7 +5660,7 @@ func (x *Info_Index_Property) String() string { func (*Info_Index_Property) ProtoMessage() {} func (x *Info_Index_Property) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[86] + mi := &file_v1_payload_payload_proto_msgTypes[91] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5654,7 +5926,7 @@ type Info_Index_PropertyDetail struct { func (x *Info_Index_PropertyDetail) Reset() { *x = Info_Index_PropertyDetail{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[87] + mi := &file_v1_payload_payload_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5667,7 +5939,7 @@ func (x *Info_Index_PropertyDetail) String() string { func (*Info_Index_PropertyDetail) ProtoMessage() {} func (x *Info_Index_PropertyDetail) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[87] + mi := &file_v1_payload_payload_proto_msgTypes[92] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5702,7 +5974,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[89] + mi := &file_v1_payload_payload_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5715,7 +5987,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[89] + mi := &file_v1_payload_payload_proto_msgTypes[94] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5750,7 +6022,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[90] + mi := &file_v1_payload_payload_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5763,7 +6035,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[90] + mi := &file_v1_payload_payload_proto_msgTypes[95] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5801,7 +6073,7 @@ type Mirror_Target struct { func (x *Mirror_Target) Reset() { *x = Mirror_Target{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[95] + mi := &file_v1_payload_payload_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5814,7 +6086,7 @@ func (x *Mirror_Target) String() string { func (*Mirror_Target) ProtoMessage() {} func (x *Mirror_Target) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[95] + mi := &file_v1_payload_payload_proto_msgTypes[100] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5857,7 +6129,7 @@ type Mirror_Targets struct { func (x *Mirror_Targets) Reset() { *x = Mirror_Targets{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[96] + mi := &file_v1_payload_payload_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5870,7 +6142,7 @@ func (x *Mirror_Targets) String() string { func (*Mirror_Targets) ProtoMessage() {} func (x *Mirror_Targets) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[96] + mi := &file_v1_payload_payload_proto_msgTypes[101] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5949,12 +6221,12 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x42, @@ -5995,15 +6267,44 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x75, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, - 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0x79, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, - 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, - 0x6f, 0x72, 0x74, 0x1a, 0x3d, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, - 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x73, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, + 0x67, 0x48, 0x65, 0x61, 0x70, 0x10, 0x04, 0x22, 0xc8, 0x04, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, + 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1d, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x1a, 0x6b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, + 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x1a, 0x7a, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x4b, 0x0a, 0x10, + 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x37, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x72, 0x0a, 0x0d, 0x56, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, + 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x43, 0x0a, + 0x0e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, @@ -6037,7 +6338,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, @@ -6081,7 +6382,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x70, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, @@ -6123,7 +6424,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x70, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, @@ -6171,7 +6472,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xba, 0x48, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, @@ -6648,7 +6949,7 @@ func file_v1_payload_payload_proto_rawDescGZIP() []byte { var ( file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 97) + file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 102) file_v1_payload_payload_proto_goTypes = []any{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -6676,84 +6977,88 @@ var ( (*Search_Responses)(nil), // 23: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 24: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 25: payload.v1.Filter.Target - (*Filter_Config)(nil), // 26: payload.v1.Filter.Config - (*Insert_Request)(nil), // 27: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 28: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 29: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 30: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 31: payload.v1.Insert.Config - (*Update_Request)(nil), // 32: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 33: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 34: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 35: payload.v1.Update.MultiObjectRequest - (*Update_TimestampRequest)(nil), // 36: payload.v1.Update.TimestampRequest - (*Update_Config)(nil), // 37: payload.v1.Update.Config - (*Upsert_Request)(nil), // 38: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 39: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 40: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 41: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 42: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 43: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 44: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 45: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 46: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 47: payload.v1.Remove.Config - (*Flush_Request)(nil), // 48: payload.v1.Flush.Request - (*Object_VectorRequest)(nil), // 49: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 50: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 51: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 52: payload.v1.Object.ID - (*Object_IDs)(nil), // 53: payload.v1.Object.IDs - (*Object_Vector)(nil), // 54: payload.v1.Object.Vector - (*Object_TimestampRequest)(nil), // 55: payload.v1.Object.TimestampRequest - (*Object_Timestamp)(nil), // 56: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 57: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 58: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 59: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 60: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 61: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 62: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 63: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 64: payload.v1.Object.Locations - (*Object_List)(nil), // 65: payload.v1.Object.List - (*Object_List_Request)(nil), // 66: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 67: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 68: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 69: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 70: payload.v1.Info.Index - (*Info_Pod)(nil), // 71: payload.v1.Info.Pod - (*Info_Node)(nil), // 72: payload.v1.Info.Node - (*Info_Service)(nil), // 73: payload.v1.Info.Service - (*Info_ServicePort)(nil), // 74: payload.v1.Info.ServicePort - (*Info_Labels)(nil), // 75: payload.v1.Info.Labels - (*Info_Annotations)(nil), // 76: payload.v1.Info.Annotations - (*Info_CPU)(nil), // 77: payload.v1.Info.CPU - (*Info_Memory)(nil), // 78: payload.v1.Info.Memory - (*Info_Pods)(nil), // 79: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 80: payload.v1.Info.Nodes - (*Info_Services)(nil), // 81: payload.v1.Info.Services - (*Info_IPs)(nil), // 82: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 83: payload.v1.Info.Index.Count - (*Info_Index_Detail)(nil), // 84: payload.v1.Info.Index.Detail - (*Info_Index_UUID)(nil), // 85: payload.v1.Info.Index.UUID - (*Info_Index_Statistics)(nil), // 86: payload.v1.Info.Index.Statistics - (*Info_Index_StatisticsDetail)(nil), // 87: payload.v1.Info.Index.StatisticsDetail - (*Info_Index_Property)(nil), // 88: payload.v1.Info.Index.Property - (*Info_Index_PropertyDetail)(nil), // 89: payload.v1.Info.Index.PropertyDetail - nil, // 90: payload.v1.Info.Index.Detail.CountsEntry - (*Info_Index_UUID_Committed)(nil), // 91: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 92: payload.v1.Info.Index.UUID.Uncommitted - nil, // 93: payload.v1.Info.Index.StatisticsDetail.DetailsEntry - nil, // 94: payload.v1.Info.Index.PropertyDetail.DetailsEntry - nil, // 95: payload.v1.Info.Labels.LabelsEntry - nil, // 96: payload.v1.Info.Annotations.AnnotationsEntry - (*Mirror_Target)(nil), // 97: payload.v1.Mirror.Target - (*Mirror_Targets)(nil), // 98: payload.v1.Mirror.Targets - (*wrapperspb.FloatValue)(nil), // 99: google.protobuf.FloatValue - (*status.Status)(nil), // 100: google.rpc.Status + (*Filter_Query)(nil), // 26: payload.v1.Filter.Query + (*Filter_Config)(nil), // 27: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 28: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 29: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 30: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 31: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 32: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 33: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 34: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 35: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 36: payload.v1.Insert.Config + (*Update_Request)(nil), // 37: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 38: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 39: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 40: payload.v1.Update.MultiObjectRequest + (*Update_TimestampRequest)(nil), // 41: payload.v1.Update.TimestampRequest + (*Update_Config)(nil), // 42: payload.v1.Update.Config + (*Upsert_Request)(nil), // 43: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 44: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 45: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 46: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 47: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 48: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 49: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 50: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 51: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 52: payload.v1.Remove.Config + (*Flush_Request)(nil), // 53: payload.v1.Flush.Request + (*Object_VectorRequest)(nil), // 54: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 55: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 56: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 57: payload.v1.Object.ID + (*Object_IDs)(nil), // 58: payload.v1.Object.IDs + (*Object_Vector)(nil), // 59: payload.v1.Object.Vector + (*Object_TimestampRequest)(nil), // 60: payload.v1.Object.TimestampRequest + (*Object_Timestamp)(nil), // 61: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 62: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 63: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 64: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 65: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 66: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 67: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 68: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 69: payload.v1.Object.Locations + (*Object_List)(nil), // 70: payload.v1.Object.List + (*Object_List_Request)(nil), // 71: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 72: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 73: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 74: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 75: payload.v1.Info.Index + (*Info_Pod)(nil), // 76: payload.v1.Info.Pod + (*Info_Node)(nil), // 77: payload.v1.Info.Node + (*Info_Service)(nil), // 78: payload.v1.Info.Service + (*Info_ServicePort)(nil), // 79: payload.v1.Info.ServicePort + (*Info_Labels)(nil), // 80: payload.v1.Info.Labels + (*Info_Annotations)(nil), // 81: payload.v1.Info.Annotations + (*Info_CPU)(nil), // 82: payload.v1.Info.CPU + (*Info_Memory)(nil), // 83: payload.v1.Info.Memory + (*Info_Pods)(nil), // 84: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 85: payload.v1.Info.Nodes + (*Info_Services)(nil), // 86: payload.v1.Info.Services + (*Info_IPs)(nil), // 87: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 88: payload.v1.Info.Index.Count + (*Info_Index_Detail)(nil), // 89: payload.v1.Info.Index.Detail + (*Info_Index_UUID)(nil), // 90: payload.v1.Info.Index.UUID + (*Info_Index_Statistics)(nil), // 91: payload.v1.Info.Index.Statistics + (*Info_Index_StatisticsDetail)(nil), // 92: payload.v1.Info.Index.StatisticsDetail + (*Info_Index_Property)(nil), // 93: payload.v1.Info.Index.Property + (*Info_Index_PropertyDetail)(nil), // 94: payload.v1.Info.Index.PropertyDetail + nil, // 95: payload.v1.Info.Index.Detail.CountsEntry + (*Info_Index_UUID_Committed)(nil), // 96: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 97: payload.v1.Info.Index.UUID.Uncommitted + nil, // 98: payload.v1.Info.Index.StatisticsDetail.DetailsEntry + nil, // 99: payload.v1.Info.Index.PropertyDetail.DetailsEntry + nil, // 100: payload.v1.Info.Labels.LabelsEntry + nil, // 101: payload.v1.Info.Annotations.AnnotationsEntry + (*Mirror_Target)(nil), // 102: payload.v1.Mirror.Target + (*Mirror_Targets)(nil), // 103: payload.v1.Mirror.Targets + (*wrapperspb.FloatValue)(nil), // 104: google.protobuf.FloatValue + (*status.Status)(nil), // 105: google.rpc.Status } ) - var file_v1_payload_payload_proto_depIdxs = []int32{ 21, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config 15, // 1: payload.v1.Search.MultiRequest.requests:type_name -> payload.v1.Search.Request @@ -6762,85 +7067,92 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 21, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 25, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 19, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 26, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 26, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 27, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 27, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 99, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue - 50, // 11: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 104, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue + 55, // 11: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 22, // 12: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 22, // 13: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 100, // 14: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 25, // 15: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 54, // 16: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 31, // 17: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 27, // 18: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 60, // 19: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 31, // 20: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 25, // 21: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 29, // 22: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 26, // 23: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 54, // 24: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 37, // 25: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 32, // 26: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 60, // 27: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 37, // 28: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 25, // 29: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 34, // 30: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 26, // 31: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 54, // 32: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 42, // 33: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 38, // 34: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 60, // 35: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 42, // 36: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 25, // 37: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 40, // 38: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 26, // 39: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 52, // 40: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 47, // 41: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 43, // 42: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 46, // 43: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 44: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 52, // 45: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 26, // 46: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 50, // 47: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 100, // 48: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 52, // 49: payload.v1.Object.TimestampRequest.id:type_name -> payload.v1.Object.ID - 54, // 50: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 54, // 51: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 100, // 52: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 60, // 53: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 100, // 54: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 62, // 55: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 100, // 56: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 62, // 57: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 54, // 58: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 100, // 59: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 77, // 60: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 78, // 61: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 72, // 62: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 77, // 63: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 78, // 64: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 79, // 65: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 74, // 66: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort - 75, // 67: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels - 76, // 68: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations - 95, // 69: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry - 96, // 70: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry - 71, // 71: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 72, // 72: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 73, // 73: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service - 90, // 74: payload.v1.Info.Index.Detail.counts:type_name -> payload.v1.Info.Index.Detail.CountsEntry - 93, // 75: payload.v1.Info.Index.StatisticsDetail.details:type_name -> payload.v1.Info.Index.StatisticsDetail.DetailsEntry - 94, // 76: payload.v1.Info.Index.PropertyDetail.details:type_name -> payload.v1.Info.Index.PropertyDetail.DetailsEntry - 83, // 77: payload.v1.Info.Index.Detail.CountsEntry.value:type_name -> payload.v1.Info.Index.Count - 86, // 78: payload.v1.Info.Index.StatisticsDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Statistics - 88, // 79: payload.v1.Info.Index.PropertyDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Property - 97, // 80: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target - 81, // [81:81] is the sub-list for method output_type - 81, // [81:81] is the sub-list for method input_type - 81, // [81:81] is the sub-list for extension type_name - 81, // [81:81] is the sub-list for extension extendee - 0, // [0:81] is the sub-list for field type_name + 105, // 14: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 25, // 15: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 26, // 16: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 55, // 17: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 26, // 18: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 55, // 19: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 59, // 20: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 26, // 21: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 59, // 22: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 59, // 23: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 36, // 24: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 32, // 25: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 65, // 26: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 36, // 27: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 25, // 28: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 34, // 29: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 27, // 30: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 59, // 31: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 42, // 32: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 37, // 33: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 65, // 34: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 42, // 35: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 25, // 36: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 39, // 37: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 27, // 38: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 59, // 39: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 47, // 40: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 43, // 41: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 65, // 42: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 47, // 43: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 25, // 44: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 45, // 45: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 27, // 46: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 57, // 47: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 52, // 48: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 48, // 49: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 51, // 50: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 51: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 57, // 52: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 27, // 53: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 55, // 54: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 105, // 55: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 57, // 56: payload.v1.Object.TimestampRequest.id:type_name -> payload.v1.Object.ID + 59, // 57: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 59, // 58: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 105, // 59: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 65, // 60: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 105, // 61: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 67, // 62: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 105, // 63: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 67, // 64: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 59, // 65: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 105, // 66: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 82, // 67: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 83, // 68: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 77, // 69: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 82, // 70: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 83, // 71: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 84, // 72: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 79, // 73: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort + 80, // 74: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels + 81, // 75: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations + 100, // 76: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry + 101, // 77: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry + 76, // 78: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 77, // 79: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 78, // 80: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service + 95, // 81: payload.v1.Info.Index.Detail.counts:type_name -> payload.v1.Info.Index.Detail.CountsEntry + 98, // 82: payload.v1.Info.Index.StatisticsDetail.details:type_name -> payload.v1.Info.Index.StatisticsDetail.DetailsEntry + 99, // 83: payload.v1.Info.Index.PropertyDetail.details:type_name -> payload.v1.Info.Index.PropertyDetail.DetailsEntry + 88, // 84: payload.v1.Info.Index.Detail.CountsEntry.value:type_name -> payload.v1.Info.Index.Count + 91, // 85: payload.v1.Info.Index.StatisticsDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Statistics + 93, // 86: payload.v1.Info.Index.PropertyDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Property + 102, // 87: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target + 88, // [88:88] is the sub-list for method output_type + 88, // [88:88] is the sub-list for method input_type + 88, // [88:88] is the sub-list for extension type_name + 88, // [88:88] is the sub-list for extension extendee + 0, // [0:88] is the sub-list for field type_name } func init() { file_v1_payload_payload_proto_init() } @@ -7138,7 +7450,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -7150,7 +7462,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -7162,7 +7474,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -7174,7 +7486,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -7186,7 +7498,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -7198,7 +7510,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[29].Exporter = func(v any, i int) any { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -7210,7 +7522,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[30].Exporter = func(v any, i int) any { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -7222,7 +7534,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[31].Exporter = func(v any, i int) any { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -7234,7 +7546,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[32].Exporter = func(v any, i int) any { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -7246,7 +7558,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[33].Exporter = func(v any, i int) any { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -7258,7 +7570,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[34].Exporter = func(v any, i int) any { - switch v := v.(*Update_TimestampRequest); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -7270,7 +7582,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[35].Exporter = func(v any, i int) any { - switch v := v.(*Update_Config); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -7282,7 +7594,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[36].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -7294,7 +7606,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[37].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -7306,7 +7618,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[38].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -7318,7 +7630,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[39].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_TimestampRequest); i { case 0: return &v.state case 1: @@ -7330,7 +7642,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[40].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -7342,7 +7654,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[41].Exporter = func(v any, i int) any { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -7354,7 +7666,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[42].Exporter = func(v any, i int) any { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -7366,7 +7678,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[43].Exporter = func(v any, i int) any { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -7378,7 +7690,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[44].Exporter = func(v any, i int) any { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -7390,7 +7702,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[45].Exporter = func(v any, i int) any { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -7402,7 +7714,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[46].Exporter = func(v any, i int) any { - switch v := v.(*Flush_Request); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -7414,7 +7726,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[47].Exporter = func(v any, i int) any { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -7426,7 +7738,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[48].Exporter = func(v any, i int) any { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -7438,7 +7750,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[49].Exporter = func(v any, i int) any { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -7450,7 +7762,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[50].Exporter = func(v any, i int) any { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -7462,7 +7774,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[51].Exporter = func(v any, i int) any { - switch v := v.(*Object_IDs); i { + switch v := v.(*Flush_Request); i { case 0: return &v.state case 1: @@ -7474,7 +7786,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[52].Exporter = func(v any, i int) any { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -7486,7 +7798,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[53].Exporter = func(v any, i int) any { - switch v := v.(*Object_TimestampRequest); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -7498,7 +7810,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[54].Exporter = func(v any, i int) any { - switch v := v.(*Object_Timestamp); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -7510,7 +7822,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[55].Exporter = func(v any, i int) any { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -7522,7 +7834,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[56].Exporter = func(v any, i int) any { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -7534,7 +7846,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[57].Exporter = func(v any, i int) any { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -7546,7 +7858,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[58].Exporter = func(v any, i int) any { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_TimestampRequest); i { case 0: return &v.state case 1: @@ -7558,7 +7870,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[59].Exporter = func(v any, i int) any { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Timestamp); i { case 0: return &v.state case 1: @@ -7570,7 +7882,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[60].Exporter = func(v any, i int) any { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -7582,7 +7894,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[61].Exporter = func(v any, i int) any { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -7594,7 +7906,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[62].Exporter = func(v any, i int) any { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -7606,7 +7918,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[63].Exporter = func(v any, i int) any { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -7618,7 +7930,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[64].Exporter = func(v any, i int) any { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -7630,7 +7942,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[65].Exporter = func(v any, i int) any { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -7642,7 +7954,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[66].Exporter = func(v any, i int) any { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -7654,7 +7966,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[67].Exporter = func(v any, i int) any { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -7666,7 +7978,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[68].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -7678,7 +7990,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[69].Exporter = func(v any, i int) any { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -7690,7 +8002,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[70].Exporter = func(v any, i int) any { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -7702,7 +8014,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[71].Exporter = func(v any, i int) any { - switch v := v.(*Info_Service); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -7714,7 +8026,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[72].Exporter = func(v any, i int) any { - switch v := v.(*Info_ServicePort); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -7726,7 +8038,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[73].Exporter = func(v any, i int) any { - switch v := v.(*Info_Labels); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -7738,7 +8050,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[74].Exporter = func(v any, i int) any { - switch v := v.(*Info_Annotations); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -7750,7 +8062,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[75].Exporter = func(v any, i int) any { - switch v := v.(*Info_CPU); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -7762,7 +8074,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[76].Exporter = func(v any, i int) any { - switch v := v.(*Info_Memory); i { + switch v := v.(*Info_Service); i { case 0: return &v.state case 1: @@ -7774,7 +8086,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[77].Exporter = func(v any, i int) any { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_ServicePort); i { case 0: return &v.state case 1: @@ -7786,7 +8098,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[78].Exporter = func(v any, i int) any { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Labels); i { case 0: return &v.state case 1: @@ -7798,7 +8110,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[79].Exporter = func(v any, i int) any { - switch v := v.(*Info_Services); i { + switch v := v.(*Info_Annotations); i { case 0: return &v.state case 1: @@ -7810,7 +8122,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[80].Exporter = func(v any, i int) any { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -7822,7 +8134,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[81].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -7834,7 +8146,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[82].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_Detail); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -7846,7 +8158,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[83].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Nodes); i { case 0: return &v.state case 1: @@ -7858,7 +8170,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[84].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_Statistics); i { + switch v := v.(*Info_Services); i { case 0: return &v.state case 1: @@ -7870,7 +8182,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[85].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_StatisticsDetail); i { + switch v := v.(*Info_IPs); i { case 0: return &v.state case 1: @@ -7882,7 +8194,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[86].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_Property); i { + switch v := v.(*Info_Index_Count); i { case 0: return &v.state case 1: @@ -7894,7 +8206,19 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[87].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_PropertyDetail); i { + switch v := v.(*Info_Index_Detail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[88].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_UUID); i { case 0: return &v.state case 1: @@ -7906,7 +8230,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[89].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Index_Statistics); i { case 0: return &v.state case 1: @@ -7918,7 +8242,43 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[90].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_UUID_Uncommitted); i { + switch v := v.(*Info_Index_StatisticsDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[91].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_Property); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[92].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_PropertyDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[94].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_UUID_Committed); i { case 0: return &v.state case 1: @@ -7930,6 +8290,18 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[95].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_UUID_Uncommitted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[100].Exporter = func(v any, i int) any { switch v := v.(*Mirror_Target); i { case 0: return &v.state @@ -7941,7 +8313,7 @@ func file_v1_payload_payload_proto_init() { return nil } } - file_v1_payload_payload_proto_msgTypes[96].Exporter = func(v any, i int) any { + file_v1_payload_payload_proto_msgTypes[101].Exporter = func(v any, i int) any { switch v := v.(*Mirror_Targets); i { case 0: return &v.state @@ -7958,23 +8330,23 @@ func file_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[49].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[54].OneofWrappers = []any{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[56].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[61].OneofWrappers = []any{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[59].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[64].OneofWrappers = []any{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[61].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[66].OneofWrappers = []any{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[65].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[70].OneofWrappers = []any{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -7984,7 +8356,7 @@ func file_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 97, + NumMessages: 102, NumExtensions: 0, NumServices: 0, }, diff --git a/apis/grpc/v1/payload/payload_vtproto.pb.go b/apis/grpc/v1/payload/payload_vtproto.pb.go index 3b9b0a63ee..56cde5d004 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -179,12 +179,24 @@ func (m *Search_Config) CloneVT() *Search_Config { r.Radius = m.Radius r.Epsilon = m.Epsilon r.Timeout = m.Timeout - r.IngressFilters = m.IngressFilters.CloneVT() - r.EgressFilters = m.EgressFilters.CloneVT() r.MinNum = m.MinNum r.AggregationAlgorithm = m.AggregationAlgorithm r.Ratio = (*wrapperspb.FloatValue)((*wrapperspb1.FloatValue)(m.Ratio).CloneVT()) r.Nprobe = m.Nprobe + if rhs := m.IngressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.IngressFilters = tmpContainer + } + if rhs := m.EgressFilters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.EgressFilters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -322,17 +334,53 @@ func (m *Filter_Target) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *Filter_Query) CloneVT() *Filter_Query { + if m == nil { + return (*Filter_Query)(nil) + } + r := new(Filter_Query) + r.Query = m.Query + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Query) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *Filter_Config) CloneVT() *Filter_Config { if m == nil { return (*Filter_Config)(nil) } r := new(Filter_Config) - if rhs := m.Targets; rhs != nil { - tmpContainer := make([]*Filter_Target, len(rhs)) + r.Target = m.Target.CloneVT() + r.Query = m.Query.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_Config) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceRequest) CloneVT() *Filter_DistanceRequest { + if m == nil { + return (*Filter_DistanceRequest)(nil) + } + r := new(Filter_DistanceRequest) + r.Query = m.Query.CloneVT() + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } - r.Targets = tmpContainer + r.Distance = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) @@ -341,7 +389,65 @@ func (m *Filter_Config) CloneVT() *Filter_Config { return r } -func (m *Filter_Config) CloneMessageVT() proto.Message { +func (m *Filter_DistanceRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_DistanceResponse) CloneVT() *Filter_DistanceResponse { + if m == nil { + return (*Filter_DistanceResponse)(nil) + } + r := new(Filter_DistanceResponse) + if rhs := m.Distance; rhs != nil { + tmpContainer := make([]*Object_Distance, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Distance = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_DistanceResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorRequest) CloneVT() *Filter_VectorRequest { + if m == nil { + return (*Filter_VectorRequest)(nil) + } + r := new(Filter_VectorRequest) + r.Vector = m.Vector.CloneVT() + r.Query = m.Query.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *Filter_VectorResponse) CloneVT() *Filter_VectorResponse { + if m == nil { + return (*Filter_VectorResponse)(nil) + } + r := new(Filter_VectorResponse) + r.Vector = m.Vector.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *Filter_VectorResponse) CloneMessageVT() proto.Message { return m.CloneVT() } @@ -450,8 +556,14 @@ func (m *Insert_Config) CloneVT() *Insert_Config { } r := new(Insert_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -587,9 +699,15 @@ func (m *Update_Config) CloneVT() *Update_Config { } r := new(Update_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp r.DisableBalancedUpdate = m.DisableBalancedUpdate + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -706,9 +824,15 @@ func (m *Upsert_Config) CloneVT() *Upsert_Config { } r := new(Upsert_Config) r.SkipStrictExistCheck = m.SkipStrictExistCheck - r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp r.DisableBalancedUpdate = m.DisableBalancedUpdate + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -890,7 +1014,13 @@ func (m *Object_VectorRequest) CloneVT() *Object_VectorRequest { } r := new(Object_VectorRequest) r.Id = m.Id.CloneVT() - r.Filters = m.Filters.CloneVT() + if rhs := m.Filters; rhs != nil { + tmpContainer := make([]*Filter_Config, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.Filters = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -2301,12 +2431,40 @@ func (this *Search_Config) EqualVT(that *Search_Config) bool { if this.Timeout != that.Timeout { return false } - if !this.IngressFilters.EqualVT(that.IngressFilters) { + if len(this.IngressFilters) != len(that.IngressFilters) { return false } - if !this.EgressFilters.EqualVT(that.EgressFilters) { + for i, vx := range this.IngressFilters { + vy := that.IngressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.EgressFilters) != len(that.EgressFilters) { return false } + for i, vx := range this.EgressFilters { + vy := that.EgressFilters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.MinNum != that.MinNum { return false } @@ -2526,34 +2684,157 @@ func (this *Filter_Target) EqualMessageVT(thatMsg proto.Message) bool { return this.EqualVT(that) } +func (this *Filter_Query) EqualVT(that *Filter_Query) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Query != that.Query { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Query) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Query) + if !ok { + return false + } + return this.EqualVT(that) +} + func (this *Filter_Config) EqualVT(that *Filter_Config) bool { if this == that { return true } else if this == nil || that == nil { return false } - if len(this.Targets) != len(that.Targets) { + if !this.Target.EqualVT(that.Target) { return false } - for i, vx := range this.Targets { - vy := that.Targets[i] + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_Config) + if !ok { + return false + } + return this.EqualVT(that) +} + +func (this *Filter_DistanceRequest) EqualVT(that *Filter_DistanceRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { + return false + } + for i, vx := range this.Distance { + vy := that.Distance[i] if p, q := vx, vy; p != q { if p == nil { - p = &Filter_Target{} + p = &Object_Distance{} } if q == nil { - q = &Filter_Target{} + q = &Object_Distance{} } if !p.EqualVT(q) { return false } } } + if !this.Query.EqualVT(that.Query) { + return false + } return string(this.unknownFields) == string(that.unknownFields) } -func (this *Filter_Config) EqualMessageVT(thatMsg proto.Message) bool { - that, ok := thatMsg.(*Filter_Config) +func (this *Filter_DistanceRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceRequest) + if !ok { + return false + } + return this.EqualVT(that) +} + +func (this *Filter_DistanceResponse) EqualVT(that *Filter_DistanceResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Distance) != len(that.Distance) { + return false + } + for i, vx := range this.Distance { + vy := that.Distance[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Object_Distance{} + } + if q == nil { + q = &Object_Distance{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_DistanceResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_DistanceResponse) + if !ok { + return false + } + return this.EqualVT(that) +} + +func (this *Filter_VectorRequest) EqualVT(that *Filter_VectorRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + if !this.Query.EqualVT(that.Query) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorRequest) + if !ok { + return false + } + return this.EqualVT(that) +} + +func (this *Filter_VectorResponse) EqualVT(that *Filter_VectorResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Vector.EqualVT(that.Vector) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Filter_VectorResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Filter_VectorResponse) if !ok { return false } @@ -2703,9 +2984,23 @@ func (this *Insert_Config) EqualVT(that *Insert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -2889,9 +3184,23 @@ func (this *Update_Config) EqualVT(that *Update_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -3052,9 +3361,23 @@ func (this *Upsert_Config) EqualVT(that *Upsert_Config) bool { if this.SkipStrictExistCheck != that.SkipStrictExistCheck { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } if this.Timestamp != that.Timestamp { return false } @@ -3286,10 +3609,24 @@ func (this *Object_VectorRequest) EqualVT(that *Object_VectorRequest) bool { if !this.Id.EqualVT(that.Id) { return false } - if !this.Filters.EqualVT(that.Filters) { + if len(this.Filters) != len(that.Filters) { return false } - return string(this.unknownFields) == string(that.unknownFields) + for i, vx := range this.Filters { + vy := that.Filters[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Filter_Config{} + } + if q == nil { + q = &Filter_Config{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) } func (this *Object_VectorRequest) EqualMessageVT(thatMsg proto.Message) bool { @@ -5469,25 +5806,29 @@ func (m *Search_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x40 } - if m.EgressFilters != nil { - size, err := m.EgressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.EgressFilters) > 0 { + for iNdEx := len(m.EgressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.EgressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x3a } - if m.IngressFilters != nil { - size, err := m.IngressFilters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.IngressFilters) > 0 { + for iNdEx := len(m.IngressFilters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.IngressFilters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 } if m.Timeout != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timeout)) @@ -5790,7 +6131,7 @@ func (m *Filter_Target) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Query) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5803,12 +6144,12 @@ func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Query) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5820,22 +6161,17 @@ func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Targets) > 0 { - for iNdEx := len(m.Targets) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Targets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } + if len(m.Query) > 0 { + i -= len(m.Query) + copy(dAtA[i:], m.Query) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Query))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Filter) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5848,12 +6184,12 @@ func (m *Filter) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5865,10 +6201,30 @@ func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Target != nil { + size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5881,12 +6237,12 @@ func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5898,8 +6254,8 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5908,20 +6264,22 @@ func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_DistanceResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5934,12 +6292,12 @@ func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_DistanceResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5951,9 +6309,9 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Distance) > 0 { + for iNdEx := len(m.Distance) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Distance[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -5966,7 +6324,7 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5979,12 +6337,12 @@ func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5996,18 +6354,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Vectorizer != nil { - size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a - } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if m.Query != nil { + size, err := m.Query.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6016,8 +6364,8 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i-- dAtA[i] = 0x12 } - if m.Object != nil { - size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6029,52 +6377,7 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.Requests) > 0 { - for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Filter_VectorResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6087,12 +6390,12 @@ func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter_VectorResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6104,35 +6407,20 @@ func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x12 - } - if m.SkipStrictExistCheck { - i-- - if m.SkipStrictExistCheck { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert) MarshalVT() (dAtA []byte, err error) { +func (m *Filter) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6145,12 +6433,12 @@ func (m *Insert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6165,7 +6453,7 @@ func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6178,12 +6466,12 @@ func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6218,7 +6506,7 @@ func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6231,12 +6519,12 @@ func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6263,7 +6551,7 @@ func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6276,12 +6564,12 @@ func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6326,7 +6614,7 @@ func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6339,12 +6627,12 @@ func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6371,7 +6659,7 @@ func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Update_TimestampRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6384,12 +6672,12 @@ func (m *Update_TimestampRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6401,32 +6689,37 @@ func (m *Update_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Force { + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- - if m.Force { + dAtA[i] = 0x18 + } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.SkipStrictExistCheck { + i-- + if m.SkipStrictExistCheck { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- - dAtA[i] = 0x18 - } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x10 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Insert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6439,80 +6732,12 @@ func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if m.DisableBalancedUpdate { - i-- - if m.DisableBalancedUpdate { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } - if m.SkipStrictExistCheck { - i-- - if m.SkipStrictExistCheck { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Update) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Update) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6527,7 +6752,7 @@ func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Update_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6540,12 +6765,12 @@ func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6580,7 +6805,7 @@ func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6593,12 +6818,12 @@ func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6625,7 +6850,7 @@ func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6638,12 +6863,12 @@ func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6688,7 +6913,7 @@ func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Update_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6701,12 +6926,12 @@ func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6733,7 +6958,7 @@ func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Update_TimestampRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6746,12 +6971,67 @@ func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Force { + i-- + if m.Force { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x10 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Update_Config) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Update_Config) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Update_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6778,15 +7058,17 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 } if m.SkipStrictExistCheck { i-- @@ -6801,7 +7083,7 @@ func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Upsert) MarshalVT() (dAtA []byte, err error) { +func (m *Update) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6814,12 +7096,12 @@ func (m *Upsert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Update) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6834,7 +7116,7 @@ func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6847,12 +7129,12 @@ func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6874,8 +7156,8 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Id != nil { - size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6887,7 +7169,7 @@ func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6900,12 +7182,12 @@ func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6932,7 +7214,7 @@ func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6945,12 +7227,12 @@ func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6962,22 +7244,40 @@ func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Timestamps) > 0 { - for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + if m.Vectorizer != nil { + size, err := m.Vectorizer.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Object != nil { + size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6990,12 +7290,12 @@ func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7007,20 +7307,22 @@ func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Operator != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Operator)) - i-- - dAtA[i] = 0x10 - } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x8 + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7033,12 +7335,12 @@ func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7050,11 +7352,33 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.DisableBalancedUpdate { + i-- + if m.DisableBalancedUpdate { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } if m.Timestamp != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- dAtA[i] = 0x18 } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } if m.SkipStrictExistCheck { i-- if m.SkipStrictExistCheck { @@ -7068,7 +7392,7 @@ func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Remove) MarshalVT() (dAtA []byte, err error) { +func (m *Upsert) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7081,12 +7405,12 @@ func (m *Remove) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Upsert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7101,7 +7425,7 @@ func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Flush_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7114,12 +7438,12 @@ func (m *Flush_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Flush_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Flush_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7131,10 +7455,30 @@ func (m *Flush_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Id != nil { + size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Flush) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7147,12 +7491,12 @@ func (m *Flush) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Flush) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Flush) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7164,10 +7508,22 @@ func (m *Flush) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } return len(dAtA) - i, nil } -func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_TimestampRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7180,12 +7536,12 @@ func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7197,30 +7553,22 @@ func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } - if m.Id != nil { - size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Timestamps) > 0 { + for iNdEx := len(m.Timestamps) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Timestamps[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Timestamp) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7233,12 +7581,12 @@ func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7250,23 +7598,20 @@ func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Distance != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) + if m.Operator != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Operator)) i-- - dAtA[i] = 0x15 + dAtA[i] = 0x10 } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { +func (m *Remove_Config) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7279,12 +7624,12 @@ func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamDistance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove_Config) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7296,71 +7641,58 @@ func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Payload.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if m.SkipStrictExistCheck { + i-- + if m.SkipStrictExistCheck { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i -= size + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Object_StreamDistance_Distance) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_StreamDistance_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Distance != nil { - size, err := m.Distance.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return dAtA[:n], nil } -func (m *Object_StreamDistance_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Remove) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamDistance_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.Status != nil { - if vtmsg, ok := any(m.Status).(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - } else { - encoded, err := proto.Marshal(m.Status) - if err != nil { - return 0, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) - } - i-- - dAtA[i] = 0x12 + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } return len(dAtA) - i, nil } -func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { +func (m *Flush_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7373,12 +7705,12 @@ func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_ID) MarshalToVT(dAtA []byte) (int, error) { +func (m *Flush_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Flush_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7390,17 +7722,10 @@ func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { +func (m *Flush) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7413,12 +7738,12 @@ func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_IDs) MarshalToVT(dAtA []byte) (int, error) { +func (m *Flush) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Flush) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7430,19 +7755,10 @@ func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Ids) > 0 { - for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ids[iNdEx]) - copy(dAtA[i:], m.Ids[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ids[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } return len(dAtA) - i, nil } -func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_VectorRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7455,12 +7771,12 @@ func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_VectorRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_VectorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7472,60 +7788,17 @@ func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x18 - } - if len(m.Vector) > 0 { - for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { - f1 := math.Float32bits(float32(m.Vector[iNdEx])) - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Filters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Vector)*4)) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Object_TimestampRequest) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Object_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) } if m.Id != nil { size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) @@ -7540,7 +7813,7 @@ func (m *Object_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *Object_Timestamp) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Distance) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7553,12 +7826,12 @@ func (m *Object_Timestamp) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Timestamp) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Distance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7570,10 +7843,11 @@ func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Timestamp != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + if m.Distance != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Distance)))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x15 } if len(m.Id) > 0 { i -= len(m.Id) @@ -7585,52 +7859,7 @@ func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_Vectors) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Object_Vectors) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Object_Vectors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if len(m.Vectors) > 0 { - for iNdEx := len(m.Vectors) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Vectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamDistance) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7643,12 +7872,12 @@ func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamVector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7672,15 +7901,15 @@ func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Object_StreamVector_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Distance) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Distance) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if m.Distance != nil { + size, err := m.Distance.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -7692,12 +7921,12 @@ func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *Object_StreamVector_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamDistance_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := any(m.Status).(interface { @@ -7724,7 +7953,7 @@ func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { +func (m *Object_ID) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7737,12 +7966,12 @@ func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_ReshapeVector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_ID) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_ID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7754,38 +7983,17 @@ func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Shape) > 0 { - var pksize2 int - for _, num := range m.Shape { - pksize2 += protohelpers.SizeOfVarint(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num1 := range m.Shape { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x12 - } - if len(m.Object) > 0 { - i -= len(m.Object) - copy(dAtA[i:], m.Object) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { +func (m *Object_IDs) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7798,12 +8006,12 @@ func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Blob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_IDs) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_IDs) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7815,24 +8023,19 @@ func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Object) > 0 { - i -= len(m.Object) - copy(dAtA[i:], m.Object) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ids[iNdEx]) + copy(dAtA[i:], m.Ids[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ids[iNdEx]))) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Vector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7845,12 +8048,12 @@ func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamBlob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Vector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7862,27 +8065,63 @@ func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Payload.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if len(m.Vector) > 0 { + for iNdEx := len(m.Vector) - 1; iNdEx >= 0; iNdEx-- { + f1 := math.Float32bits(float32(m.Vector[iNdEx])) + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) } - i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Vector)*4)) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_StreamBlob_Blob) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_TimestampRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_TimestampRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_TimestampRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.Blob != nil { - size, err := m.Blob.MarshalToSizedBufferVT(dAtA[:i]) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Id != nil { + size, err := m.Id.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -7894,39 +8133,52 @@ func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *Object_StreamBlob_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Timestamp) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Object_Timestamp) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamBlob_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.Status != nil { - if vtmsg, ok := any(m.Status).(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - } else { - encoded, err := proto.Marshal(m.Status) - if err != nil { - return 0, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) - } + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Vectors) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7939,12 +8191,12 @@ func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Location) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Vectors) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Vectors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -7956,33 +8208,22 @@ func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Ips) > 0 { - for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ips[iNdEx]) - copy(dAtA[i:], m.Ips[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ips[iNdEx]))) + if len(m.Vectors) > 0 { + for iNdEx := len(m.Vectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Vectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa } } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamVector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -7995,12 +8236,12 @@ func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_StreamLocation) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8024,15 +8265,15 @@ func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_StreamLocation_Location) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Vector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Location != nil { - size, err := m.Location.MarshalToSizedBufferVT(dAtA[:i]) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -8044,12 +8285,12 @@ func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *Object_StreamLocation_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamVector_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := any(m.Status).(interface { @@ -8076,7 +8317,7 @@ func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { +func (m *Object_ReshapeVector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8089,12 +8330,12 @@ func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_Locations) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_ReshapeVector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_ReshapeVector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8106,22 +8347,38 @@ func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Locations) > 0 { - for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Locations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Shape) > 0 { + var pksize2 int + for _, num := range m.Shape { + pksize2 += protohelpers.SizeOfVarint(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range m.Shape { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + dAtA[j1] = uint8(num) + j1++ } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x12 + } + if len(m.Object) > 0 { + i -= len(m.Object) + copy(dAtA[i:], m.Object) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Blob) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8134,12 +8391,12 @@ func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8151,10 +8408,24 @@ func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Object) > 0 { + i -= len(m.Object) + copy(dAtA[i:], m.Object) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Object))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamBlob) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8167,12 +8438,12 @@ func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List_Response) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8196,15 +8467,15 @@ func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *Object_List_Response_Vector) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Blob) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if m.Blob != nil { + size, err := m.Blob.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -8216,12 +8487,12 @@ func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Object_List_Response_Status) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamBlob_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) if m.Status != nil { if vtmsg, ok := any(m.Status).(interface { @@ -8248,7 +8519,7 @@ func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Object_List) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Location) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8261,12 +8532,12 @@ func (m *Object_List) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object_List) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Location) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8278,10 +8549,33 @@ func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Ips) > 0 { + for iNdEx := len(m.Ips) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ips[iNdEx]) + copy(dAtA[i:], m.Ips[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ips[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Object) MarshalVT() (dAtA []byte, err error) { +func (m *Object_StreamLocation) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8294,12 +8588,12 @@ func (m *Object) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Object) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8311,81 +8605,71 @@ func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - return len(dAtA) - i, nil -} - -func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err + if vtmsg, ok := m.Payload.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - return dAtA[:n], nil + return len(dAtA) - i, nil } -func (m *Control_CreateIndexRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation_Location) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } +func (m *Object_StreamLocation_Location) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) - } - if m.PoolSize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PoolSize)) + if m.Location != nil { + size, err := m.Location.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Control) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Control) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_StreamLocation_Status) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } +func (m *Object_StreamLocation_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) + if m.Status != nil { + if vtmsg, ok := any(m.Status).(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + } else { + encoded, err := proto.Marshal(m.Status) + if err != nil { + return 0, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) + } + i-- + dAtA[i] = 0x12 } return len(dAtA) - i, nil } -func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Object_Locations) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8398,12 +8682,12 @@ func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Discoverer_Request) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_Locations) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_Locations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8415,31 +8699,22 @@ func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Node) > 0 { - i -= len(m.Node) - copy(dAtA[i:], m.Node) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Node))) - i-- - dAtA[i] = 0x1a - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if len(m.Locations) > 0 { + for iNdEx := len(m.Locations) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Locations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8452,12 +8727,12 @@ func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Discoverer) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8472,7 +8747,7 @@ func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List_Response) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8485,12 +8760,12 @@ func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_Count) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List_Response) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8502,40 +8777,71 @@ func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Saving { - i-- - if m.Saving { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if vtmsg, ok := m.Payload.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i -= size } - if m.Indexing { - i-- - if m.Indexing { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + return len(dAtA) - i, nil +} + +func (m *Object_List_Response_Vector) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_List_Response_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x18 - } - if m.Uncommitted != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Uncommitted)) - i-- - dAtA[i] = 0x10 + dAtA[i] = 0xa } - if m.Stored != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Stored)) + return len(dAtA) - i, nil +} + +func (m *Object_List_Response_Status) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Object_List_Response_Status) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Status != nil { + if vtmsg, ok := any(m.Status).(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + } else { + encoded, err := proto.Marshal(m.Status) + if err != nil { + return 0, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) + } i-- - dAtA[i] = 0x8 + dAtA[i] = 0x12 } return len(dAtA) - i, nil } -func (m *Info_Index_Detail) MarshalVT() (dAtA []byte, err error) { +func (m *Object_List) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8548,12 +8854,12 @@ func (m *Info_Index_Detail) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_Detail) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object_List) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_Detail) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object_List) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8565,42 +8871,10 @@ func (m *Info_Index_Detail) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.LiveAgents != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.LiveAgents)) - i-- - dAtA[i] = 0x18 - } - if m.Replica != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Replica)) - i-- - dAtA[i] = 0x10 - } - if len(m.Counts) > 0 { - for k := range m.Counts { - v := m.Counts[k] - baseI := i - size, err := v.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } return len(dAtA) - i, nil } -func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { +func (m *Object) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8613,12 +8887,12 @@ func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_UUID_Committed) MarshalToVT(dAtA []byte) (int, error) { +func (m *Object) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Object) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8630,17 +8904,10 @@ func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, er i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Info_Index_UUID_Uncommitted) MarshalVT() (dAtA []byte, err error) { +func (m *Control_CreateIndexRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8653,12 +8920,12 @@ func (m *Info_Index_UUID_Uncommitted) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_UUID_Uncommitted) MarshalToVT(dAtA []byte) (int, error) { +func (m *Control_CreateIndexRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_UUID_Uncommitted) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Control_CreateIndexRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8670,17 +8937,15 @@ func (m *Info_Index_UUID_Uncommitted) MarshalToSizedBufferVT(dAtA []byte) (int, i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) + if m.PoolSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PoolSize)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Info_Index_UUID) MarshalVT() (dAtA []byte, err error) { +func (m *Control) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8693,12 +8958,12 @@ func (m *Info_Index_UUID) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_UUID) MarshalToVT(dAtA []byte) (int, error) { +func (m *Control) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_UUID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Control) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8713,7 +8978,7 @@ func (m *Info_Index_UUID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Info_Index_Statistics) MarshalVT() (dAtA []byte, err error) { +func (m *Discoverer_Request) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -8726,12 +8991,12 @@ func (m *Info_Index_Statistics) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_Statistics) MarshalToVT(dAtA []byte) (int, error) { +func (m *Discoverer_Request) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_Statistics) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Discoverer_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -8743,274 +9008,129 @@ func (m *Info_Index_Statistics) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.IndegreeHistogram) > 0 { - var pksize2 int - for _, num := range m.IndegreeHistogram { - pksize2 += protohelpers.SizeOfVarint(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range m.IndegreeHistogram { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x2 + if len(m.Node) > 0 { + i -= len(m.Node) + copy(dAtA[i:], m.Node) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Node))) i-- - dAtA[i] = 0x8a + dAtA[i] = 0x1a } - if len(m.OutdegreeHistogram) > 0 { - var pksize4 int - for _, num := range m.OutdegreeHistogram { - pksize4 += protohelpers.SizeOfVarint(uint64(num)) - } - i -= pksize4 - j3 := i - for _, num := range m.OutdegreeHistogram { - for num >= 1<<7 { - dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j3++ - } - dAtA[j3] = uint8(num) - j3++ - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize4)) - i-- - dAtA[i] = 0x2 + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) i-- - dAtA[i] = 0x82 + dAtA[i] = 0x12 } - if len(m.IndegreeCount) > 0 { - var pksize6 int - for _, num := range m.IndegreeCount { - pksize6 += protohelpers.SizeOfVarint(uint64(num)) - } - i -= pksize6 - j5 := i - for _, num1 := range m.IndegreeCount { - num := uint64(num1) - for num >= 1<<7 { - dAtA[j5] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j5++ - } - dAtA[j5] = uint8(num) - j5++ - } - i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize6)) - i-- - dAtA[i] = 0x1 + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- - dAtA[i] = 0xfa + dAtA[i] = 0xa } - if m.C99Outdegree != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C99Outdegree)))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xf1 + return len(dAtA) - i, nil +} + +func (m *Discoverer) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if m.C95Outdegree != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C95Outdegree)))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe9 + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if m.C5Indegree != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C5Indegree)))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe1 + return dAtA[:n], nil +} + +func (m *Discoverer) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Discoverer) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - if m.C1Indegree != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C1Indegree)))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd9 + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.MeanNumberOfEdgesPerNode != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanNumberOfEdgesPerNode)))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd1 + return len(dAtA) - i, nil +} + +func (m *Info_Index_Count) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if m.MeanIndegreeDistanceFor10Edges != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanIndegreeDistanceFor10Edges)))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc9 + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if m.MeanEdgeLengthFor10Edges != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanEdgeLengthFor10Edges)))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc1 + return dAtA[:n], nil +} + +func (m *Info_Index_Count) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_Count) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - if m.MeanEdgeLength != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanEdgeLength)))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb9 + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.VarianceOfOutdegree != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.VarianceOfOutdegree)))) + if m.Saving { i-- - dAtA[i] = 0x1 + if m.Saving { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- - dAtA[i] = 0xb1 + dAtA[i] = 0x20 } - if m.VarianceOfIndegree != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.VarianceOfIndegree)))) + if m.Indexing { i-- - dAtA[i] = 0x1 + if m.Indexing { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- - dAtA[i] = 0xa9 + dAtA[i] = 0x18 } - if m.SizeOfRefinementObjectRepository != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SizeOfRefinementObjectRepository)) - i-- - dAtA[i] = 0x1 + if m.Uncommitted != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Uncommitted)) i-- - dAtA[i] = 0xa0 + dAtA[i] = 0x10 } - if m.SizeOfObjectRepository != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SizeOfObjectRepository)) - i-- - dAtA[i] = 0x1 + if m.Stored != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Stored)) i-- - dAtA[i] = 0x98 + dAtA[i] = 0x8 } - if m.NumberOfRemovedObjects != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfRemovedObjects)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 - } - if m.NumberOfObjects != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfObjects)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if m.NumberOfNodesWithoutIndegree != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfNodesWithoutIndegree)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.NumberOfNodesWithoutEdges != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfNodesWithoutEdges)) - i-- - dAtA[i] = 0x78 - } - if m.NumberOfNodes != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfNodes)) - i-- - dAtA[i] = 0x70 - } - if m.NumberOfIndexedObjects != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfIndexedObjects)) - i-- - dAtA[i] = 0x68 - } - if m.NumberOfEdges != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfEdges)) - i-- - dAtA[i] = 0x60 - } - if m.NodesSkippedForIndegreeDistance != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodesSkippedForIndegreeDistance)) - i-- - dAtA[i] = 0x58 - } - if m.NodesSkippedFor10Edges != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodesSkippedFor10Edges)) - i-- - dAtA[i] = 0x50 - } - if m.ModeOutdegree != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ModeOutdegree)) - i-- - dAtA[i] = 0x48 - } - if m.ModeIndegree != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ModeIndegree)) - i-- - dAtA[i] = 0x40 - } - if m.MinNumberOfOutdegree != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinNumberOfOutdegree)) - i-- - dAtA[i] = 0x38 - } - if m.MinNumberOfIndegree != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinNumberOfIndegree)) - i-- - dAtA[i] = 0x30 - } - if m.MaxNumberOfOutdegree != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MaxNumberOfOutdegree)) - i-- - dAtA[i] = 0x28 - } - if m.MaxNumberOfIndegree != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MaxNumberOfIndegree)) - i-- - dAtA[i] = 0x20 - } - if m.MedianOutdegree != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MedianOutdegree)) - i-- - dAtA[i] = 0x18 - } - if m.MedianIndegree != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MedianIndegree)) - i-- - dAtA[i] = 0x10 - } - if m.Valid { - i-- - if m.Valid { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Info_Index_StatisticsDetail) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil + return len(dAtA) - i, nil +} + +func (m *Info_Index_Detail) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) @@ -9021,12 +9141,12 @@ func (m *Info_Index_StatisticsDetail) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_StatisticsDetail) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index_Detail) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_StatisticsDetail) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index_Detail) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9038,9 +9158,19 @@ func (m *Info_Index_StatisticsDetail) MarshalToSizedBufferVT(dAtA []byte) (int, i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Details) > 0 { - for k := range m.Details { - v := m.Details[k] + if m.LiveAgents != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.LiveAgents)) + i-- + dAtA[i] = 0x18 + } + if m.Replica != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Replica)) + i-- + dAtA[i] = 0x10 + } + if len(m.Counts) > 0 { + for k := range m.Counts { + v := m.Counts[k] baseI := i size, err := v.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { @@ -9063,7 +9193,7 @@ func (m *Info_Index_StatisticsDetail) MarshalToSizedBufferVT(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *Info_Index_Property) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Index_UUID_Committed) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9076,12 +9206,12 @@ func (m *Info_Index_Property) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_Property) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index_UUID_Committed) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_Property) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index_UUID_Committed) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9093,242 +9223,385 @@ func (m *Info_Index_Property) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.IncomingEdge != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.IncomingEdge)) - i-- - dAtA[i] = 0x2 + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) i-- - dAtA[i] = 0x90 + dAtA[i] = 0xa } - if m.OutgoingEdge != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OutgoingEdge)) - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x88 + return len(dAtA) - i, nil +} + +func (m *Info_Index_UUID_Uncommitted) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if m.BuildTimeLimit != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.BuildTimeLimit)))) - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x85 + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if m.DynamicEdgeSizeRate != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.DynamicEdgeSizeRate)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xf8 + return dAtA[:n], nil +} + +func (m *Info_Index_UUID_Uncommitted) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_UUID_Uncommitted) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - if m.DynamicEdgeSizeBase != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.DynamicEdgeSizeBase)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xf0 + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.GraphType) > 0 { - i -= len(m.GraphType) - copy(dAtA[i:], m.GraphType) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.GraphType))) - i-- - dAtA[i] = 0x1 + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Uuid))) i-- - dAtA[i] = 0xea + dAtA[i] = 0xa } - if m.BatchSizeForCreation != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BatchSizeForCreation)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe0 + return len(dAtA) - i, nil +} + +func (m *Info_Index_UUID) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if m.TruncationThreadPoolSize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TruncationThreadPoolSize)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd8 + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if len(m.SeedType) > 0 { - i -= len(m.SeedType) - copy(dAtA[i:], m.SeedType) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SeedType))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd2 + return dAtA[:n], nil +} + +func (m *Info_Index_UUID) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_UUID) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - if m.SeedSize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SeedSize)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc8 + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.InsertionRadiusCoefficient != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.InsertionRadiusCoefficient)))) - i-- + return len(dAtA) - i, nil +} + +func (m *Info_Index_Statistics) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Index_Statistics) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Index_Statistics) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.IndegreeHistogram) > 0 { + var pksize2 int + for _, num := range m.IndegreeHistogram { + pksize2 += protohelpers.SizeOfVarint(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range m.IndegreeHistogram { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a + } + if len(m.OutdegreeHistogram) > 0 { + var pksize4 int + for _, num := range m.OutdegreeHistogram { + pksize4 += protohelpers.SizeOfVarint(uint64(num)) + } + i -= pksize4 + j3 := i + for _, num := range m.OutdegreeHistogram { + for num >= 1<<7 { + dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA[j3] = uint8(num) + j3++ + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize4)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x82 + } + if len(m.IndegreeCount) > 0 { + var pksize6 int + for _, num := range m.IndegreeCount { + pksize6 += protohelpers.SizeOfVarint(uint64(num)) + } + i -= pksize6 + j5 := i + for _, num1 := range m.IndegreeCount { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j5] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j5++ + } + dAtA[j5] = uint8(num) + j5++ + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize6)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xfa + } + if m.C99Outdegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C99Outdegree)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf1 + } + if m.C95Outdegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C95Outdegree)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe9 + } + if m.C5Indegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C5Indegree)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe1 + } + if m.C1Indegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.C1Indegree)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd9 + } + if m.MeanNumberOfEdgesPerNode != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanNumberOfEdgesPerNode)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd1 + } + if m.MeanIndegreeDistanceFor10Edges != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanIndegreeDistanceFor10Edges)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc9 + } + if m.MeanEdgeLengthFor10Edges != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanEdgeLengthFor10Edges)))) + i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xc1 } - if m.EdgeSizeLimitForCreation != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EdgeSizeLimitForCreation)) + if m.MeanEdgeLength != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.MeanEdgeLength)))) i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xb8 + dAtA[i] = 0xb9 } - if m.EdgeSizeForSearch != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EdgeSizeForSearch)) + if m.VarianceOfOutdegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.VarianceOfOutdegree)))) i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xb0 + dAtA[i] = 0xb1 } - if m.EdgeSizeForCreation != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EdgeSizeForCreation)) + if m.VarianceOfIndegree != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.VarianceOfIndegree)))) i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xa8 + dAtA[i] = 0xa9 } - if m.TruncationThreshold != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TruncationThreshold)) + if m.SizeOfRefinementObjectRepository != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SizeOfRefinementObjectRepository)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xa0 } - if len(m.RefinementObjectType) > 0 { - i -= len(m.RefinementObjectType) - copy(dAtA[i:], m.RefinementObjectType) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RefinementObjectType))) + if m.SizeOfObjectRepository != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SizeOfObjectRepository)) i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x9a + dAtA[i] = 0x98 } - if m.EpsilonForInsertionOrder != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.EpsilonForInsertionOrder)))) + if m.NumberOfRemovedObjects != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfRemovedObjects)) i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x95 + dAtA[i] = 0x90 } - if m.NOfNeighborsForInsertionOrder != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NOfNeighborsForInsertionOrder)) + if m.NumberOfObjects != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfObjects)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x88 } - if m.MaxMagnitude != 0 { - i -= 4 - binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.MaxMagnitude)))) + if m.NumberOfNodesWithoutIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfNodesWithoutIndegree)) i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x85 + dAtA[i] = 0x80 } - if len(m.SearchType) > 0 { - i -= len(m.SearchType) - copy(dAtA[i:], m.SearchType) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SearchType))) + if m.NumberOfNodesWithoutEdges != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfNodesWithoutEdges)) i-- - dAtA[i] = 0x7a + dAtA[i] = 0x78 } - if len(m.AccuracyTable) > 0 { - i -= len(m.AccuracyTable) - copy(dAtA[i:], m.AccuracyTable) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AccuracyTable))) + if m.NumberOfNodes != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfNodes)) i-- - dAtA[i] = 0x72 + dAtA[i] = 0x70 } - if m.PrefetchSize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PrefetchSize)) + if m.NumberOfIndexedObjects != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfIndexedObjects)) i-- dAtA[i] = 0x68 } - if m.PrefetchOffset != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PrefetchOffset)) + if m.NumberOfEdges != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NumberOfEdges)) i-- dAtA[i] = 0x60 } - if m.ObjectSharedMemorySize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ObjectSharedMemorySize)) + if m.NodesSkippedForIndegreeDistance != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodesSkippedForIndegreeDistance)) i-- dAtA[i] = 0x58 } - if m.TreeSharedMemorySize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TreeSharedMemorySize)) + if m.NodesSkippedFor10Edges != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NodesSkippedFor10Edges)) i-- dAtA[i] = 0x50 } - if m.GraphSharedMemorySize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GraphSharedMemorySize)) + if m.ModeOutdegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ModeOutdegree)) i-- dAtA[i] = 0x48 } - if m.PathAdjustmentInterval != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PathAdjustmentInterval)) + if m.ModeIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ModeIndegree)) i-- dAtA[i] = 0x40 } - if len(m.ObjectAlignment) > 0 { - i -= len(m.ObjectAlignment) - copy(dAtA[i:], m.ObjectAlignment) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ObjectAlignment))) + if m.MinNumberOfOutdegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinNumberOfOutdegree)) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x38 } - if len(m.DatabaseType) > 0 { - i -= len(m.DatabaseType) - copy(dAtA[i:], m.DatabaseType) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DatabaseType))) - i-- - dAtA[i] = 0x32 + if m.MinNumberOfIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MinNumberOfIndegree)) + i-- + dAtA[i] = 0x30 } - if len(m.IndexType) > 0 { - i -= len(m.IndexType) - copy(dAtA[i:], m.IndexType) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.IndexType))) + if m.MaxNumberOfOutdegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MaxNumberOfOutdegree)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x28 } - if len(m.DistanceType) > 0 { - i -= len(m.DistanceType) - copy(dAtA[i:], m.DistanceType) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DistanceType))) + if m.MaxNumberOfIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MaxNumberOfIndegree)) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x20 } - if len(m.ObjectType) > 0 { - i -= len(m.ObjectType) - copy(dAtA[i:], m.ObjectType) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ObjectType))) + if m.MedianOutdegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MedianOutdegree)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } - if m.ThreadPoolSize != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ThreadPoolSize)) + if m.MedianIndegree != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MedianIndegree)) i-- dAtA[i] = 0x10 } - if m.Dimension != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Dimension)) + if m.Valid { + i-- + if m.Valid { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Info_Index_PropertyDetail) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Index_StatisticsDetail) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9341,12 +9614,12 @@ func (m *Info_Index_PropertyDetail) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index_PropertyDetail) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index_StatisticsDetail) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index_PropertyDetail) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index_StatisticsDetail) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9383,7 +9656,7 @@ func (m *Info_Index_PropertyDetail) MarshalToSizedBufferVT(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *Info_Index) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Index_Property) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9396,12 +9669,12 @@ func (m *Info_Index) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Index) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index_Property) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Index) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index_Property) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9413,185 +9686,242 @@ func (m *Info_Index) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - return len(dAtA) - i, nil -} - -func (m *Info_Pod) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil - } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Info_Pod) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Info_Pod) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil - } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) + if m.IncomingEdge != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.IncomingEdge)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x90 } - if m.Node != nil { - size, err := m.Node.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.OutgoingEdge != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.OutgoingEdge)) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x88 } - if m.Memory != nil { - size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.BuildTimeLimit != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.BuildTimeLimit)))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x85 } - if m.Cpu != nil { - size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.DynamicEdgeSizeRate != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.DynamicEdgeSizeRate)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf8 } - if len(m.Ip) > 0 { - i -= len(m.Ip) - copy(dAtA[i:], m.Ip) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ip))) + if m.DynamicEdgeSizeBase != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.DynamicEdgeSizeBase)) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf0 } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) + if len(m.GraphType) > 0 { + i -= len(m.GraphType) + copy(dAtA[i:], m.GraphType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.GraphType))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xea } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + if m.BatchSizeForCreation != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.BatchSizeForCreation)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe0 } - if len(m.AppName) > 0 { - i -= len(m.AppName) - copy(dAtA[i:], m.AppName) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AppName))) + if m.TruncationThreadPoolSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TruncationThreadPoolSize)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd8 } - return len(dAtA) - i, nil -} - -func (m *Info_Node) MarshalVT() (dAtA []byte, err error) { - if m == nil { - return nil, nil + if len(m.SeedType) > 0 { + i -= len(m.SeedType) + copy(dAtA[i:], m.SeedType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SeedType))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVT(dAtA[:size]) - if err != nil { - return nil, err + if m.SeedSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SeedSize)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc8 } - return dAtA[:n], nil -} - -func (m *Info_Node) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *Info_Node) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - if m == nil { - return 0, nil + if m.InsertionRadiusCoefficient != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.InsertionRadiusCoefficient)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc1 } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) + if m.EdgeSizeLimitForCreation != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EdgeSizeLimitForCreation)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb8 } - if m.Pods != nil { - size, err := m.Pods.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.EdgeSizeForSearch != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EdgeSizeForSearch)) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb0 } - if m.Memory != nil { - size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.EdgeSizeForCreation != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EdgeSizeForCreation)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 } - if m.Cpu != nil { - size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.TruncationThreshold != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TruncationThreshold)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if len(m.RefinementObjectType) > 0 { + i -= len(m.RefinementObjectType) + copy(dAtA[i:], m.RefinementObjectType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RefinementObjectType))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + if m.EpsilonForInsertionOrder != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.EpsilonForInsertionOrder)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x95 + } + if m.NOfNeighborsForInsertionOrder != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.NOfNeighborsForInsertionOrder)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.MaxMagnitude != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.MaxMagnitude)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x85 + } + if len(m.SearchType) > 0 { + i -= len(m.SearchType) + copy(dAtA[i:], m.SearchType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SearchType))) + i-- + dAtA[i] = 0x7a + } + if len(m.AccuracyTable) > 0 { + i -= len(m.AccuracyTable) + copy(dAtA[i:], m.AccuracyTable) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AccuracyTable))) + i-- + dAtA[i] = 0x72 + } + if m.PrefetchSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PrefetchSize)) + i-- + dAtA[i] = 0x68 + } + if m.PrefetchOffset != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PrefetchOffset)) + i-- + dAtA[i] = 0x60 + } + if m.ObjectSharedMemorySize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ObjectSharedMemorySize)) + i-- + dAtA[i] = 0x58 + } + if m.TreeSharedMemorySize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TreeSharedMemorySize)) + i-- + dAtA[i] = 0x50 + } + if m.GraphSharedMemorySize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GraphSharedMemorySize)) + i-- + dAtA[i] = 0x48 + } + if m.PathAdjustmentInterval != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PathAdjustmentInterval)) + i-- + dAtA[i] = 0x40 + } + if len(m.ObjectAlignment) > 0 { + i -= len(m.ObjectAlignment) + copy(dAtA[i:], m.ObjectAlignment) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ObjectAlignment))) + i-- + dAtA[i] = 0x3a + } + if len(m.DatabaseType) > 0 { + i -= len(m.DatabaseType) + copy(dAtA[i:], m.DatabaseType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DatabaseType))) + i-- + dAtA[i] = 0x32 + } + if len(m.IndexType) > 0 { + i -= len(m.IndexType) + copy(dAtA[i:], m.IndexType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.IndexType))) + i-- + dAtA[i] = 0x2a + } + if len(m.DistanceType) > 0 { + i -= len(m.DistanceType) + copy(dAtA[i:], m.DistanceType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.DistanceType))) i-- dAtA[i] = 0x22 } - if len(m.ExternalAddr) > 0 { - i -= len(m.ExternalAddr) - copy(dAtA[i:], m.ExternalAddr) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ExternalAddr))) + if len(m.ObjectType) > 0 { + i -= len(m.ObjectType) + copy(dAtA[i:], m.ObjectType) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ObjectType))) i-- dAtA[i] = 0x1a } - if len(m.InternalAddr) > 0 { - i -= len(m.InternalAddr) - copy(dAtA[i:], m.InternalAddr) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.InternalAddr))) + if m.ThreadPoolSize != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ThreadPoolSize)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + if m.Dimension != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Dimension)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *Info_Service) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Index_PropertyDetail) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9604,12 +9934,12 @@ func (m *Info_Service) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Service) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index_PropertyDetail) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Service) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index_PropertyDetail) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9621,65 +9951,32 @@ func (m *Info_Service) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Annotations != nil { - size, err := m.Annotations.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 - } - if m.Labels != nil { - size, err := m.Labels.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x2a - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Ports[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Details) > 0 { + for k := range m.Details { + v := m.Details[k] + baseI := i + size, err := v.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x22 - } - } - if len(m.ClusterIps) > 0 { - for iNdEx := len(m.ClusterIps) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ClusterIps[iNdEx]) - copy(dAtA[i:], m.ClusterIps[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterIps[iNdEx]))) + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa } } - if len(m.ClusterIp) > 0 { - i -= len(m.ClusterIp) - copy(dAtA[i:], m.ClusterIp) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterIp))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Info_ServicePort) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Index) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9692,12 +9989,12 @@ func (m *Info_ServicePort) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_ServicePort) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Index) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_ServicePort) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Index) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9709,22 +10006,10 @@ func (m *Info_ServicePort) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Port != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Port)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *Info_Labels) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Pod) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9737,12 +10022,12 @@ func (m *Info_Labels) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Labels) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Pod) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Labels) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Pod) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9754,29 +10039,68 @@ func (m *Info_Labels) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Labels) > 0 { - for k := range m.Labels { - v := m.Labels[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.Node != nil { + size, err := m.Node.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a } - return len(dAtA) - i, nil -} - -func (m *Info_Annotations) MarshalVT() (dAtA []byte, err error) { + if m.Memory != nil { + size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.Cpu != nil { + size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if len(m.Ip) > 0 { + i -= len(m.Ip) + copy(dAtA[i:], m.Ip) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ip))) + i-- + dAtA[i] = 0x22 + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.AppName) > 0 { + i -= len(m.AppName) + copy(dAtA[i:], m.AppName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AppName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Info_Node) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9789,12 +10113,12 @@ func (m *Info_Annotations) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Annotations) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Node) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Annotations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Node) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9806,29 +10130,61 @@ func (m *Info_Annotations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Annotations) > 0 { - for k := range m.Annotations { - v := m.Annotations[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.Pods != nil { + size, err := m.Pods.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.Memory != nil { + size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.Cpu != nil { + size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.ExternalAddr) > 0 { + i -= len(m.ExternalAddr) + copy(dAtA[i:], m.ExternalAddr) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ExternalAddr))) + i-- + dAtA[i] = 0x1a + } + if len(m.InternalAddr) > 0 { + i -= len(m.InternalAddr) + copy(dAtA[i:], m.InternalAddr) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.InternalAddr))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Info_CPU) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Service) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9841,12 +10197,12 @@ func (m *Info_CPU) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_CPU) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Service) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_CPU) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Service) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9858,28 +10214,65 @@ func (m *Info_CPU) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Usage != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Usage)))) + if m.Annotations != nil { + size, err := m.Annotations.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x19 + dAtA[i] = 0x32 } - if m.Request != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Request)))) + if m.Labels != nil { + size, err := m.Labels.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x11 + dAtA[i] = 0x2a } - if m.Limit != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Limit)))) + if len(m.Ports) > 0 { + for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Ports[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if len(m.ClusterIps) > 0 { + for iNdEx := len(m.ClusterIps) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterIps[iNdEx]) + copy(dAtA[i:], m.ClusterIps[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterIps[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ClusterIp) > 0 { + i -= len(m.ClusterIp) + copy(dAtA[i:], m.ClusterIp) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ClusterIp))) i-- - dAtA[i] = 0x9 + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Info_Memory) MarshalVT() (dAtA []byte, err error) { +func (m *Info_ServicePort) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9892,12 +10285,12 @@ func (m *Info_Memory) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Memory) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_ServicePort) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Memory) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_ServicePort) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9909,28 +10302,22 @@ func (m *Info_Memory) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Usage != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Usage)))) - i-- - dAtA[i] = 0x19 - } - if m.Request != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Request)))) + if m.Port != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Port)) i-- - dAtA[i] = 0x11 + dAtA[i] = 0x10 } - if m.Limit != 0 { - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Limit)))) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- - dAtA[i] = 0x9 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Info_Pods) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Labels) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9943,12 +10330,12 @@ func (m *Info_Pods) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Pods) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Labels) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Pods) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Labels) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -9960,14 +10347,21 @@ func (m *Info_Pods) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Pods) > 0 { - for iNdEx := len(m.Pods) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Pods[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if len(m.Labels) > 0 { + for k := range m.Labels { + v := m.Labels[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0xa } @@ -9975,7 +10369,7 @@ func (m *Info_Pods) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Info_Nodes) MarshalVT() (dAtA []byte, err error) { +func (m *Info_Annotations) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -9988,12 +10382,12 @@ func (m *Info_Nodes) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Info_Nodes) MarshalToVT(dAtA []byte) (int, error) { +func (m *Info_Annotations) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Info_Nodes) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Info_Annotations) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -10005,9 +10399,208 @@ func (m *Info_Nodes) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Nodes) > 0 { - for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Nodes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Annotations) > 0 { + for k := range m.Annotations { + v := m.Annotations[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Info_CPU) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_CPU) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_CPU) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Usage != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Usage)))) + i-- + dAtA[i] = 0x19 + } + if m.Request != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Request)))) + i-- + dAtA[i] = 0x11 + } + if m.Limit != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Limit)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func (m *Info_Memory) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Memory) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Memory) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Usage != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Usage)))) + i-- + dAtA[i] = 0x19 + } + if m.Request != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Request)))) + i-- + dAtA[i] = 0x11 + } + if m.Limit != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Limit)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func (m *Info_Pods) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Pods) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Pods) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Pods) > 0 { + for iNdEx := len(m.Pods) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Pods[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Info_Nodes) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Info_Nodes) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Info_Nodes) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Nodes) > 0 { + for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Nodes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -10423,13 +11016,17 @@ func (m *Search_Config) SizeVT() (n int) { if m.Timeout != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timeout)) } - if m.IngressFilters != nil { - l = m.IngressFilters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.IngressFilters) > 0 { + for _, e := range m.IngressFilters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.EgressFilters != nil { - l = m.EgressFilters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.EgressFilters) > 0 { + for _, e := range m.EgressFilters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.MinNum != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.MinNum)) @@ -10556,58 +11153,66 @@ func (m *Filter_Target) SizeVT() (n int) { return n } -func (m *Filter_Config) SizeVT() (n int) { +func (m *Filter_Query) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Targets) > 0 { - for _, e := range m.Targets { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + l = len(m.Query) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Filter) SizeVT() (n int) { +func (m *Filter_Config) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l + if m.Target != nil { + l = m.Target.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Query != nil { + l = m.Query.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } n += len(m.unknownFields) return n } -func (m *Insert_Request) SizeVT() (n int) { +func (m *Filter_DistanceRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Vector != nil { - l = m.Vector.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Distance) > 0 { + for _, e := range m.Distance { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - if m.Config != nil { - l = m.Config.SizeVT() + if m.Query != nil { + l = m.Query.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Insert_MultiRequest) SizeVT() (n int) { +func (m *Filter_DistanceResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Requests) > 0 { - for _, e := range m.Requests { + if len(m.Distance) > 0 { + for _, e := range m.Distance { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -10616,39 +11221,115 @@ func (m *Insert_MultiRequest) SizeVT() (n int) { return n } -func (m *Insert_ObjectRequest) SizeVT() (n int) { +func (m *Filter_VectorRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Object != nil { - l = m.Object.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Config != nil { - l = m.Config.SizeVT() + if m.Vector != nil { + l = m.Vector.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Vectorizer != nil { - l = m.Vectorizer.SizeVT() + if m.Query != nil { + l = m.Query.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Insert_MultiObjectRequest) SizeVT() (n int) { +func (m *Filter_VectorResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Requests) > 0 { - for _, e := range m.Requests { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Filter) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *Insert_Request) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vector != nil { + l = m.Vector.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Config != nil { + l = m.Config.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Insert_MultiRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { + for _, e := range m.Requests { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Insert_ObjectRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Object != nil { + l = m.Object.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Config != nil { + l = m.Config.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Vectorizer != nil { + l = m.Vectorizer.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Insert_MultiObjectRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { + for _, e := range m.Requests { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n @@ -10663,9 +11344,11 @@ func (m *Insert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -10785,9 +11468,11 @@ func (m *Update_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -10890,9 +11575,11 @@ func (m *Upsert_Config) SizeVT() (n int) { if m.SkipStrictExistCheck { n += 2 } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) @@ -11036,9 +11723,11 @@ func (m *Object_VectorRequest) SizeVT() (n int) { l = m.Id.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if m.Filters != nil { - l = m.Filters.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } n += len(m.unknownFields) return n @@ -12239,31 +12928,465 @@ func (m *Mirror_Targets) SizeVT() (n int) { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - n += len(m.unknownFields) - return n -} - -func (m *Mirror) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += len(m.unknownFields) - return n -} + n += len(m.unknownFields) + return n +} + +func (m *Mirror) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *Empty) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *Search_Request) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 5 { + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.Vector = append(m.Vector, v2) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + elementCount = packedLen / 4 + if elementCount != 0 && len(m.Vector) == 0 { + m.Vector = make([]float32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.Vector = append(m.Vector, v2) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Config == nil { + m.Config = &Search_Config{} + } + if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Search_MultiRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_MultiRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_MultiRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, &Search_Request{}) + if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Search_IDRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_IDRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_IDRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Config == nil { + m.Config = &Search_Config{} + } + if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Search_MultiIDRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_MultiIDRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_MultiIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, &Search_IDRequest{}) + if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } -func (m *Empty) SizeVT() (n int) { - if m == nil { - return 0 + if iNdEx > l { + return io.ErrUnexpectedEOF } - var l int - _ = l - n += len(m.unknownFields) - return n + return nil } -func (m *Search_Request) UnmarshalVT(dAtA []byte) error { +func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12286,66 +13409,46 @@ func (m *Search_Request) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Request: wiretype end group for non-group") + return fmt.Errorf("proto: Search_ObjectRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Search_ObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType == 5 { - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - v2 := float32(math.Float32frombits(v)) - m.Vector = append(m.Vector, v2) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - elementCount = packedLen / 4 - if elementCount != 0 && len(m.Vector) == 0 { - m.Vector = make([]float32, 0, elementCount) - } - for iNdEx < postIndex { - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - v2 := float32(math.Float32frombits(v)) - m.Vector = append(m.Vector, v2) + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } + if byteLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Object = append(m.Object[:0], dAtA[iNdEx:postIndex]...) + if m.Object == nil { + m.Object = []byte{} + } + iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) @@ -12382,6 +13485,42 @@ func (m *Search_Request) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vectorizer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vectorizer == nil { + m.Vectorizer = &Filter_Target{} + } + if err := m.Vectorizer.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -12405,7 +13544,7 @@ func (m *Search_Request) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search_MultiRequest) UnmarshalVT(dAtA []byte) error { +func (m *Search_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12428,10 +13567,10 @@ func (m *Search_MultiRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_MultiRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Search_MultiObjectRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_MultiRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Search_MultiObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12463,7 +13602,7 @@ func (m *Search_MultiRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Search_Request{}) + m.Requests = append(m.Requests, &Search_ObjectRequest{}) if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -12491,7 +13630,7 @@ func (m *Search_MultiRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search_IDRequest) UnmarshalVT(dAtA []byte) error { +func (m *Search_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12501,30 +13640,122 @@ func (m *Search_IDRequest) UnmarshalVT(dAtA []byte) error { if shift >= 64 { return protohelpers.ErrIntOverflow } - if iNdEx >= l { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search_Config: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search_Config: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType) + } + m.Num = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Num |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Radius", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Radius = float32(math.Float32frombits(v)) + case 4: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Epsilon", wireType) + } + var v uint32 + if (iNdEx + 4) > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Epsilon = float32(math.Float32frombits(v)) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Search_IDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Search_IDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Timeout = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timeout |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IngressFilters", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12534,27 +13765,29 @@ func (m *Search_IDRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = string(dAtA[iNdEx:postIndex]) + m.IngressFilters = append(m.IngressFilters, &Filter_Config{}) + if err := m.IngressFilters[len(m.IngressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EgressFilters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12581,68 +13814,52 @@ func (m *Search_IDRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Config == nil { - m.Config = &Search_Config{} - } - if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.EgressFilters = append(m.EgressFilters, &Filter_Config{}) + if err := m.EgressFilters[len(m.EgressFilters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinNum", wireType) } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *Search_MultiIDRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + m.MinNum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinNum |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregationAlgorithm", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.AggregationAlgorithm = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AggregationAlgorithm |= Search_AggregationAlgorithm(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Search_MultiIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Search_MultiIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ratio", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12669,11 +13886,32 @@ func (m *Search_MultiIDRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Search_IDRequest{}) - if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Ratio == nil { + m.Ratio = &wrapperspb.FloatValue{} + } + if err := (*wrapperspb1.FloatValue)(m.Ratio).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nprobe", wireType) + } + m.Nprobe = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nprobe |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -12697,7 +13935,7 @@ func (m *Search_MultiIDRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { +func (m *Search_Response) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12720,17 +13958,17 @@ func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_ObjectRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_ObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12740,65 +13978,27 @@ func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Object = append(m.Object[:0], dAtA[iNdEx:postIndex]...) - if m.Object == nil { - m.Object = []byte{} - } + m.RequestId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Config == nil { - m.Config = &Search_Config{} - } - if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vectorizer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12825,10 +14025,8 @@ func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Vectorizer == nil { - m.Vectorizer = &Filter_Target{} - } - if err := m.Vectorizer.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Results = append(m.Results, &Object_Distance{}) + if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12855,7 +14053,7 @@ func (m *Search_ObjectRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { +func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12878,15 +14076,15 @@ func (m *Search_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_MultiObjectRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_MultiObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12913,8 +14111,8 @@ func (m *Search_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Search_ObjectRequest{}) - if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Responses = append(m.Responses, &Search_Response{}) + if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12941,7 +14139,7 @@ func (m *Search_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search_Config) UnmarshalVT(dAtA []byte) error { +func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12964,17 +14162,17 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Config: wiretype end group for non-group") + return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Search_StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12984,87 +14182,36 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType) - } - m.Num = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Num |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Radius", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.Radius = float32(math.Float32frombits(v)) - case 4: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Epsilon", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.Epsilon = float32(math.Float32frombits(v)) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) - } - m.Timeout = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { + if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - b := dAtA[iNdEx] - iNdEx++ - m.Timeout |= int64(b&0x7F) << shift - if b < 0x80 { - break + } else { + v := &Search_Response{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } + m.Payload = &Search_StreamResponse_Response{Response: v} } - case 6: + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IngressFilters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13091,92 +14238,143 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.IngressFilters == nil { - m.IngressFilters = &Filter_Config{} - } - if err := m.IngressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EgressFilters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { + if unmarshal, ok := any(oneof.Status).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { + return err + } } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break + } else { + v := &status.Status{} + if unmarshal, ok := any(v).(interface { + UnmarshalVT([]byte) error + }); ok { + if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return err + } } + m.Payload = &Search_StreamResponse_Status{Status: v} } - if msglen < 0 { - return protohelpers.ErrInvalidLength + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Search) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.EgressFilters == nil { - m.EgressFilters = &Filter_Config{} + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - if err := m.EgressFilters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Search: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinNum", wireType) + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - m.MinNum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinNum |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregationAlgorithm", wireType) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - m.AggregationAlgorithm = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AggregationAlgorithm |= Search_AggregationAlgorithm(b&0x7F) << shift - if b < 0x80 { - break - } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 10: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ratio", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13186,33 +14384,29 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Ratio == nil { - m.Ratio = &wrapperspb.FloatValue{} - } - if err := (*wrapperspb1.FloatValue)(m.Ratio).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Host = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 11: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nprobe", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) } - m.Nprobe = 0 + m.Port = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13222,7 +14416,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Nprobe |= uint32(b&0x7F) << shift + m.Port |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -13250,7 +14444,7 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search_Response) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Query) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13273,15 +14467,15 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Response: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Query: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Query: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13309,41 +14503,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RequestId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Results = append(m.Results, &Object_Distance{}) - if err := m.Results[len(m.Results)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Query = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -13368,7 +14528,7 @@ func (m *Search_Response) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { +func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13391,15 +14551,15 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_Responses: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_Responses: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13426,8 +14586,46 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Responses = append(m.Responses, &Search_Response{}) - if err := m.Responses[len(m.Responses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Target == nil { + m.Target = &Filter_Target{} + } + if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13454,7 +14652,7 @@ func (m *Search_Responses) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13477,15 +14675,15 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_StreamResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search_StreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13512,21 +14710,14 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { - if err := oneof.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - v := &Search_Response{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Payload = &Search_StreamResponse_Response{Response: v} + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13553,32 +14744,11 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Status); ok { - if unmarshal, ok := any(oneof.Status).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { - return err - } - } - } else { - v := &status.Status{} - if unmarshal, ok := any(v).(interface { - UnmarshalVT([]byte) error - }); ok { - if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return err - } - } - m.Payload = &Search_StreamResponse_Status{Status: v} + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -13604,7 +14774,7 @@ func (m *Search_StreamResponse) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search) UnmarshalVT(dAtA []byte) error { +func (m *Filter_DistanceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13627,12 +14797,46 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_DistanceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_DistanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Distance = append(m.Distance, &Object_Distance{}) + if err := m.Distance[len(m.Distance)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -13656,7 +14860,7 @@ func (m *Search) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13679,17 +14883,17 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Target: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Target: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13699,29 +14903,33 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Host = string(dAtA[iNdEx:postIndex]) + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } - m.Port = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13731,11 +14939,28 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Port |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Query == nil { + m.Query = &Filter_Query{} + } + if err := m.Query.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -13759,7 +14984,7 @@ func (m *Filter_Target) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { +func (m *Filter_VectorResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13782,15 +15007,15 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") + return fmt.Errorf("proto: Filter_VectorResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Filter_VectorResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13817,8 +15042,10 @@ func (m *Filter_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Targets = append(m.Targets, &Filter_Target{}) - if err := m.Targets[len(m.Targets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Vector == nil { + m.Vector = &Object_Vector{} + } + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14431,10 +15658,8 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15189,10 +16414,8 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15844,10 +17067,8 @@ func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16692,10 +17913,8 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Filters = append(m.Filters, &Filter_Config{}) + if err := m.Filters[len(m.Filters)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/apis/grpc/v1/rpc/errdetails/error_details.pb.go b/apis/grpc/v1/rpc/errdetails/error_details.pb.go index ff9e1c42cf..1ca92f9554 100644 --- a/apis/grpc/v1/rpc/errdetails/error_details.pb.go +++ b/apis/grpc/v1/rpc/errdetails/error_details.pb.go @@ -1108,7 +1108,6 @@ var ( (*durationpb.Duration)(nil), // 15: google.protobuf.Duration } ) - var file_v1_rpc_errdetails_error_details_proto_depIdxs = []int32{ 10, // 0: rpc.v1.ErrorInfo.metadata:type_name -> rpc.v1.ErrorInfo.MetadataEntry 15, // 1: rpc.v1.RetryInfo.retry_delay:type_name -> google.protobuf.Duration diff --git a/example/client/gateway/filter/egress-filter/main.go b/example/client/gateway/filter/egress-filter/main.go index 871ec9ac1b..7cdf111ea1 100644 --- a/example/client/gateway/filter/egress-filter/main.go +++ b/example/client/gateway/filter/egress-filter/main.go @@ -41,10 +41,10 @@ var ( func init() { /** - Ingresshost option specifies grpc server host of your egress filter. Default value is `127.0.0.1`. - Ingressport option specifies grpc server port of your egress filter. Default value is `8083`. - Dimension option specifies dimension size of vectors. Default value is `784`. - **/ + Ingresshost option specifies grpc server host of your egress filter. Default value is `127.0.0.1`. + Ingressport option specifies grpc server port of your egress filter. Default value is `8083`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ flag.StringVar(&egressServerHost, "host", "127.0.0.1", "ingress server host") flag.UintVar(&egressServerPort, "port", 8083, "ingress server port") flag.UintVar(&dimension, "dimension", 784, "dimension size of vectors") diff --git a/example/client/gateway/filter/ingress-filter/main.go b/example/client/gateway/filter/ingress-filter/main.go index 6989d0a498..d84485c8ff 100644 --- a/example/client/gateway/filter/ingress-filter/main.go +++ b/example/client/gateway/filter/ingress-filter/main.go @@ -41,10 +41,10 @@ var ( func init() { /** - Ingresshost option specifies grpc server host of your ingress filter. Default value is `127.0.0.1`. - Ingressport option specifies grpc server port of your ingress filter. Default value is `8082`. - Dimension option specifies dimension size of vectors. Default value is `784`. - **/ + Ingresshost option specifies grpc server host of your ingress filter. Default value is `127.0.0.1`. + Ingressport option specifies grpc server port of your ingress filter. Default value is `8082`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ flag.StringVar(&ingressServerHost, "host", "127.0.0.1", "ingress server host") flag.UintVar(&ingressServerPort, "port", 8082, "ingress server port") flag.UintVar(&dimension, "dimension", 784, "dimension size of vectors") diff --git a/example/client/gateway/filter/main.go b/example/client/gateway/filter/main.go index cc63a9203a..567a8b0384 100644 --- a/example/client/gateway/filter/main.go +++ b/example/client/gateway/filter/main.go @@ -50,14 +50,14 @@ var ( func init() { // init initializes the command-line flags with default values for the filter client setup. /** - Addr option specifies grpc server address of filter gateway. Default value is `127.0.0.1:8081`. - Ingresshost option specifies grpc server host of your ingress filter. Default value is `127.0.0.1`. - Ingressport option specifies grpc server port of your ingress filter. Default value is `8082`. - Egresshost option specifies grpc server host of your egress filter. Default value is `127.0.0.1`. - Egressport option specifies grpc server port of your egress filter. Default value is `8083`. - Wait option specifies indexing wait time (in seconds). Default value is `240`. - Dimension option specifies dimension size of vectors. Default value is `784`. - **/ + Addr option specifies grpc server address of filter gateway. Default value is `127.0.0.1:8081`. + Ingresshost option specifies grpc server host of your ingress filter. Default value is `127.0.0.1`. + Ingressport option specifies grpc server port of your ingress filter. Default value is `8082`. + Egresshost option specifies grpc server host of your egress filter. Default value is `127.0.0.1`. + Egressport option specifies grpc server port of your egress filter. Default value is `8083`. + Wait option specifies indexing wait time (in seconds). Default value is `240`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ flag.StringVar(&grpcServerAddr, "addr", "127.0.0.1:8081", "gRPC server address of filter gateway") flag.StringVar(&ingressServerHost, "ingresshost", "127.0.0.1", "ingress server host") flag.UintVar(&ingressServerPort, "ingressport", 8082, "ingress server port") diff --git a/example/server/egress-filter/main.go b/example/server/egress-filter/main.go index 7c06708a03..acd806d269 100644 --- a/example/server/egress-filter/main.go +++ b/example/server/egress-filter/main.go @@ -38,9 +38,9 @@ var ( func init() { // init initializes the command-line flags with default values for the filter setup. /** - Port option specifies grpc server port of your egress filter. Default value is `8083`. - Dimension option specifies dimension size of vectors. Default value is `784`. - **/ + Port option specifies grpc server port of your egress filter. Default value is `8083`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ flag.UintVar(&egressServerPort, "port", 8083, "server port") flag.UintVar(&dimension, "dimension", 784, "dimension size of vectors") flag.Parse() @@ -59,7 +59,9 @@ type myEgressServer struct { egress.UnimplementedFilterServer } -func (s *myEgressServer) FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error) { +func (s *myEgressServer) FilterDistance( + ctx context.Context, in *payload.Filter_DistanceRequest, +) (*payload.Filter_DistanceResponse, error) { glg.Log("filtering vector %#v", in) qCategory, ok := getSplitValue(in.GetQuery().GetQuery(), "=", 1) if !ok { @@ -89,7 +91,9 @@ func (s *myEgressServer) FilterDistance(ctx context.Context, in *payload.Filter_ }, nil } -func (s *myEgressServer) FilterVector(ctx context.Context, in *payload.Filter_VectorRequest) (*payload.Filter_VectorResponse, error) { +func (s *myEgressServer) FilterVector( + ctx context.Context, in *payload.Filter_VectorRequest, +) (*payload.Filter_VectorResponse, error) { // Write your own logic glg.Logf("filtering the vector %#v", in) return &payload.Filter_VectorResponse{ diff --git a/example/server/ingress-filter/main.go b/example/server/ingress-filter/main.go index e7b17cbb5c..979d96d706 100644 --- a/example/server/ingress-filter/main.go +++ b/example/server/ingress-filter/main.go @@ -35,9 +35,9 @@ var ( func init() { /** - Port option specifies grpc server port of your ingress filter. Default value is `8082`. - Dimension option specifies dimension size of vectors. Default value is `784`. - **/ + Port option specifies grpc server port of your ingress filter. Default value is `8082`. + Dimension option specifies dimension size of vectors. Default value is `784`. + **/ flag.UintVar(&ingressServerPort, "port", 8082, "server port") flag.UintVar(&dimension, "dimension", 784, "dimension size of vectors") flag.Parse() @@ -47,7 +47,9 @@ type myIngressServer struct { ingress.UnimplementedFilterServer } -func (s *myIngressServer) GenVector(ctx context.Context, in *payload.Object_Blob) (*payload.Object_Vector, error) { +func (s *myIngressServer) GenVector( + ctx context.Context, in *payload.Object_Blob, +) (*payload.Object_Vector, error) { // Write your own logic glg.Logf("generating vector %#v", in) vec, err := vector.GenF32Vec(vector.Gaussian, 1, int(dimension)) @@ -60,7 +62,9 @@ func (s *myIngressServer) GenVector(ctx context.Context, in *payload.Object_Blob }, nil } -func (s *myIngressServer) FilterVector(ctx context.Context, in *payload.Object_Vector) (*payload.Object_Vector, error) { +func (s *myIngressServer) FilterVector( + ctx context.Context, in *payload.Object_Vector, +) (*payload.Object_Vector, error) { // Write your own logic glg.Logf("filtering vector %#v", in) return in, nil diff --git a/rust/libs/proto/src/filter.egress.v1.tonic.rs b/rust/libs/proto/src/filter.egress.v1.tonic.rs index e054fc3b6a..052cbe8988 100644 --- a/rust/libs/proto/src/filter.egress.v1.tonic.rs +++ b/rust/libs/proto/src/filter.egress.v1.tonic.rs @@ -17,6 +17,8 @@ pub mod filter_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; use tonic::codegen::http::Uri; + /** Represent the egress filter service. +*/ #[derive(Debug, Clone)] pub struct FilterClient { inner: tonic::client::Grpc, @@ -195,6 +197,8 @@ pub mod filter_server { tonic::Status, >; } + /** Represent the egress filter service. +*/ #[derive(Debug)] pub struct FilterServer { inner: Arc, diff --git a/rust/libs/proto/src/filter.ingress.v1.tonic.rs b/rust/libs/proto/src/filter.ingress.v1.tonic.rs index d8b462caa1..76f377386b 100644 --- a/rust/libs/proto/src/filter.ingress.v1.tonic.rs +++ b/rust/libs/proto/src/filter.ingress.v1.tonic.rs @@ -17,6 +17,8 @@ pub mod filter_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; use tonic::codegen::http::Uri; + /** Represent the ingress filter service. +*/ #[derive(Debug, Clone)] pub struct FilterClient { inner: tonic::client::Grpc, @@ -187,6 +189,8 @@ pub mod filter_server { tonic::Status, >; } + /** Represent the ingress filter service. +*/ #[derive(Debug)] pub struct FilterServer { inner: Arc, diff --git a/rust/libs/proto/src/vald.v1.tonic.rs b/rust/libs/proto/src/vald.v1.tonic.rs index 7cc2207e61..29843a4d93 100644 --- a/rust/libs/proto/src/vald.v1.tonic.rs +++ b/rust/libs/proto/src/vald.v1.tonic.rs @@ -124,6 +124,8 @@ pub mod filter_client { .insert(GrpcMethod::new("vald.v1.Filter", "SearchObject")); self.inner.unary(req, path, codec).await } + /** A method to search multiple objects. +*/ pub async fn multi_search_object( &mut self, request: impl tonic::IntoRequest< @@ -475,6 +477,8 @@ pub mod filter_server { tonic::Response, tonic::Status, >; + /** A method to search multiple objects. +*/ async fn multi_search_object( &self, request: tonic::Request< @@ -4042,6 +4046,8 @@ pub mod search_client { req.extensions_mut().insert(GrpcMethod::new("vald.v1.Search", "Search")); self.inner.unary(req, path, codec).await } + /** A method to search indexed vectors by ID. +*/ pub async fn search_by_id( &mut self, request: impl tonic::IntoRequest< @@ -4392,6 +4398,8 @@ pub mod search_server { tonic::Response, tonic::Status, >; + /** A method to search indexed vectors by ID. +*/ async fn search_by_id( &self, request: tonic::Request, From d9ca20c981b63817182b30dbd6224bea7bac646a Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 30 Sep 2024 11:48:58 +0900 Subject: [PATCH 41/43] fix: make proto/all format Signed-off-by: hlts2 --- apis/grpc/v1/payload/payload.pb.go | 1188 ++++++++++++++++++---------- rust/libs/proto/src/payload.v1.rs | 97 ++- 2 files changed, 863 insertions(+), 422 deletions(-) diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index 6ea1603db4..ad64c80e02 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -1056,9 +1056,9 @@ type Search_Config struct { // Search timeout in nanoseconds. Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Ingress filter configurations. - IngressFilters *Filter_Config `protobuf:"bytes,6,opt,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` + IngressFilters []*Filter_Config `protobuf:"bytes,6,rep,name=ingress_filters,json=ingressFilters,proto3" json:"ingress_filters,omitempty"` // Egress filter configurations. - EgressFilters *Filter_Config `protobuf:"bytes,7,opt,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` + EgressFilters []*Filter_Config `protobuf:"bytes,7,rep,name=egress_filters,json=egressFilters,proto3" json:"egress_filters,omitempty"` // Minimum number of result to be returned. MinNum uint32 `protobuf:"varint,8,opt,name=min_num,json=minNum,proto3" json:"min_num,omitempty"` // Aggregation Algorithm @@ -1136,14 +1136,14 @@ func (x *Search_Config) GetTimeout() int64 { return 0 } -func (x *Search_Config) GetIngressFilters() *Filter_Config { +func (x *Search_Config) GetIngressFilters() []*Filter_Config { if x != nil { return x.IngressFilters } return nil } -func (x *Search_Config) GetEgressFilters() *Filter_Config { +func (x *Search_Config) GetEgressFilters() []*Filter_Config { if x != nil { return x.EgressFilters } @@ -1427,6 +1427,55 @@ func (x *Filter_Target) GetPort() uint32 { return 0 } +// Represent the filter query. +type Filter_Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The raw query string. + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_Query) Reset() { + *x = Filter_Query{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_Query) ProtoMessage() {} + +func (x *Filter_Query) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_Query.ProtoReflect.Descriptor instead. +func (*Filter_Query) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *Filter_Query) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + // Represent filter configuration. type Filter_Config struct { state protoimpl.MessageState @@ -1434,13 +1483,15 @@ type Filter_Config struct { unknownFields protoimpl.UnknownFields // Represent the filter target configuration. - Targets []*Filter_Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` + Target *Filter_Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // The target query. + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` } func (x *Filter_Config) Reset() { *x = Filter_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1453,7 +1504,7 @@ func (x *Filter_Config) String() string { func (*Filter_Config) ProtoMessage() {} func (x *Filter_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[25] + mi := &file_v1_payload_payload_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1466,12 +1517,233 @@ func (x *Filter_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter_Config.ProtoReflect.Descriptor instead. func (*Filter_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 2} } -func (x *Filter_Config) GetTargets() []*Filter_Target { +func (x *Filter_Config) GetTarget() *Filter_Target { if x != nil { - return x.Targets + return x.Target + } + return nil +} + +func (x *Filter_Config) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_DistanceRequest) Reset() { + *x = Filter_DistanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceRequest) ProtoMessage() {} + +func (x *Filter_DistanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceRequest.ProtoReflect.Descriptor instead. +func (*Filter_DistanceRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 3} +} + +func (x *Filter_DistanceRequest) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +func (x *Filter_DistanceRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and distance pair. +type Filter_DistanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Distance []*Object_Distance `protobuf:"bytes,1,rep,name=distance,proto3" json:"distance,omitempty"` +} + +func (x *Filter_DistanceResponse) Reset() { + *x = Filter_DistanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_DistanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_DistanceResponse) ProtoMessage() {} + +func (x *Filter_DistanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_DistanceResponse.ProtoReflect.Descriptor instead. +func (*Filter_DistanceResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 4} +} + +func (x *Filter_DistanceResponse) GetDistance() []*Object_Distance { + if x != nil { + return x.Distance + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Vector + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` + // Query + Query *Filter_Query `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *Filter_VectorRequest) Reset() { + *x = Filter_VectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorRequest) ProtoMessage() {} + +func (x *Filter_VectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorRequest.ProtoReflect.Descriptor instead. +func (*Filter_VectorRequest) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 5} +} + +func (x *Filter_VectorRequest) GetVector() *Object_Vector { + if x != nil { + return x.Vector + } + return nil +} + +func (x *Filter_VectorRequest) GetQuery() *Filter_Query { + if x != nil { + return x.Query + } + return nil +} + +// Represent the ID and vector pair. +type Filter_VectorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance + Vector *Object_Vector `protobuf:"bytes,1,opt,name=vector,proto3" json:"vector,omitempty"` +} + +func (x *Filter_VectorResponse) Reset() { + *x = Filter_VectorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_v1_payload_payload_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter_VectorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter_VectorResponse) ProtoMessage() {} + +func (x *Filter_VectorResponse) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter_VectorResponse.ProtoReflect.Descriptor instead. +func (*Filter_VectorResponse) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{1, 6} +} + +func (x *Filter_VectorResponse) GetVector() *Object_Vector { + if x != nil { + return x.Vector } return nil } @@ -1491,7 +1763,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1504,7 +1776,7 @@ func (x *Insert_Request) String() string { func (*Insert_Request) ProtoMessage() {} func (x *Insert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1547,7 +1819,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1560,7 +1832,7 @@ func (x *Insert_MultiRequest) String() string { func (*Insert_MultiRequest) ProtoMessage() {} func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1600,7 +1872,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1613,7 +1885,7 @@ func (x *Insert_ObjectRequest) String() string { func (*Insert_ObjectRequest) ProtoMessage() {} func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1663,7 +1935,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1676,7 +1948,7 @@ func (x *Insert_MultiObjectRequest) String() string { func (*Insert_MultiObjectRequest) ProtoMessage() {} func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1708,7 +1980,7 @@ type Insert_Config struct { // A flag to skip exist check during insert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } @@ -1716,7 +1988,7 @@ type Insert_Config struct { func (x *Insert_Config) Reset() { *x = Insert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1729,7 +2001,7 @@ func (x *Insert_Config) String() string { func (*Insert_Config) ProtoMessage() {} func (x *Insert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1752,7 +2024,7 @@ func (x *Insert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Insert_Config) GetFilters() *Filter_Config { +func (x *Insert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -1781,7 +2053,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1794,7 +2066,7 @@ func (x *Update_Request) String() string { func (*Update_Request) ProtoMessage() {} func (x *Update_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1837,7 +2109,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1850,7 +2122,7 @@ func (x *Update_MultiRequest) String() string { func (*Update_MultiRequest) ProtoMessage() {} func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1890,7 +2162,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1903,7 +2175,7 @@ func (x *Update_ObjectRequest) String() string { func (*Update_ObjectRequest) ProtoMessage() {} func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1953,7 +2225,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1966,7 +2238,7 @@ func (x *Update_MultiObjectRequest) String() string { func (*Update_MultiObjectRequest) ProtoMessage() {} func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2006,7 +2278,7 @@ type Update_TimestampRequest struct { func (x *Update_TimestampRequest) Reset() { *x = Update_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2019,7 +2291,7 @@ func (x *Update_TimestampRequest) String() string { func (*Update_TimestampRequest) ProtoMessage() {} func (x *Update_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2065,7 +2337,7 @@ type Update_Config struct { // A flag to skip exist check during update operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Update timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2076,7 +2348,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2089,7 +2361,7 @@ func (x *Update_Config) String() string { func (*Update_Config) ProtoMessage() {} func (x *Update_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2112,7 +2384,7 @@ func (x *Update_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Update_Config) GetFilters() *Filter_Config { +func (x *Update_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2148,7 +2420,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2161,7 +2433,7 @@ func (x *Upsert_Request) String() string { func (*Upsert_Request) ProtoMessage() {} func (x *Upsert_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2204,7 +2476,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2217,7 +2489,7 @@ func (x *Upsert_MultiRequest) String() string { func (*Upsert_MultiRequest) ProtoMessage() {} func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2257,7 +2529,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2270,7 +2542,7 @@ func (x *Upsert_ObjectRequest) String() string { func (*Upsert_ObjectRequest) ProtoMessage() {} func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2320,7 +2592,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2333,7 +2605,7 @@ func (x *Upsert_MultiObjectRequest) String() string { func (*Upsert_MultiObjectRequest) ProtoMessage() {} func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2365,7 +2637,7 @@ type Upsert_Config struct { // A flag to skip exist check during upsert operation. SkipStrictExistCheck bool `protobuf:"varint,1,opt,name=skip_strict_exist_check,json=skipStrictExistCheck,proto3" json:"skip_strict_exist_check,omitempty"` // Filter configuration. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` // Upsert timestamp. Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // A flag to disable balanced update (split remove -> insert operation) @@ -2376,7 +2648,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2389,7 +2661,7 @@ func (x *Upsert_Config) String() string { func (*Upsert_Config) ProtoMessage() {} func (x *Upsert_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2412,7 +2684,7 @@ func (x *Upsert_Config) GetSkipStrictExistCheck() bool { return false } -func (x *Upsert_Config) GetFilters() *Filter_Config { +func (x *Upsert_Config) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2448,7 +2720,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2461,7 +2733,7 @@ func (x *Remove_Request) String() string { func (*Remove_Request) ProtoMessage() {} func (x *Remove_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2504,7 +2776,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2517,7 +2789,7 @@ func (x *Remove_MultiRequest) String() string { func (*Remove_MultiRequest) ProtoMessage() {} func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2554,7 +2826,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2567,7 +2839,7 @@ func (x *Remove_TimestampRequest) String() string { func (*Remove_TimestampRequest) ProtoMessage() {} func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2605,7 +2877,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2618,7 +2890,7 @@ func (x *Remove_Timestamp) String() string { func (*Remove_Timestamp) ProtoMessage() {} func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2663,7 +2935,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2676,7 +2948,7 @@ func (x *Remove_Config) String() string { func (*Remove_Config) ProtoMessage() {} func (x *Remove_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2715,7 +2987,7 @@ type Flush_Request struct { func (x *Flush_Request) Reset() { *x = Flush_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2728,7 +3000,7 @@ func (x *Flush_Request) String() string { func (*Flush_Request) ProtoMessage() {} func (x *Flush_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2753,13 +3025,13 @@ type Object_VectorRequest struct { // The vector ID to be fetched. Id *Object_ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Filter configurations. - Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` + Filters []*Filter_Config `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` } func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2772,7 +3044,7 @@ func (x *Object_VectorRequest) String() string { func (*Object_VectorRequest) ProtoMessage() {} func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2795,7 +3067,7 @@ func (x *Object_VectorRequest) GetId() *Object_ID { return nil } -func (x *Object_VectorRequest) GetFilters() *Filter_Config { +func (x *Object_VectorRequest) GetFilters() []*Filter_Config { if x != nil { return x.Filters } @@ -2817,7 +3089,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2830,7 +3102,7 @@ func (x *Object_Distance) String() string { func (*Object_Distance) ProtoMessage() {} func (x *Object_Distance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2876,7 +3148,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2889,7 +3161,7 @@ func (x *Object_StreamDistance) String() string { func (*Object_StreamDistance) ProtoMessage() {} func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2956,7 +3228,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2969,7 +3241,7 @@ func (x *Object_ID) String() string { func (*Object_ID) ProtoMessage() {} func (x *Object_ID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3004,7 +3276,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3017,7 +3289,7 @@ func (x *Object_IDs) String() string { func (*Object_IDs) ProtoMessage() {} func (x *Object_IDs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3057,7 +3329,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3070,7 +3342,7 @@ func (x *Object_Vector) String() string { func (*Object_Vector) ProtoMessage() {} func (x *Object_Vector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3120,7 +3392,7 @@ type Object_TimestampRequest struct { func (x *Object_TimestampRequest) Reset() { *x = Object_TimestampRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3133,7 +3405,7 @@ func (x *Object_TimestampRequest) String() string { func (*Object_TimestampRequest) ProtoMessage() {} func (x *Object_TimestampRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3171,7 +3443,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3184,7 +3456,7 @@ func (x *Object_Timestamp) String() string { func (*Object_Timestamp) ProtoMessage() {} func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3226,7 +3498,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3239,7 +3511,7 @@ func (x *Object_Vectors) String() string { func (*Object_Vectors) ProtoMessage() {} func (x *Object_Vectors) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3278,7 +3550,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3291,7 +3563,7 @@ func (x *Object_StreamVector) String() string { func (*Object_StreamVector) ProtoMessage() {} func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3361,7 +3633,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3374,7 +3646,7 @@ func (x *Object_ReshapeVector) String() string { func (*Object_ReshapeVector) ProtoMessage() {} func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3419,7 +3691,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3432,7 +3704,7 @@ func (x *Object_Blob) String() string { func (*Object_Blob) ProtoMessage() {} func (x *Object_Blob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3478,7 +3750,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3491,7 +3763,7 @@ func (x *Object_StreamBlob) String() string { func (*Object_StreamBlob) ProtoMessage() {} func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3563,7 +3835,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3576,7 +3848,7 @@ func (x *Object_Location) String() string { func (*Object_Location) ProtoMessage() {} func (x *Object_Location) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3629,7 +3901,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3642,7 +3914,7 @@ func (x *Object_StreamLocation) String() string { func (*Object_StreamLocation) ProtoMessage() {} func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3709,7 +3981,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3722,7 +3994,7 @@ func (x *Object_Locations) String() string { func (*Object_Locations) ProtoMessage() {} func (x *Object_Locations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3755,7 +4027,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3768,7 +4040,7 @@ func (x *Object_List) String() string { func (*Object_List) ProtoMessage() {} func (x *Object_List) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3793,7 +4065,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3806,7 +4078,7 @@ func (x *Object_List_Request) String() string { func (*Object_List_Request) ProtoMessage() {} func (x *Object_List_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3837,7 +4109,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3850,7 +4122,7 @@ func (x *Object_List_Response) String() string { func (*Object_List_Response) ProtoMessage() {} func (x *Object_List_Response) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3918,7 +4190,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3931,7 +4203,7 @@ func (x *Control_CreateIndexRequest) String() string { func (*Control_CreateIndexRequest) ProtoMessage() {} func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3971,7 +4243,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3984,7 +4256,7 @@ func (x *Discoverer_Request) String() string { func (*Discoverer_Request) ProtoMessage() {} func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4031,7 +4303,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4044,7 +4316,7 @@ func (x *Info_Index) String() string { func (*Info_Index) ProtoMessage() {} func (x *Info_Index) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4085,7 +4357,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4098,7 +4370,7 @@ func (x *Info_Pod) String() string { func (*Info_Pod) ProtoMessage() {} func (x *Info_Pod) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4186,7 +4458,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4199,7 +4471,7 @@ func (x *Info_Node) String() string { func (*Info_Node) ProtoMessage() {} func (x *Info_Node) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4280,7 +4552,7 @@ type Info_Service struct { func (x *Info_Service) Reset() { *x = Info_Service{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4293,7 +4565,7 @@ func (x *Info_Service) String() string { func (*Info_Service) ProtoMessage() {} func (x *Info_Service) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4366,7 +4638,7 @@ type Info_ServicePort struct { func (x *Info_ServicePort) Reset() { *x = Info_ServicePort{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4379,7 +4651,7 @@ func (x *Info_ServicePort) String() string { func (*Info_ServicePort) ProtoMessage() {} func (x *Info_ServicePort) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4421,7 +4693,7 @@ type Info_Labels struct { func (x *Info_Labels) Reset() { *x = Info_Labels{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4434,7 +4706,7 @@ func (x *Info_Labels) String() string { func (*Info_Labels) ProtoMessage() {} func (x *Info_Labels) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4469,7 +4741,7 @@ type Info_Annotations struct { func (x *Info_Annotations) Reset() { *x = Info_Annotations{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4482,7 +4754,7 @@ func (x *Info_Annotations) String() string { func (*Info_Annotations) ProtoMessage() {} func (x *Info_Annotations) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4522,7 +4794,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4535,7 +4807,7 @@ func (x *Info_CPU) String() string { func (*Info_CPU) ProtoMessage() {} func (x *Info_CPU) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4589,7 +4861,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4602,7 +4874,7 @@ func (x *Info_Memory) String() string { func (*Info_Memory) ProtoMessage() {} func (x *Info_Memory) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4652,7 +4924,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4665,7 +4937,7 @@ func (x *Info_Pods) String() string { func (*Info_Pods) ProtoMessage() {} func (x *Info_Pods) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4701,7 +4973,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4714,7 +4986,7 @@ func (x *Info_Nodes) String() string { func (*Info_Nodes) ProtoMessage() {} func (x *Info_Nodes) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4750,7 +5022,7 @@ type Info_Services struct { func (x *Info_Services) Reset() { *x = Info_Services{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4763,7 +5035,7 @@ func (x *Info_Services) String() string { func (*Info_Services) ProtoMessage() {} func (x *Info_Services) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[85] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4798,7 +5070,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4811,7 +5083,7 @@ func (x *Info_IPs) String() string { func (*Info_IPs) ProtoMessage() {} func (x *Info_IPs) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[86] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4853,7 +5125,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[82] + mi := &file_v1_payload_payload_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4866,7 +5138,7 @@ func (x *Info_Index_Count) String() string { func (*Info_Index_Count) ProtoMessage() {} func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[82] + mi := &file_v1_payload_payload_proto_msgTypes[87] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4927,7 +5199,7 @@ type Info_Index_Detail struct { func (x *Info_Index_Detail) Reset() { *x = Info_Index_Detail{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[83] + mi := &file_v1_payload_payload_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4940,7 +5212,7 @@ func (x *Info_Index_Detail) String() string { func (*Info_Index_Detail) ProtoMessage() {} func (x *Info_Index_Detail) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[83] + mi := &file_v1_payload_payload_proto_msgTypes[88] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4987,7 +5259,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[84] + mi := &file_v1_payload_payload_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5000,7 +5272,7 @@ func (x *Info_Index_UUID) String() string { func (*Info_Index_UUID) ProtoMessage() {} func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[84] + mi := &file_v1_payload_payload_proto_msgTypes[89] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5060,7 +5332,7 @@ type Info_Index_Statistics struct { func (x *Info_Index_Statistics) Reset() { *x = Info_Index_Statistics{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[85] + mi := &file_v1_payload_payload_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5073,7 +5345,7 @@ func (x *Info_Index_Statistics) String() string { func (*Info_Index_Statistics) ProtoMessage() {} func (x *Info_Index_Statistics) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[85] + mi := &file_v1_payload_payload_proto_msgTypes[90] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5333,7 +5605,7 @@ type Info_Index_StatisticsDetail struct { func (x *Info_Index_StatisticsDetail) Reset() { *x = Info_Index_StatisticsDetail{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[86] + mi := &file_v1_payload_payload_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5346,7 +5618,7 @@ func (x *Info_Index_StatisticsDetail) String() string { func (*Info_Index_StatisticsDetail) ProtoMessage() {} func (x *Info_Index_StatisticsDetail) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[86] + mi := &file_v1_payload_payload_proto_msgTypes[91] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5414,7 +5686,7 @@ type Info_Index_Property struct { func (x *Info_Index_Property) Reset() { *x = Info_Index_Property{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[87] + mi := &file_v1_payload_payload_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5427,7 +5699,7 @@ func (x *Info_Index_Property) String() string { func (*Info_Index_Property) ProtoMessage() {} func (x *Info_Index_Property) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[87] + mi := &file_v1_payload_payload_proto_msgTypes[92] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5693,7 +5965,7 @@ type Info_Index_PropertyDetail struct { func (x *Info_Index_PropertyDetail) Reset() { *x = Info_Index_PropertyDetail{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[88] + mi := &file_v1_payload_payload_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5706,7 +5978,7 @@ func (x *Info_Index_PropertyDetail) String() string { func (*Info_Index_PropertyDetail) ProtoMessage() {} func (x *Info_Index_PropertyDetail) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[88] + mi := &file_v1_payload_payload_proto_msgTypes[93] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5741,7 +6013,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[90] + mi := &file_v1_payload_payload_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5754,7 +6026,7 @@ func (x *Info_Index_UUID_Committed) String() string { func (*Info_Index_UUID_Committed) ProtoMessage() {} func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[90] + mi := &file_v1_payload_payload_proto_msgTypes[95] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5789,7 +6061,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[91] + mi := &file_v1_payload_payload_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5802,7 +6074,7 @@ func (x *Info_Index_UUID_Uncommitted) String() string { func (*Info_Index_UUID_Uncommitted) ProtoMessage() {} func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[91] + mi := &file_v1_payload_payload_proto_msgTypes[96] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5840,7 +6112,7 @@ type Mirror_Target struct { func (x *Mirror_Target) Reset() { *x = Mirror_Target{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[96] + mi := &file_v1_payload_payload_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5853,7 +6125,7 @@ func (x *Mirror_Target) String() string { func (*Mirror_Target) ProtoMessage() {} func (x *Mirror_Target) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[96] + mi := &file_v1_payload_payload_proto_msgTypes[101] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5896,7 +6168,7 @@ type Mirror_Targets struct { func (x *Mirror_Targets) Reset() { *x = Mirror_Targets{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[97] + mi := &file_v1_payload_payload_proto_msgTypes[102] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5909,7 +6181,7 @@ func (x *Mirror_Targets) String() string { func (*Mirror_Targets) ProtoMessage() {} func (x *Mirror_Targets) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[97] + mi := &file_v1_payload_payload_proto_msgTypes[102] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5943,7 +6215,7 @@ type Meta_Key struct { func (x *Meta_Key) Reset() { *x = Meta_Key{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[98] + mi := &file_v1_payload_payload_proto_msgTypes[103] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5956,7 +6228,7 @@ func (x *Meta_Key) String() string { func (*Meta_Key) ProtoMessage() {} func (x *Meta_Key) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[98] + mi := &file_v1_payload_payload_proto_msgTypes[103] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5990,7 +6262,7 @@ type Meta_Value struct { func (x *Meta_Value) Reset() { *x = Meta_Value{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[99] + mi := &file_v1_payload_payload_proto_msgTypes[104] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6003,7 +6275,7 @@ func (x *Meta_Value) String() string { func (*Meta_Value) ProtoMessage() {} func (x *Meta_Value) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[99] + mi := &file_v1_payload_payload_proto_msgTypes[104] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6038,7 +6310,7 @@ type Meta_KeyValue struct { func (x *Meta_KeyValue) Reset() { *x = Meta_KeyValue{} if protoimpl.UnsafeEnabled { - mi := &file_v1_payload_payload_proto_msgTypes[100] + mi := &file_v1_payload_payload_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6051,7 +6323,7 @@ func (x *Meta_KeyValue) String() string { func (*Meta_KeyValue) ProtoMessage() {} func (x *Meta_KeyValue) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[100] + mi := &file_v1_payload_payload_proto_msgTypes[105] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6139,11 +6411,11 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x6d, 0x69, 0x6e, @@ -6185,14 +6457,43 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x72, 0x74, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x61, 0x70, - 0x10, 0x04, 0x22, 0x79, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, - 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, - 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x3d, - 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0xe5, 0x04, + 0x10, 0x04, 0x22, 0xc8, 0x04, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, + 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, + 0x1d, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x6b, + 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x7a, 0x0a, 0x0f, 0x44, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, + 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x4b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, + 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x72, 0x0a, 0x0d, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x43, 0x0a, 0x0e, 0x56, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x76, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x06, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, @@ -6227,7 +6528,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, @@ -6271,7 +6572,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, @@ -6313,7 +6614,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x69, 0x63, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, 0x6b, 0x69, 0x70, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x33, 0x0a, 0x07, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, @@ -6361,7 +6662,7 @@ var file_v1_payload_payload_proto_rawDesc = []byte{ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x44, 0x42, 0x08, 0xba, 0x48, 0x05, 0x92, 0x01, 0x02, 0x08, 0x02, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, @@ -6850,7 +7151,7 @@ func file_v1_payload_payload_proto_rawDescGZIP() []byte { var ( file_v1_payload_payload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 101) + file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 106) file_v1_payload_payload_proto_goTypes = []any{ (Search_AggregationAlgorithm)(0), // 0: payload.v1.Search.AggregationAlgorithm (Remove_Timestamp_Operator)(0), // 1: payload.v1.Remove.Timestamp.Operator @@ -6879,88 +7180,92 @@ var ( (*Search_Responses)(nil), // 24: payload.v1.Search.Responses (*Search_StreamResponse)(nil), // 25: payload.v1.Search.StreamResponse (*Filter_Target)(nil), // 26: payload.v1.Filter.Target - (*Filter_Config)(nil), // 27: payload.v1.Filter.Config - (*Insert_Request)(nil), // 28: payload.v1.Insert.Request - (*Insert_MultiRequest)(nil), // 29: payload.v1.Insert.MultiRequest - (*Insert_ObjectRequest)(nil), // 30: payload.v1.Insert.ObjectRequest - (*Insert_MultiObjectRequest)(nil), // 31: payload.v1.Insert.MultiObjectRequest - (*Insert_Config)(nil), // 32: payload.v1.Insert.Config - (*Update_Request)(nil), // 33: payload.v1.Update.Request - (*Update_MultiRequest)(nil), // 34: payload.v1.Update.MultiRequest - (*Update_ObjectRequest)(nil), // 35: payload.v1.Update.ObjectRequest - (*Update_MultiObjectRequest)(nil), // 36: payload.v1.Update.MultiObjectRequest - (*Update_TimestampRequest)(nil), // 37: payload.v1.Update.TimestampRequest - (*Update_Config)(nil), // 38: payload.v1.Update.Config - (*Upsert_Request)(nil), // 39: payload.v1.Upsert.Request - (*Upsert_MultiRequest)(nil), // 40: payload.v1.Upsert.MultiRequest - (*Upsert_ObjectRequest)(nil), // 41: payload.v1.Upsert.ObjectRequest - (*Upsert_MultiObjectRequest)(nil), // 42: payload.v1.Upsert.MultiObjectRequest - (*Upsert_Config)(nil), // 43: payload.v1.Upsert.Config - (*Remove_Request)(nil), // 44: payload.v1.Remove.Request - (*Remove_MultiRequest)(nil), // 45: payload.v1.Remove.MultiRequest - (*Remove_TimestampRequest)(nil), // 46: payload.v1.Remove.TimestampRequest - (*Remove_Timestamp)(nil), // 47: payload.v1.Remove.Timestamp - (*Remove_Config)(nil), // 48: payload.v1.Remove.Config - (*Flush_Request)(nil), // 49: payload.v1.Flush.Request - (*Object_VectorRequest)(nil), // 50: payload.v1.Object.VectorRequest - (*Object_Distance)(nil), // 51: payload.v1.Object.Distance - (*Object_StreamDistance)(nil), // 52: payload.v1.Object.StreamDistance - (*Object_ID)(nil), // 53: payload.v1.Object.ID - (*Object_IDs)(nil), // 54: payload.v1.Object.IDs - (*Object_Vector)(nil), // 55: payload.v1.Object.Vector - (*Object_TimestampRequest)(nil), // 56: payload.v1.Object.TimestampRequest - (*Object_Timestamp)(nil), // 57: payload.v1.Object.Timestamp - (*Object_Vectors)(nil), // 58: payload.v1.Object.Vectors - (*Object_StreamVector)(nil), // 59: payload.v1.Object.StreamVector - (*Object_ReshapeVector)(nil), // 60: payload.v1.Object.ReshapeVector - (*Object_Blob)(nil), // 61: payload.v1.Object.Blob - (*Object_StreamBlob)(nil), // 62: payload.v1.Object.StreamBlob - (*Object_Location)(nil), // 63: payload.v1.Object.Location - (*Object_StreamLocation)(nil), // 64: payload.v1.Object.StreamLocation - (*Object_Locations)(nil), // 65: payload.v1.Object.Locations - (*Object_List)(nil), // 66: payload.v1.Object.List - (*Object_List_Request)(nil), // 67: payload.v1.Object.List.Request - (*Object_List_Response)(nil), // 68: payload.v1.Object.List.Response - (*Control_CreateIndexRequest)(nil), // 69: payload.v1.Control.CreateIndexRequest - (*Discoverer_Request)(nil), // 70: payload.v1.Discoverer.Request - (*Info_Index)(nil), // 71: payload.v1.Info.Index - (*Info_Pod)(nil), // 72: payload.v1.Info.Pod - (*Info_Node)(nil), // 73: payload.v1.Info.Node - (*Info_Service)(nil), // 74: payload.v1.Info.Service - (*Info_ServicePort)(nil), // 75: payload.v1.Info.ServicePort - (*Info_Labels)(nil), // 76: payload.v1.Info.Labels - (*Info_Annotations)(nil), // 77: payload.v1.Info.Annotations - (*Info_CPU)(nil), // 78: payload.v1.Info.CPU - (*Info_Memory)(nil), // 79: payload.v1.Info.Memory - (*Info_Pods)(nil), // 80: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 81: payload.v1.Info.Nodes - (*Info_Services)(nil), // 82: payload.v1.Info.Services - (*Info_IPs)(nil), // 83: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 84: payload.v1.Info.Index.Count - (*Info_Index_Detail)(nil), // 85: payload.v1.Info.Index.Detail - (*Info_Index_UUID)(nil), // 86: payload.v1.Info.Index.UUID - (*Info_Index_Statistics)(nil), // 87: payload.v1.Info.Index.Statistics - (*Info_Index_StatisticsDetail)(nil), // 88: payload.v1.Info.Index.StatisticsDetail - (*Info_Index_Property)(nil), // 89: payload.v1.Info.Index.Property - (*Info_Index_PropertyDetail)(nil), // 90: payload.v1.Info.Index.PropertyDetail - nil, // 91: payload.v1.Info.Index.Detail.CountsEntry - (*Info_Index_UUID_Committed)(nil), // 92: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 93: payload.v1.Info.Index.UUID.Uncommitted - nil, // 94: payload.v1.Info.Index.StatisticsDetail.DetailsEntry - nil, // 95: payload.v1.Info.Index.PropertyDetail.DetailsEntry - nil, // 96: payload.v1.Info.Labels.LabelsEntry - nil, // 97: payload.v1.Info.Annotations.AnnotationsEntry - (*Mirror_Target)(nil), // 98: payload.v1.Mirror.Target - (*Mirror_Targets)(nil), // 99: payload.v1.Mirror.Targets - (*Meta_Key)(nil), // 100: payload.v1.Meta.Key - (*Meta_Value)(nil), // 101: payload.v1.Meta.Value - (*Meta_KeyValue)(nil), // 102: payload.v1.Meta.KeyValue - (*wrapperspb.FloatValue)(nil), // 103: google.protobuf.FloatValue - (*status.Status)(nil), // 104: google.rpc.Status - (*anypb.Any)(nil), // 105: google.protobuf.Any + (*Filter_Query)(nil), // 27: payload.v1.Filter.Query + (*Filter_Config)(nil), // 28: payload.v1.Filter.Config + (*Filter_DistanceRequest)(nil), // 29: payload.v1.Filter.DistanceRequest + (*Filter_DistanceResponse)(nil), // 30: payload.v1.Filter.DistanceResponse + (*Filter_VectorRequest)(nil), // 31: payload.v1.Filter.VectorRequest + (*Filter_VectorResponse)(nil), // 32: payload.v1.Filter.VectorResponse + (*Insert_Request)(nil), // 33: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 34: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 35: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 36: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 37: payload.v1.Insert.Config + (*Update_Request)(nil), // 38: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 39: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 40: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 41: payload.v1.Update.MultiObjectRequest + (*Update_TimestampRequest)(nil), // 42: payload.v1.Update.TimestampRequest + (*Update_Config)(nil), // 43: payload.v1.Update.Config + (*Upsert_Request)(nil), // 44: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 45: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 46: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 47: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 48: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 49: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 50: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 51: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 52: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 53: payload.v1.Remove.Config + (*Flush_Request)(nil), // 54: payload.v1.Flush.Request + (*Object_VectorRequest)(nil), // 55: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 56: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 57: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 58: payload.v1.Object.ID + (*Object_IDs)(nil), // 59: payload.v1.Object.IDs + (*Object_Vector)(nil), // 60: payload.v1.Object.Vector + (*Object_TimestampRequest)(nil), // 61: payload.v1.Object.TimestampRequest + (*Object_Timestamp)(nil), // 62: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 63: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 64: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 65: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 66: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 67: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 68: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 69: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 70: payload.v1.Object.Locations + (*Object_List)(nil), // 71: payload.v1.Object.List + (*Object_List_Request)(nil), // 72: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 73: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 74: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 75: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 76: payload.v1.Info.Index + (*Info_Pod)(nil), // 77: payload.v1.Info.Pod + (*Info_Node)(nil), // 78: payload.v1.Info.Node + (*Info_Service)(nil), // 79: payload.v1.Info.Service + (*Info_ServicePort)(nil), // 80: payload.v1.Info.ServicePort + (*Info_Labels)(nil), // 81: payload.v1.Info.Labels + (*Info_Annotations)(nil), // 82: payload.v1.Info.Annotations + (*Info_CPU)(nil), // 83: payload.v1.Info.CPU + (*Info_Memory)(nil), // 84: payload.v1.Info.Memory + (*Info_Pods)(nil), // 85: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 86: payload.v1.Info.Nodes + (*Info_Services)(nil), // 87: payload.v1.Info.Services + (*Info_IPs)(nil), // 88: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 89: payload.v1.Info.Index.Count + (*Info_Index_Detail)(nil), // 90: payload.v1.Info.Index.Detail + (*Info_Index_UUID)(nil), // 91: payload.v1.Info.Index.UUID + (*Info_Index_Statistics)(nil), // 92: payload.v1.Info.Index.Statistics + (*Info_Index_StatisticsDetail)(nil), // 93: payload.v1.Info.Index.StatisticsDetail + (*Info_Index_Property)(nil), // 94: payload.v1.Info.Index.Property + (*Info_Index_PropertyDetail)(nil), // 95: payload.v1.Info.Index.PropertyDetail + nil, // 96: payload.v1.Info.Index.Detail.CountsEntry + (*Info_Index_UUID_Committed)(nil), // 97: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 98: payload.v1.Info.Index.UUID.Uncommitted + nil, // 99: payload.v1.Info.Index.StatisticsDetail.DetailsEntry + nil, // 100: payload.v1.Info.Index.PropertyDetail.DetailsEntry + nil, // 101: payload.v1.Info.Labels.LabelsEntry + nil, // 102: payload.v1.Info.Annotations.AnnotationsEntry + (*Mirror_Target)(nil), // 103: payload.v1.Mirror.Target + (*Mirror_Targets)(nil), // 104: payload.v1.Mirror.Targets + (*Meta_Key)(nil), // 105: payload.v1.Meta.Key + (*Meta_Value)(nil), // 106: payload.v1.Meta.Value + (*Meta_KeyValue)(nil), // 107: payload.v1.Meta.KeyValue + (*wrapperspb.FloatValue)(nil), // 108: google.protobuf.FloatValue + (*status.Status)(nil), // 109: google.rpc.Status + (*anypb.Any)(nil), // 110: google.protobuf.Any } ) - var file_v1_payload_payload_proto_depIdxs = []int32{ 22, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config 16, // 1: payload.v1.Search.MultiRequest.requests:type_name -> payload.v1.Search.Request @@ -6969,88 +7274,95 @@ var file_v1_payload_payload_proto_depIdxs = []int32{ 22, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config 26, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target 20, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest - 27, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config - 27, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config + 28, // 7: payload.v1.Search.Config.ingress_filters:type_name -> payload.v1.Filter.Config + 28, // 8: payload.v1.Search.Config.egress_filters:type_name -> payload.v1.Filter.Config 0, // 9: payload.v1.Search.Config.aggregation_algorithm:type_name -> payload.v1.Search.AggregationAlgorithm - 103, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue - 51, // 11: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 108, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue + 56, // 11: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance 23, // 12: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response 23, // 13: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response - 104, // 14: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status - 26, // 15: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target - 55, // 16: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector - 32, // 17: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config - 28, // 18: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request - 61, // 19: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 32, // 20: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config - 26, // 21: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 30, // 22: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest - 27, // 23: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config - 55, // 24: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector - 38, // 25: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config - 33, // 26: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request - 61, // 27: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 38, // 28: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config - 26, // 29: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 35, // 30: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest - 27, // 31: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config - 55, // 32: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector - 43, // 33: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config - 39, // 34: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request - 61, // 35: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob - 43, // 36: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config - 26, // 37: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target - 41, // 38: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest - 27, // 39: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config - 53, // 40: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID - 48, // 41: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config - 44, // 42: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request - 47, // 43: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp - 1, // 44: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator - 53, // 45: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID - 27, // 46: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config - 51, // 47: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance - 104, // 48: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status - 53, // 49: payload.v1.Object.TimestampRequest.id:type_name -> payload.v1.Object.ID - 55, // 50: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector - 55, // 51: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector - 104, // 52: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 61, // 53: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 104, // 54: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 63, // 55: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 104, // 56: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status - 63, // 57: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location - 55, // 58: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector - 104, // 59: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 78, // 60: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 79, // 61: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 73, // 62: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 78, // 63: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 79, // 64: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 80, // 65: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 75, // 66: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort - 76, // 67: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels - 77, // 68: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations - 96, // 69: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry - 97, // 70: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry - 72, // 71: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 73, // 72: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 74, // 73: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service - 91, // 74: payload.v1.Info.Index.Detail.counts:type_name -> payload.v1.Info.Index.Detail.CountsEntry - 94, // 75: payload.v1.Info.Index.StatisticsDetail.details:type_name -> payload.v1.Info.Index.StatisticsDetail.DetailsEntry - 95, // 76: payload.v1.Info.Index.PropertyDetail.details:type_name -> payload.v1.Info.Index.PropertyDetail.DetailsEntry - 84, // 77: payload.v1.Info.Index.Detail.CountsEntry.value:type_name -> payload.v1.Info.Index.Count - 87, // 78: payload.v1.Info.Index.StatisticsDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Statistics - 89, // 79: payload.v1.Info.Index.PropertyDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Property - 98, // 80: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target - 105, // 81: payload.v1.Meta.Value.value:type_name -> google.protobuf.Any - 100, // 82: payload.v1.Meta.KeyValue.key:type_name -> payload.v1.Meta.Key - 101, // 83: payload.v1.Meta.KeyValue.value:type_name -> payload.v1.Meta.Value - 84, // [84:84] is the sub-list for method output_type - 84, // [84:84] is the sub-list for method input_type - 84, // [84:84] is the sub-list for extension type_name - 84, // [84:84] is the sub-list for extension extendee - 0, // [0:84] is the sub-list for field type_name + 109, // 14: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 26, // 15: payload.v1.Filter.Config.target:type_name -> payload.v1.Filter.Target + 27, // 16: payload.v1.Filter.Config.query:type_name -> payload.v1.Filter.Query + 56, // 17: payload.v1.Filter.DistanceRequest.distance:type_name -> payload.v1.Object.Distance + 27, // 18: payload.v1.Filter.DistanceRequest.query:type_name -> payload.v1.Filter.Query + 56, // 19: payload.v1.Filter.DistanceResponse.distance:type_name -> payload.v1.Object.Distance + 60, // 20: payload.v1.Filter.VectorRequest.vector:type_name -> payload.v1.Object.Vector + 27, // 21: payload.v1.Filter.VectorRequest.query:type_name -> payload.v1.Filter.Query + 60, // 22: payload.v1.Filter.VectorResponse.vector:type_name -> payload.v1.Object.Vector + 60, // 23: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 37, // 24: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 33, // 25: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 66, // 26: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 37, // 27: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 26, // 28: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 35, // 29: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 28, // 30: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 60, // 31: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 43, // 32: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 38, // 33: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 66, // 34: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 43, // 35: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 26, // 36: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 40, // 37: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 28, // 38: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 60, // 39: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 48, // 40: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 44, // 41: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 66, // 42: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 48, // 43: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 26, // 44: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 46, // 45: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 28, // 46: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 58, // 47: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 53, // 48: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 49, // 49: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 52, // 50: payload.v1.Remove.TimestampRequest.timestamps:type_name -> payload.v1.Remove.Timestamp + 1, // 51: payload.v1.Remove.Timestamp.operator:type_name -> payload.v1.Remove.Timestamp.Operator + 58, // 52: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 28, // 53: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 56, // 54: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 109, // 55: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 58, // 56: payload.v1.Object.TimestampRequest.id:type_name -> payload.v1.Object.ID + 60, // 57: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 60, // 58: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 109, // 59: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 66, // 60: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 109, // 61: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 68, // 62: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 109, // 63: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 68, // 64: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 60, // 65: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 109, // 66: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 83, // 67: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 84, // 68: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 78, // 69: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 83, // 70: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 84, // 71: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 85, // 72: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 80, // 73: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort + 81, // 74: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels + 82, // 75: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations + 101, // 76: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry + 102, // 77: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry + 77, // 78: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 78, // 79: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 79, // 80: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service + 96, // 81: payload.v1.Info.Index.Detail.counts:type_name -> payload.v1.Info.Index.Detail.CountsEntry + 99, // 82: payload.v1.Info.Index.StatisticsDetail.details:type_name -> payload.v1.Info.Index.StatisticsDetail.DetailsEntry + 100, // 83: payload.v1.Info.Index.PropertyDetail.details:type_name -> payload.v1.Info.Index.PropertyDetail.DetailsEntry + 89, // 84: payload.v1.Info.Index.Detail.CountsEntry.value:type_name -> payload.v1.Info.Index.Count + 92, // 85: payload.v1.Info.Index.StatisticsDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Statistics + 94, // 86: payload.v1.Info.Index.PropertyDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Property + 103, // 87: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target + 110, // 88: payload.v1.Meta.Value.value:type_name -> google.protobuf.Any + 105, // 89: payload.v1.Meta.KeyValue.key:type_name -> payload.v1.Meta.Key + 106, // 90: payload.v1.Meta.KeyValue.value:type_name -> payload.v1.Meta.Value + 91, // [91:91] is the sub-list for method output_type + 91, // [91:91] is the sub-list for method input_type + 91, // [91:91] is the sub-list for extension type_name + 91, // [91:91] is the sub-list for extension extendee + 0, // [0:91] is the sub-list for field type_name } func init() { file_v1_payload_payload_proto_init() } @@ -7360,7 +7672,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*Filter_Config); i { + switch v := v.(*Filter_Query); i { case 0: return &v.state case 1: @@ -7372,7 +7684,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*Insert_Request); i { + switch v := v.(*Filter_Config); i { case 0: return &v.state case 1: @@ -7384,7 +7696,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*Insert_MultiRequest); i { + switch v := v.(*Filter_DistanceRequest); i { case 0: return &v.state case 1: @@ -7396,7 +7708,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*Insert_ObjectRequest); i { + switch v := v.(*Filter_DistanceResponse); i { case 0: return &v.state case 1: @@ -7408,7 +7720,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[29].Exporter = func(v any, i int) any { - switch v := v.(*Insert_MultiObjectRequest); i { + switch v := v.(*Filter_VectorRequest); i { case 0: return &v.state case 1: @@ -7420,7 +7732,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[30].Exporter = func(v any, i int) any { - switch v := v.(*Insert_Config); i { + switch v := v.(*Filter_VectorResponse); i { case 0: return &v.state case 1: @@ -7432,7 +7744,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[31].Exporter = func(v any, i int) any { - switch v := v.(*Update_Request); i { + switch v := v.(*Insert_Request); i { case 0: return &v.state case 1: @@ -7444,7 +7756,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[32].Exporter = func(v any, i int) any { - switch v := v.(*Update_MultiRequest); i { + switch v := v.(*Insert_MultiRequest); i { case 0: return &v.state case 1: @@ -7456,7 +7768,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[33].Exporter = func(v any, i int) any { - switch v := v.(*Update_ObjectRequest); i { + switch v := v.(*Insert_ObjectRequest); i { case 0: return &v.state case 1: @@ -7468,7 +7780,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[34].Exporter = func(v any, i int) any { - switch v := v.(*Update_MultiObjectRequest); i { + switch v := v.(*Insert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -7480,7 +7792,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[35].Exporter = func(v any, i int) any { - switch v := v.(*Update_TimestampRequest); i { + switch v := v.(*Insert_Config); i { case 0: return &v.state case 1: @@ -7492,7 +7804,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[36].Exporter = func(v any, i int) any { - switch v := v.(*Update_Config); i { + switch v := v.(*Update_Request); i { case 0: return &v.state case 1: @@ -7504,7 +7816,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[37].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_Request); i { + switch v := v.(*Update_MultiRequest); i { case 0: return &v.state case 1: @@ -7516,7 +7828,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[38].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_MultiRequest); i { + switch v := v.(*Update_ObjectRequest); i { case 0: return &v.state case 1: @@ -7528,7 +7840,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[39].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_ObjectRequest); i { + switch v := v.(*Update_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -7540,7 +7852,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[40].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_MultiObjectRequest); i { + switch v := v.(*Update_TimestampRequest); i { case 0: return &v.state case 1: @@ -7552,7 +7864,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[41].Exporter = func(v any, i int) any { - switch v := v.(*Upsert_Config); i { + switch v := v.(*Update_Config); i { case 0: return &v.state case 1: @@ -7564,7 +7876,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[42].Exporter = func(v any, i int) any { - switch v := v.(*Remove_Request); i { + switch v := v.(*Upsert_Request); i { case 0: return &v.state case 1: @@ -7576,7 +7888,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[43].Exporter = func(v any, i int) any { - switch v := v.(*Remove_MultiRequest); i { + switch v := v.(*Upsert_MultiRequest); i { case 0: return &v.state case 1: @@ -7588,7 +7900,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[44].Exporter = func(v any, i int) any { - switch v := v.(*Remove_TimestampRequest); i { + switch v := v.(*Upsert_ObjectRequest); i { case 0: return &v.state case 1: @@ -7600,7 +7912,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[45].Exporter = func(v any, i int) any { - switch v := v.(*Remove_Timestamp); i { + switch v := v.(*Upsert_MultiObjectRequest); i { case 0: return &v.state case 1: @@ -7612,7 +7924,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[46].Exporter = func(v any, i int) any { - switch v := v.(*Remove_Config); i { + switch v := v.(*Upsert_Config); i { case 0: return &v.state case 1: @@ -7624,7 +7936,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[47].Exporter = func(v any, i int) any { - switch v := v.(*Flush_Request); i { + switch v := v.(*Remove_Request); i { case 0: return &v.state case 1: @@ -7636,7 +7948,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[48].Exporter = func(v any, i int) any { - switch v := v.(*Object_VectorRequest); i { + switch v := v.(*Remove_MultiRequest); i { case 0: return &v.state case 1: @@ -7648,7 +7960,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[49].Exporter = func(v any, i int) any { - switch v := v.(*Object_Distance); i { + switch v := v.(*Remove_TimestampRequest); i { case 0: return &v.state case 1: @@ -7660,7 +7972,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[50].Exporter = func(v any, i int) any { - switch v := v.(*Object_StreamDistance); i { + switch v := v.(*Remove_Timestamp); i { case 0: return &v.state case 1: @@ -7672,7 +7984,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[51].Exporter = func(v any, i int) any { - switch v := v.(*Object_ID); i { + switch v := v.(*Remove_Config); i { case 0: return &v.state case 1: @@ -7684,7 +7996,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[52].Exporter = func(v any, i int) any { - switch v := v.(*Object_IDs); i { + switch v := v.(*Flush_Request); i { case 0: return &v.state case 1: @@ -7696,7 +8008,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[53].Exporter = func(v any, i int) any { - switch v := v.(*Object_Vector); i { + switch v := v.(*Object_VectorRequest); i { case 0: return &v.state case 1: @@ -7708,7 +8020,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[54].Exporter = func(v any, i int) any { - switch v := v.(*Object_TimestampRequest); i { + switch v := v.(*Object_Distance); i { case 0: return &v.state case 1: @@ -7720,7 +8032,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[55].Exporter = func(v any, i int) any { - switch v := v.(*Object_Timestamp); i { + switch v := v.(*Object_StreamDistance); i { case 0: return &v.state case 1: @@ -7732,7 +8044,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[56].Exporter = func(v any, i int) any { - switch v := v.(*Object_Vectors); i { + switch v := v.(*Object_ID); i { case 0: return &v.state case 1: @@ -7744,7 +8056,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[57].Exporter = func(v any, i int) any { - switch v := v.(*Object_StreamVector); i { + switch v := v.(*Object_IDs); i { case 0: return &v.state case 1: @@ -7756,7 +8068,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[58].Exporter = func(v any, i int) any { - switch v := v.(*Object_ReshapeVector); i { + switch v := v.(*Object_Vector); i { case 0: return &v.state case 1: @@ -7768,7 +8080,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[59].Exporter = func(v any, i int) any { - switch v := v.(*Object_Blob); i { + switch v := v.(*Object_TimestampRequest); i { case 0: return &v.state case 1: @@ -7780,7 +8092,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[60].Exporter = func(v any, i int) any { - switch v := v.(*Object_StreamBlob); i { + switch v := v.(*Object_Timestamp); i { case 0: return &v.state case 1: @@ -7792,7 +8104,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[61].Exporter = func(v any, i int) any { - switch v := v.(*Object_Location); i { + switch v := v.(*Object_Vectors); i { case 0: return &v.state case 1: @@ -7804,7 +8116,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[62].Exporter = func(v any, i int) any { - switch v := v.(*Object_StreamLocation); i { + switch v := v.(*Object_StreamVector); i { case 0: return &v.state case 1: @@ -7816,7 +8128,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[63].Exporter = func(v any, i int) any { - switch v := v.(*Object_Locations); i { + switch v := v.(*Object_ReshapeVector); i { case 0: return &v.state case 1: @@ -7828,7 +8140,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[64].Exporter = func(v any, i int) any { - switch v := v.(*Object_List); i { + switch v := v.(*Object_Blob); i { case 0: return &v.state case 1: @@ -7840,7 +8152,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[65].Exporter = func(v any, i int) any { - switch v := v.(*Object_List_Request); i { + switch v := v.(*Object_StreamBlob); i { case 0: return &v.state case 1: @@ -7852,7 +8164,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[66].Exporter = func(v any, i int) any { - switch v := v.(*Object_List_Response); i { + switch v := v.(*Object_Location); i { case 0: return &v.state case 1: @@ -7864,7 +8176,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[67].Exporter = func(v any, i int) any { - switch v := v.(*Control_CreateIndexRequest); i { + switch v := v.(*Object_StreamLocation); i { case 0: return &v.state case 1: @@ -7876,7 +8188,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[68].Exporter = func(v any, i int) any { - switch v := v.(*Discoverer_Request); i { + switch v := v.(*Object_Locations); i { case 0: return &v.state case 1: @@ -7888,7 +8200,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[69].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index); i { + switch v := v.(*Object_List); i { case 0: return &v.state case 1: @@ -7900,7 +8212,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[70].Exporter = func(v any, i int) any { - switch v := v.(*Info_Pod); i { + switch v := v.(*Object_List_Request); i { case 0: return &v.state case 1: @@ -7912,7 +8224,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[71].Exporter = func(v any, i int) any { - switch v := v.(*Info_Node); i { + switch v := v.(*Object_List_Response); i { case 0: return &v.state case 1: @@ -7924,7 +8236,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[72].Exporter = func(v any, i int) any { - switch v := v.(*Info_Service); i { + switch v := v.(*Control_CreateIndexRequest); i { case 0: return &v.state case 1: @@ -7936,7 +8248,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[73].Exporter = func(v any, i int) any { - switch v := v.(*Info_ServicePort); i { + switch v := v.(*Discoverer_Request); i { case 0: return &v.state case 1: @@ -7948,7 +8260,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[74].Exporter = func(v any, i int) any { - switch v := v.(*Info_Labels); i { + switch v := v.(*Info_Index); i { case 0: return &v.state case 1: @@ -7960,7 +8272,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[75].Exporter = func(v any, i int) any { - switch v := v.(*Info_Annotations); i { + switch v := v.(*Info_Pod); i { case 0: return &v.state case 1: @@ -7972,7 +8284,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[76].Exporter = func(v any, i int) any { - switch v := v.(*Info_CPU); i { + switch v := v.(*Info_Node); i { case 0: return &v.state case 1: @@ -7984,7 +8296,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[77].Exporter = func(v any, i int) any { - switch v := v.(*Info_Memory); i { + switch v := v.(*Info_Service); i { case 0: return &v.state case 1: @@ -7996,7 +8308,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[78].Exporter = func(v any, i int) any { - switch v := v.(*Info_Pods); i { + switch v := v.(*Info_ServicePort); i { case 0: return &v.state case 1: @@ -8008,7 +8320,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[79].Exporter = func(v any, i int) any { - switch v := v.(*Info_Nodes); i { + switch v := v.(*Info_Labels); i { case 0: return &v.state case 1: @@ -8020,7 +8332,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[80].Exporter = func(v any, i int) any { - switch v := v.(*Info_Services); i { + switch v := v.(*Info_Annotations); i { case 0: return &v.state case 1: @@ -8032,7 +8344,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[81].Exporter = func(v any, i int) any { - switch v := v.(*Info_IPs); i { + switch v := v.(*Info_CPU); i { case 0: return &v.state case 1: @@ -8044,7 +8356,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[82].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_Count); i { + switch v := v.(*Info_Memory); i { case 0: return &v.state case 1: @@ -8056,7 +8368,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[83].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_Detail); i { + switch v := v.(*Info_Pods); i { case 0: return &v.state case 1: @@ -8068,7 +8380,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[84].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_UUID); i { + switch v := v.(*Info_Nodes); i { case 0: return &v.state case 1: @@ -8080,7 +8392,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[85].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_Statistics); i { + switch v := v.(*Info_Services); i { case 0: return &v.state case 1: @@ -8092,7 +8404,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[86].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_StatisticsDetail); i { + switch v := v.(*Info_IPs); i { case 0: return &v.state case 1: @@ -8104,7 +8416,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[87].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_Property); i { + switch v := v.(*Info_Index_Count); i { case 0: return &v.state case 1: @@ -8116,7 +8428,19 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[88].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_PropertyDetail); i { + switch v := v.(*Info_Index_Detail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[89].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_UUID); i { case 0: return &v.state case 1: @@ -8128,7 +8452,7 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[90].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_UUID_Committed); i { + switch v := v.(*Info_Index_Statistics); i { case 0: return &v.state case 1: @@ -8140,7 +8464,43 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[91].Exporter = func(v any, i int) any { - switch v := v.(*Info_Index_UUID_Uncommitted); i { + switch v := v.(*Info_Index_StatisticsDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[92].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_Property); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[93].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_PropertyDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[95].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_UUID_Committed); i { case 0: return &v.state case 1: @@ -8152,6 +8512,18 @@ func file_v1_payload_payload_proto_init() { } } file_v1_payload_payload_proto_msgTypes[96].Exporter = func(v any, i int) any { + switch v := v.(*Info_Index_UUID_Uncommitted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_v1_payload_payload_proto_msgTypes[101].Exporter = func(v any, i int) any { switch v := v.(*Mirror_Target); i { case 0: return &v.state @@ -8163,7 +8535,7 @@ func file_v1_payload_payload_proto_init() { return nil } } - file_v1_payload_payload_proto_msgTypes[97].Exporter = func(v any, i int) any { + file_v1_payload_payload_proto_msgTypes[102].Exporter = func(v any, i int) any { switch v := v.(*Mirror_Targets); i { case 0: return &v.state @@ -8175,7 +8547,7 @@ func file_v1_payload_payload_proto_init() { return nil } } - file_v1_payload_payload_proto_msgTypes[98].Exporter = func(v any, i int) any { + file_v1_payload_payload_proto_msgTypes[103].Exporter = func(v any, i int) any { switch v := v.(*Meta_Key); i { case 0: return &v.state @@ -8187,7 +8559,7 @@ func file_v1_payload_payload_proto_init() { return nil } } - file_v1_payload_payload_proto_msgTypes[99].Exporter = func(v any, i int) any { + file_v1_payload_payload_proto_msgTypes[104].Exporter = func(v any, i int) any { switch v := v.(*Meta_Value); i { case 0: return &v.state @@ -8199,7 +8571,7 @@ func file_v1_payload_payload_proto_init() { return nil } } - file_v1_payload_payload_proto_msgTypes[100].Exporter = func(v any, i int) any { + file_v1_payload_payload_proto_msgTypes[105].Exporter = func(v any, i int) any { switch v := v.(*Meta_KeyValue); i { case 0: return &v.state @@ -8216,23 +8588,23 @@ func file_v1_payload_payload_proto_init() { (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[50].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[55].OneofWrappers = []any{ (*Object_StreamDistance_Distance)(nil), (*Object_StreamDistance_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[57].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[62].OneofWrappers = []any{ (*Object_StreamVector_Vector)(nil), (*Object_StreamVector_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[60].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[65].OneofWrappers = []any{ (*Object_StreamBlob_Blob)(nil), (*Object_StreamBlob_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[62].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[67].OneofWrappers = []any{ (*Object_StreamLocation_Location)(nil), (*Object_StreamLocation_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[66].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[71].OneofWrappers = []any{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -8242,7 +8614,7 @@ func file_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_v1_payload_payload_proto_rawDesc, NumEnums: 2, - NumMessages: 101, + NumMessages: 106, NumExtensions: 0, NumServices: 0, }, diff --git a/rust/libs/proto/src/payload.v1.rs b/rust/libs/proto/src/payload.v1.rs index ee11217a6f..2309846cd9 100644 --- a/rust/libs/proto/src/payload.v1.rs +++ b/rust/libs/proto/src/payload.v1.rs @@ -123,11 +123,11 @@ fn full_name() -> ::prost::alloc::string::String { "payload.v1.Search.MultiObjec #[prost(int64, tag="5")] pub timeout: i64, /// Ingress filter configurations. - #[prost(message, optional, tag="6")] - pub ingress_filters: ::core::option::Option, + #[prost(message, repeated, tag="6")] + pub ingress_filters: ::prost::alloc::vec::Vec, /// Egress filter configurations. - #[prost(message, optional, tag="7")] - pub egress_filters: ::core::option::Option, + #[prost(message, repeated, tag="7")] + pub egress_filters: ::prost::alloc::vec::Vec, /// Minimum number of result to be returned. #[prost(uint32, tag="8")] pub min_num: u32, @@ -259,18 +259,87 @@ impl ::prost::Name for Target { const NAME: &'static str = "Target"; const PACKAGE: &'static str = "payload.v1"; fn full_name() -> ::prost::alloc::string::String { "payload.v1.Filter.Target".into() }fn type_url() -> ::prost::alloc::string::String { "/payload.v1.Filter.Target".into() }} + /// Represent the filter query. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct Query { + /// The raw query string. + #[prost(string, tag="1")] + pub query: ::prost::alloc::string::String, + } +impl ::prost::Name for Query { +const NAME: &'static str = "Query"; +const PACKAGE: &'static str = "payload.v1"; +fn full_name() -> ::prost::alloc::string::String { "payload.v1.Filter.Query".into() }fn type_url() -> ::prost::alloc::string::String { "/payload.v1.Filter.Query".into() }} /// Represent filter configuration. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Config { /// Represent the filter target configuration. - #[prost(message, repeated, tag="1")] - pub targets: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag="1")] + pub target: ::core::option::Option, + /// The target query. + #[prost(message, optional, tag="2")] + pub query: ::core::option::Option, } impl ::prost::Name for Config { const NAME: &'static str = "Config"; const PACKAGE: &'static str = "payload.v1"; fn full_name() -> ::prost::alloc::string::String { "payload.v1.Filter.Config".into() }fn type_url() -> ::prost::alloc::string::String { "/payload.v1.Filter.Config".into() }} + /// Represent the ID and distance pair. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct DistanceRequest { + /// Distance + #[prost(message, repeated, tag="1")] + pub distance: ::prost::alloc::vec::Vec, + /// Query + #[prost(message, optional, tag="2")] + pub query: ::core::option::Option, + } +impl ::prost::Name for DistanceRequest { +const NAME: &'static str = "DistanceRequest"; +const PACKAGE: &'static str = "payload.v1"; +fn full_name() -> ::prost::alloc::string::String { "payload.v1.Filter.DistanceRequest".into() }fn type_url() -> ::prost::alloc::string::String { "/payload.v1.Filter.DistanceRequest".into() }} + /// Represent the ID and distance pair. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct DistanceResponse { + /// Distance + #[prost(message, repeated, tag="1")] + pub distance: ::prost::alloc::vec::Vec, + } +impl ::prost::Name for DistanceResponse { +const NAME: &'static str = "DistanceResponse"; +const PACKAGE: &'static str = "payload.v1"; +fn full_name() -> ::prost::alloc::string::String { "payload.v1.Filter.DistanceResponse".into() }fn type_url() -> ::prost::alloc::string::String { "/payload.v1.Filter.DistanceResponse".into() }} + /// Represent the ID and vector pair. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct VectorRequest { + /// Vector + #[prost(message, optional, tag="1")] + pub vector: ::core::option::Option, + /// Query + #[prost(message, optional, tag="2")] + pub query: ::core::option::Option, + } +impl ::prost::Name for VectorRequest { +const NAME: &'static str = "VectorRequest"; +const PACKAGE: &'static str = "payload.v1"; +fn full_name() -> ::prost::alloc::string::String { "payload.v1.Filter.VectorRequest".into() }fn type_url() -> ::prost::alloc::string::String { "/payload.v1.Filter.VectorRequest".into() }} + /// Represent the ID and vector pair. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct VectorResponse { + /// Distance + #[prost(message, optional, tag="1")] + pub vector: ::core::option::Option, + } +impl ::prost::Name for VectorResponse { +const NAME: &'static str = "VectorResponse"; +const PACKAGE: &'static str = "payload.v1"; +fn full_name() -> ::prost::alloc::string::String { "payload.v1.Filter.VectorResponse".into() }fn type_url() -> ::prost::alloc::string::String { "/payload.v1.Filter.VectorResponse".into() }} } impl ::prost::Name for Filter { const NAME: &'static str = "Filter"; @@ -348,8 +417,8 @@ fn full_name() -> ::prost::alloc::string::String { "payload.v1.Insert.MultiObjec #[prost(bool, tag="1")] pub skip_strict_exist_check: bool, /// Filter configurations. - #[prost(message, optional, tag="2")] - pub filters: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub filters: ::prost::alloc::vec::Vec, /// Insert timestamp. #[prost(int64, tag="3")] pub timestamp: i64, @@ -453,8 +522,8 @@ fn full_name() -> ::prost::alloc::string::String { "payload.v1.Update.TimestampR #[prost(bool, tag="1")] pub skip_strict_exist_check: bool, /// Filter configuration. - #[prost(message, optional, tag="2")] - pub filters: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub filters: ::prost::alloc::vec::Vec, /// Update timestamp. #[prost(int64, tag="3")] pub timestamp: i64, @@ -544,8 +613,8 @@ fn full_name() -> ::prost::alloc::string::String { "payload.v1.Upsert.MultiObjec #[prost(bool, tag="1")] pub skip_strict_exist_check: bool, /// Filter configuration. - #[prost(message, optional, tag="2")] - pub filters: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub filters: ::prost::alloc::vec::Vec, /// Upsert timestamp. #[prost(int64, tag="3")] pub timestamp: i64, @@ -730,8 +799,8 @@ pub mod object { #[prost(message, optional, tag="1")] pub id: ::core::option::Option, /// Filter configurations. - #[prost(message, optional, tag="2")] - pub filters: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub filters: ::prost::alloc::vec::Vec, } impl ::prost::Name for VectorRequest { const NAME: &'static str = "VectorRequest"; From a19e8e674c2d4e8a7c9e5d870cb5661cde7848df Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 30 Sep 2024 14:08:48 +0900 Subject: [PATCH 42/43] fix: build error Signed-off-by: hlts2 --- .../client/v1/client/filter/egress/client.go | 48 ++++++++----------- 1 file changed, 20 insertions(+), 28 deletions(-) diff --git a/internal/client/v1/client/filter/egress/client.go b/internal/client/v1/client/filter/egress/client.go index 3e550db635..eda0a58009 100644 --- a/internal/client/v1/client/filter/egress/client.go +++ b/internal/client/v1/client/filter/egress/client.go @@ -131,8 +131,8 @@ func (c *client) Target(ctx context.Context, targets ...string) (egress.FilterCl } func (c *client) FilterDistance( - ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption, -) (res *payload.Object_Distance, err error) { + ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption, +) (res *payload.Filter_DistanceResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterDistance") defer func() { if span != nil { @@ -144,7 +144,7 @@ func (c *client) FilterDistance( copts ...grpc.CallOption, ) (any, error) { res, err = egress.NewFilterClient(conn).FilterDistance(ctx, in, append(copts, opts...)...) - return nil, err + return res, err }) if err != nil { return nil, err @@ -153,8 +153,8 @@ func (c *client) FilterDistance( } func (s *specificAddrClient) FilterDistance( - ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption, -) (res *payload.Object_Distance, err error) { + ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption, +) (res *payload.Filter_DistanceResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterDistance/"+s.addr) defer func() { if span != nil { @@ -166,11 +166,7 @@ func (s *specificAddrClient) FilterDistance( copts ...grpc.CallOption, ) (any, error) { res, err = egress.NewFilterClient(conn).FilterDistance(ctx, in, append(copts, opts...)...) - if err != nil { - return nil, err - } - in = res - return in, nil + return res, err }) if err != nil { return nil, err @@ -179,8 +175,8 @@ func (s *specificAddrClient) FilterDistance( } func (m *multipleAddrsClient) FilterDistance( - ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption, -) (res *payload.Object_Distance, err error) { + ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption, +) (res *payload.Filter_DistanceResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterDistance/["+strings.Join(m.addrs, ",")+"]") defer func() { if span != nil { @@ -195,8 +191,8 @@ func (m *multipleAddrsClient) FilterDistance( if err != nil { return err } - in = res - return nil + in.Distance = res.Distance + return err }) if err != nil { return nil, err @@ -205,8 +201,8 @@ func (m *multipleAddrsClient) FilterDistance( } func (c *client) FilterVector( - ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption, -) (res *payload.Object_Vector, err error) { + ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption, +) (res *payload.Filter_VectorResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterVector") defer func() { if span != nil { @@ -218,7 +214,7 @@ func (c *client) FilterVector( copts ...grpc.CallOption, ) (any, error) { res, err = egress.NewFilterClient(conn).FilterVector(ctx, in, append(copts, opts...)...) - return nil, err + return res, err }) if err != nil { return nil, err @@ -227,8 +223,8 @@ func (c *client) FilterVector( } func (s *specificAddrClient) FilterVector( - ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption, -) (res *payload.Object_Vector, err error) { + ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption, +) (res *payload.Filter_VectorResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterVector/"+s.addr) defer func() { if span != nil { @@ -240,11 +236,7 @@ func (s *specificAddrClient) FilterVector( copts ...grpc.CallOption, ) (any, error) { res, err = egress.NewFilterClient(conn).FilterVector(ctx, in, append(copts, opts...)...) - if err != nil { - return nil, err - } - in = res - return in, nil + return res, err }) if err != nil { return nil, err @@ -253,8 +245,8 @@ func (s *specificAddrClient) FilterVector( } func (m *multipleAddrsClient) FilterVector( - ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption, -) (res *payload.Object_Vector, err error) { + ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption, +) (res *payload.Filter_VectorResponse, err error) { ctx, span := trace.StartSpan(ctx, apiName+"/Client.FilterVector/["+strings.Join(m.addrs, ",")+"]") defer func() { if span != nil { @@ -269,8 +261,8 @@ func (m *multipleAddrsClient) FilterVector( if err != nil { return err } - in = res - return nil + res.Vector = in.Vector + return err }) if err != nil { return nil, err From a7fbbd537d48e6e49b35533f0b1c4ea9cf505944 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 30 Sep 2024 15:04:01 +0900 Subject: [PATCH 43/43] fix: resolve deprecated code Signed-off-by: hlts2 --- example/client/gateway/filter/egress-filter/main.go | 2 +- example/client/gateway/filter/ingress-filter/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/client/gateway/filter/egress-filter/main.go b/example/client/gateway/filter/egress-filter/main.go index 7cdf111ea1..ba39141bfb 100644 --- a/example/client/gateway/filter/egress-filter/main.go +++ b/example/client/gateway/filter/egress-filter/main.go @@ -55,7 +55,7 @@ func main() { glg.Println("start gRPC Client.") addr := net.JoinHostPort(egressServerHost, strconv.Itoa(int(egressServerPort))) - conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) + conn, err := grpc.NewClient(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { glg.Error("Connection failed.") return diff --git a/example/client/gateway/filter/ingress-filter/main.go b/example/client/gateway/filter/ingress-filter/main.go index d84485c8ff..e2dec66293 100644 --- a/example/client/gateway/filter/ingress-filter/main.go +++ b/example/client/gateway/filter/ingress-filter/main.go @@ -55,7 +55,7 @@ func main() { glg.Println("start gRPC Client.") addr := net.JoinHostPort(ingressServerHost, strconv.Itoa(int(ingressServerPort))) - conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) + conn, err := grpc.NewClient(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { glg.Error("Connection failed.") return