diff --git a/apis/docs/v1/docs.md b/apis/docs/v1/docs.md index 4ff1d8ec1d..d144311805 100644 --- a/apis/docs/v1/docs.md +++ b/apis/docs/v1/docs.md @@ -108,6 +108,13 @@ - [Upsert.MultiRequest](#payload-v1-Upsert-MultiRequest) - [Upsert.ObjectRequest](#payload-v1-Upsert-ObjectRequest) - [Upsert.Request](#payload-v1-Upsert-Request) + - [ZVec](#payload-v1-ZVec) + - [ZVec.DocumentOptions](#payload-v1-ZVec-DocumentOptions) + - [ZVec.DocumentOptions.FieldsEntry](#payload-v1-ZVec-DocumentOptions-FieldsEntry) + - [ZVec.FTS](#payload-v1-ZVec-FTS) + - [ZVec.Query](#payload-v1-ZVec-Query) + - [ZVec.SearchOptions](#payload-v1-ZVec-SearchOptions) + - [ZVec.Vector](#payload-v1-ZVec-Vector) - [Remove.Timestamp.Operator](#payload-v1-Remove-Timestamp-Operator) - [Search.AggregationAlgorithm](#payload-v1-Search-AggregationAlgorithm) @@ -654,11 +661,12 @@ 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) | | Filter configurations. | +| timestamp | [int64](#int64) | | Insert timestamp. | +| options | [google.protobuf.Any](#google-protobuf-Any) | repeated | Algorithm-specific insert options. | @@ -1028,20 +1036,21 @@ 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. | -| edge_size | [int32](#int32) | | Search edge size | +| 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. | +| edge_size | [int32](#int32) | | Search edge size | +| options | [google.protobuf.Any](#google-protobuf-Any) | repeated | Algorithm-specific search options. | @@ -1275,6 +1284,76 @@ Represent the upsert 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. | + + +### ZVec + +ZVec related messages. + + + +### ZVec.DocumentOptions + +Represent ZVec document options. + +| Field | Type | Label | Description | +| ------ | -------------------------------------------------------------------------------- | -------- | --------------------------------------------- | +| fields | [ZVec.DocumentOptions.FieldsEntry](#payload-v1-ZVec-DocumentOptions-FieldsEntry) | repeated | Scalar or text fields stored with the vector. | + + + +### ZVec.DocumentOptions.FieldsEntry + +| Field | Type | Label | Description | +| ----- | ----------------- | ----- | ----------- | +| key | [string](#string) | | | +| value | [string](#string) | | | + + + +### ZVec.FTS + +Represent a ZVec full-text recall query. + +| Field | Type | Label | Description | +| ------------ | ----------------- | ----- | -------------------------------- | +| match_string | [string](#string) | | Natural-language match string. | +| query_string | [string](#string) | | Explicit full-text query string. | + + + +### ZVec.Query + +Represent a ZVec hybrid recall query. + +| Field | Type | Label | Description | +| ---------- | -------------------------------------- | ----- | ----------------------- | +| field_name | [string](#string) | | Target field name. | +| vector | [ZVec.Vector](#payload-v1-ZVec-Vector) | | Vector recall query. | +| fts | [ZVec.FTS](#payload-v1-ZVec-FTS) | | Full-text recall query. | + + + +### ZVec.SearchOptions + +Represent ZVec search options. + +| Field | Type | Label | Description | +| -------------- | ------------------------------------ | -------- | ---------------------------------------------------- | +| pre_filter | [string](#string) | | Scalar pre-filter expression. | +| hybrid_queries | [ZVec.Query](#payload-v1-ZVec-Query) | repeated | Hybrid recall queries. | +| hybrid_weights | [float](#float) | repeated | Per-query weights used by weighted hybrid reranking. | + + + +### ZVec.Vector + +Represent a ZVec vector recall query. + +| Field | Type | Label | Description | +| ------ | --------------- | -------- | ----------- | +| values | [float](#float) | repeated | | + ### Remove.Timestamp.Operator diff --git a/apis/docs/v1/filter.md b/apis/docs/v1/filter.md index eba846e151..382771bddc 100644 --- a/apis/docs/v1/filter.md +++ b/apis/docs/v1/filter.md @@ -53,6 +53,7 @@ SearchObject RPC is the method to search object(s) similar to request object. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Target { @@ -84,20 +85,21 @@ SearchObject RPC is the method to search object(s) similar to request object. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Target @@ -190,6 +192,7 @@ Each Search request and response are independent. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Target { @@ -227,20 +230,21 @@ Each Search request and response are independent. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Target @@ -342,6 +346,7 @@ Please be careful that the size of the request exceeds the limit. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Target { @@ -373,20 +378,21 @@ Please be careful that the size of the request exceeds the limit. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Target @@ -481,6 +487,7 @@ InsertObject RPC is the method to insert object through Vald Filter Gateway. bool skip_strict_exist_check = 1; Filter.Config filters = 2; int64 timestamp = 3; + repeated google.protobuf.Any options = 4; } message Filter.Target { @@ -511,11 +518,12 @@ InsertObject RPC is the method to insert object through Vald Filter Gateway. - Insert.Config - | field | type | label | description | - | :---------------------: | :------------ | :---- | :-------------------------------------------------- | - | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | - | filters | Filter.Config | | Filter configurations. | - | timestamp | int64 | | Insert timestamp. | + | field | type | label | description | + | :---------------------: | :------------------ | :------- | :-------------------------------------------------- | + | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | + | filters | Filter.Config | | Filter configurations. | + | timestamp | int64 | | Insert timestamp. | + | options | google.protobuf.Any | repeated | Algorithm-specific insert options. | - Filter.Target @@ -592,6 +600,7 @@ It's the recommended method to insert a large number of objects. bool skip_strict_exist_check = 1; Filter.Config filters = 2; int64 timestamp = 3; + repeated google.protobuf.Any options = 4; } message Filter.Target { @@ -622,11 +631,12 @@ It's the recommended method to insert a large number of objects. - Insert.Config - | field | type | label | description | - | :---------------------: | :------------ | :---- | :-------------------------------------------------- | - | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | - | filters | Filter.Config | | Filter configurations. | - | timestamp | int64 | | Insert timestamp. | + | field | type | label | description | + | :---------------------: | :------------------ | :------- | :-------------------------------------------------- | + | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | + | filters | Filter.Config | | Filter configurations. | + | timestamp | int64 | | Insert timestamp. | + | options | google.protobuf.Any | repeated | Algorithm-specific insert options. | - Filter.Target @@ -715,6 +725,7 @@ MultiInsertObject RPC is the method to add multiple new objects in **1** request bool skip_strict_exist_check = 1; Filter.Config filters = 2; int64 timestamp = 3; + repeated google.protobuf.Any options = 4; } message Filter.Target { @@ -751,11 +762,12 @@ MultiInsertObject RPC is the method to add multiple new objects in **1** request - Insert.Config - | field | type | label | description | - | :---------------------: | :------------ | :---- | :-------------------------------------------------- | - | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | - | filters | Filter.Config | | Filter configurations. | - | timestamp | int64 | | Insert timestamp. | + | field | type | label | description | + | :---------------------: | :------------------ | :------- | :-------------------------------------------------- | + | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | + | filters | Filter.Config | | Filter configurations. | + | timestamp | int64 | | Insert timestamp. | + | options | google.protobuf.Any | repeated | Algorithm-specific insert options. | - Filter.Target diff --git a/apis/docs/v1/insert.md b/apis/docs/v1/insert.md index 5ee104780b..40e8aefe97 100644 --- a/apis/docs/v1/insert.md +++ b/apis/docs/v1/insert.md @@ -38,6 +38,7 @@ Insert RPC is the method to add a new single vector. bool skip_strict_exist_check = 1; Filter.Config filters = 2; int64 timestamp = 3; + repeated google.protobuf.Any options = 4; } message Filter.Config { @@ -68,11 +69,12 @@ Insert RPC is the method to add a new single vector. - Insert.Config - | field | type | label | description | - | :---------------------: | :------------ | :---- | :-------------------------------------------------- | - | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | - | filters | Filter.Config | | Filter configurations. | - | timestamp | int64 | | Insert timestamp. | + | field | type | label | description | + | :---------------------: | :------------------ | :------- | :-------------------------------------------------- | + | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | + | filters | Filter.Config | | Filter configurations. | + | timestamp | int64 | | Insert timestamp. | + | options | google.protobuf.Any | repeated | Algorithm-specific insert options. | - Filter.Config @@ -162,6 +164,7 @@ It's the recommended method to insert a large number of vectors. bool skip_strict_exist_check = 1; Filter.Config filters = 2; int64 timestamp = 3; + repeated google.protobuf.Any options = 4; } message Filter.Config { @@ -192,11 +195,12 @@ It's the recommended method to insert a large number of vectors. - Insert.Config - | field | type | label | description | - | :---------------------: | :------------ | :---- | :-------------------------------------------------- | - | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | - | filters | Filter.Config | | Filter configurations. | - | timestamp | int64 | | Insert timestamp. | + | field | type | label | description | + | :---------------------: | :------------------ | :------- | :-------------------------------------------------- | + | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | + | filters | Filter.Config | | Filter configurations. | + | timestamp | int64 | | Insert timestamp. | + | options | google.protobuf.Any | repeated | Algorithm-specific insert options. | - Filter.Config @@ -305,6 +309,7 @@ Please be careful that the size of the request exceeds the limit. bool skip_strict_exist_check = 1; Filter.Config filters = 2; int64 timestamp = 3; + repeated google.protobuf.Any options = 4; } message Filter.Config { @@ -341,11 +346,12 @@ Please be careful that the size of the request exceeds the limit. - Insert.Config - | field | type | label | description | - | :---------------------: | :------------ | :---- | :-------------------------------------------------- | - | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | - | filters | Filter.Config | | Filter configurations. | - | timestamp | int64 | | Insert timestamp. | + | field | type | label | description | + | :---------------------: | :------------------ | :------- | :-------------------------------------------------- | + | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | + | filters | Filter.Config | | Filter configurations. | + | timestamp | int64 | | Insert timestamp. | + | options | google.protobuf.Any | repeated | Algorithm-specific insert options. | - Filter.Config diff --git a/apis/docs/v1/payload.md.tmpl b/apis/docs/v1/payload.md.tmpl index 1d29df4c24..3dec08e6a1 100644 --- a/apis/docs/v1/payload.md.tmpl +++ b/apis/docs/v1/payload.md.tmpl @@ -930,6 +930,60 @@ {{ template "_field:payload.v1.Filter.Config" }} {{ template "_field:payload.v1.Filter.Target" }} {{- end -}} +{{- define "scheme:payload.v1.ZVec" -}} +{{ template "_scheme:payload.v1.ZVec" }} +{{- end -}} +{{- define "field:payload.v1.ZVec" -}} +{{ template "_field:payload.v1.ZVec" }} +{{- end -}} +{{- define "scheme:payload.v1.ZVec.DocumentOptions" -}} +{{ template "_scheme:payload.v1.ZVec.DocumentOptions" }} +{{ template "_scheme:payload.v1.ZVec.DocumentOptions.FieldsEntry" }} +{{- end -}} +{{- define "field:payload.v1.ZVec.DocumentOptions" -}} +{{ template "_field:payload.v1.ZVec.DocumentOptions" }} +{{ template "_field:payload.v1.ZVec.DocumentOptions.FieldsEntry" }} +{{- end -}} +{{- define "scheme:payload.v1.ZVec.DocumentOptions.FieldsEntry" -}} +{{ template "_scheme:payload.v1.ZVec.DocumentOptions.FieldsEntry" }} +{{- end -}} +{{- define "field:payload.v1.ZVec.DocumentOptions.FieldsEntry" -}} +{{ template "_field:payload.v1.ZVec.DocumentOptions.FieldsEntry" }} +{{- end -}} +{{- define "scheme:payload.v1.ZVec.FTS" -}} +{{ template "_scheme:payload.v1.ZVec.FTS" }} +{{- end -}} +{{- define "field:payload.v1.ZVec.FTS" -}} +{{ template "_field:payload.v1.ZVec.FTS" }} +{{- end -}} +{{- define "scheme:payload.v1.ZVec.Query" -}} +{{ template "_scheme:payload.v1.ZVec.Query" }} +{{ template "_scheme:payload.v1.ZVec.Vector" }} +{{ template "_scheme:payload.v1.ZVec.FTS" }} +{{- end -}} +{{- define "field:payload.v1.ZVec.Query" -}} +{{ template "_field:payload.v1.ZVec.Query" }} +{{ template "_field:payload.v1.ZVec.Vector" }} +{{ template "_field:payload.v1.ZVec.FTS" }} +{{- end -}} +{{- define "scheme:payload.v1.ZVec.SearchOptions" -}} +{{ template "_scheme:payload.v1.ZVec.SearchOptions" }} +{{ template "_scheme:payload.v1.ZVec.Query" }} +{{ template "_scheme:payload.v1.ZVec.Vector" }} +{{ template "_scheme:payload.v1.ZVec.FTS" }} +{{- end -}} +{{- define "field:payload.v1.ZVec.SearchOptions" -}} +{{ template "_field:payload.v1.ZVec.SearchOptions" }} +{{ template "_field:payload.v1.ZVec.Query" }} +{{ template "_field:payload.v1.ZVec.Vector" }} +{{ template "_field:payload.v1.ZVec.FTS" }} +{{- end -}} +{{- define "scheme:payload.v1.ZVec.Vector" -}} +{{ template "_scheme:payload.v1.ZVec.Vector" }} +{{- end -}} +{{- define "field:payload.v1.ZVec.Vector" -}} +{{ template "_field:payload.v1.ZVec.Vector" }} +{{- end -}} {{- define "_scheme:payload.v1.Control" }} message Control { // empty @@ -1699,6 +1753,7 @@ bool skip_strict_exist_check = 1; Filter.Config filters = 2; int64 timestamp = 3; + repeated google.protobuf.Any options = 4; } {{- end -}} @@ -1710,6 +1765,7 @@ | skip_strict_exist_check | bool | | A flag to skip exist check during insert operation. | | filters | Filter.Config | | Filter configurations. | | timestamp | int64 | | Insert timestamp. | + | options | google.protobuf.Any | repeated | Algorithm-specific insert options. | {{- end -}} {{- define "_scheme:payload.v1.Insert.MultiObjectRequest" }} @@ -2289,6 +2345,7 @@ search is applied. | google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } {{- end -}} @@ -2309,6 +2366,7 @@ search is applied. | | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | | nprobe | uint32 | | Search nprobe. | | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | {{- end -}} {{- define "_scheme:payload.v1.Search.IDRequest" }} @@ -2657,14 +2715,122 @@ during update operation. | | config | Upsert.Config | | The configuration of the upsert request. | {{- end -}} +{{- define "_scheme:payload.v1.ZVec" }} + message ZVec { + // empty + } +{{- end -}} + +{{- define "_field:payload.v1.ZVec" }} + - ZVec + + empty +{{- end -}} + +{{- define "_scheme:payload.v1.ZVec.DocumentOptions" }} + message ZVec.DocumentOptions { + repeated ZVec.DocumentOptions.FieldsEntry fields = 1; + } +{{- end -}} + +{{- define "_field:payload.v1.ZVec.DocumentOptions" }} + - ZVec.DocumentOptions + + | field | type | label | description | + | :---: | :--- | :---- | :---------- | + | fields | ZVec.DocumentOptions.FieldsEntry | repeated | Scalar or text fields stored with the vector. | +{{- end -}} + +{{- define "_scheme:payload.v1.ZVec.DocumentOptions.FieldsEntry" }} + message ZVec.DocumentOptions.FieldsEntry { + string key = 1; + string value = 2; + } +{{- end -}} + +{{- define "_field:payload.v1.ZVec.DocumentOptions.FieldsEntry" }} + - ZVec.DocumentOptions.FieldsEntry + + | field | type | label | description | + | :---: | :--- | :---- | :---------- | + | key | string | | | + | value | string | | | +{{- end -}} + +{{- define "_scheme:payload.v1.ZVec.FTS" }} + message ZVec.FTS { + string match_string = 1; + string query_string = 2; + } +{{- end -}} + +{{- define "_field:payload.v1.ZVec.FTS" }} + - ZVec.FTS + + | field | type | label | description | + | :---: | :--- | :---- | :---------- | + | match_string | string | | Natural-language match string. | + | query_string | string | | Explicit full-text query string. | +{{- end -}} + +{{- define "_scheme:payload.v1.ZVec.Query" }} + message ZVec.Query { + string field_name = 1; + ZVec.Vector vector = 2; + ZVec.FTS fts = 3; + } +{{- end -}} + +{{- define "_field:payload.v1.ZVec.Query" }} + - ZVec.Query + + | field | type | label | description | + | :---: | :--- | :---- | :---------- | + | field_name | string | | Target field name. | + | vector | ZVec.Vector | | Vector recall query. | + | fts | ZVec.FTS | | Full-text recall query. | +{{- end -}} + +{{- define "_scheme:payload.v1.ZVec.SearchOptions" }} + message ZVec.SearchOptions { + string pre_filter = 1; + repeated ZVec.Query hybrid_queries = 2; + repeated float hybrid_weights = 3; + } +{{- end -}} + +{{- define "_field:payload.v1.ZVec.SearchOptions" }} + - ZVec.SearchOptions + + | field | type | label | description | + | :---: | :--- | :---- | :---------- | + | pre_filter | string | | Scalar pre-filter expression. | + | hybrid_queries | ZVec.Query | repeated | Hybrid recall queries. | + | hybrid_weights | float | repeated | Per-query weights used by weighted hybrid reranking. | +{{- end -}} + +{{- define "_scheme:payload.v1.ZVec.Vector" }} + message ZVec.Vector { + repeated float values = 1; + } +{{- end -}} + +{{- define "_field:payload.v1.ZVec.Vector" }} + - ZVec.Vector + + | field | type | label | description | + | :---: | :--- | :---- | :---------- | + | values | float | repeated | | +{{- end -}} + {{ define "_scheme:payload.v1.Remove.Timestamp.Operator" }} enum Remove.Timestamp.Operator { - EQ = 0; - NE = 1; - GE = 2; - GT = 3; - LE = 4; - LT = 5; + Eq = 0; + Ne = 1; + Ge = 2; + Gt = 3; + Le = 4; + Lt = 5; } {{- end -}} diff --git a/apis/docs/v1/remove.md b/apis/docs/v1/remove.md index a68567abdc..c5ed814bfd 100644 --- a/apis/docs/v1/remove.md +++ b/apis/docs/v1/remove.md @@ -134,12 +134,12 @@ This design allows for versatile deletion operations, facilitating tasks such as } enum Remove.Timestamp.Operator { - EQ = 0; - NE = 1; - GE = 2; - GT = 3; - LE = 4; - LT = 5; + Eq = 0; + Ne = 1; + Ge = 2; + Gt = 3; + Le = 4; + Lt = 5; } ``` diff --git a/apis/docs/v1/search.md b/apis/docs/v1/search.md index 24f81eb496..6602092db0 100644 --- a/apis/docs/v1/search.md +++ b/apis/docs/v1/search.md @@ -50,6 +50,7 @@ Search RPC is the method to search vector(s) similar to the request vector. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -80,20 +81,21 @@ Search RPC is the method to search vector(s) similar to the request vector. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -195,6 +197,7 @@ The vector with the same requested ID should be indexed into the `vald-agent` be google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -225,20 +228,21 @@ The vector with the same requested ID should be indexed into the `vald-agent` be - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -341,6 +345,7 @@ Each Search request and response are independent. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -371,20 +376,21 @@ Each Search request and response are independent. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -499,6 +505,7 @@ Each SearchByID request and response are independent. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -529,20 +536,21 @@ Each SearchByID request and response are independent. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -664,6 +672,7 @@ Please be careful that the size of the request exceeds the limit. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -700,20 +709,21 @@ Please be careful that the size of the request exceeds the limit. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -833,6 +843,7 @@ Please be careful that the size of the request exceeds the limit. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -869,20 +880,21 @@ Please be careful that the size of the request exceeds the limit. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -993,6 +1005,7 @@ LinearSearch RPC is the method to linear search vector(s) similar to the request google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -1023,20 +1036,21 @@ LinearSearch RPC is the method to linear search vector(s) similar to the request - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -1139,6 +1153,7 @@ You will get a `NOT_FOUND` error if the vector isn't stored. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -1169,20 +1184,21 @@ You will get a `NOT_FOUND` error if the vector isn't stored. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -1285,6 +1301,7 @@ Each LinearSearch request and response are independent. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -1315,20 +1332,21 @@ Each LinearSearch request and response are independent. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -1443,6 +1461,7 @@ Each LinearSearchByID request and response are independent. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -1473,20 +1492,21 @@ Each LinearSearchByID request and response are independent. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -1608,6 +1628,7 @@ Please be careful that the size of the request exceeds the limit. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -1644,20 +1665,21 @@ Please be careful that the size of the request exceeds the limit. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config @@ -1778,6 +1800,7 @@ Please be careful that the size of the request exceeds the limit. google.protobuf.FloatValue ratio = 10; uint32 nprobe = 11; int32 edge_size = 12; + repeated google.protobuf.Any options = 13; } message Filter.Config { @@ -1814,20 +1837,21 @@ Please be careful that the size of the request exceeds the limit. - Search.Config - | field | type | label | description | - | :-------------------: | :-------------------------- | :---- | :------------------------------------------- | - | request_id | string | | Unique request ID. | - | num | uint32 | | Maximum number of result to be returned. | - | radius | float | | Search radius. | - | epsilon | float | | Search coefficient. | - | timeout | int64 | | Search timeout in nanoseconds. | - | ingress_filters | Filter.Config | | Ingress filter configurations. | - | egress_filters | Filter.Config | | Egress filter configurations. | - | min_num | uint32 | | Minimum number of result to be returned. | - | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | - | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | - | nprobe | uint32 | | Search nprobe. | - | edge_size | int32 | | Search edge size | + | field | type | label | description | + | :-------------------: | :-------------------------- | :------- | :------------------------------------------- | + | request_id | string | | Unique request ID. | + | num | uint32 | | Maximum number of result to be returned. | + | radius | float | | Search radius. | + | epsilon | float | | Search coefficient. | + | timeout | int64 | | Search timeout in nanoseconds. | + | ingress_filters | Filter.Config | | Ingress filter configurations. | + | egress_filters | Filter.Config | | Egress filter configurations. | + | min_num | uint32 | | Minimum number of result to be returned. | + | aggregation_algorithm | Search.AggregationAlgorithm | | Aggregation Algorithm | + | ratio | google.protobuf.FloatValue | | Search ratio for agent return result number. | + | nprobe | uint32 | | Search nprobe. | + | edge_size | int32 | | Search edge size | + | options | google.protobuf.Any | repeated | Algorithm-specific search options. | - Filter.Config diff --git a/apis/grpc/v1/payload/payload.pb.go b/apis/grpc/v1/payload/payload.pb.go index ab623a1441..797148e34b 100644 --- a/apis/grpc/v1/payload/payload.pb.go +++ b/apis/grpc/v1/payload/payload.pb.go @@ -160,7 +160,7 @@ func (x Remove_Timestamp_Operator) Number() protoreflect.EnumNumber { // Deprecated: Use Remove_Timestamp_Operator.Descriptor instead. func (Remove_Timestamp_Operator) EnumDescriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 3, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{6, 3, 0} } // Search related messages. @@ -237,6 +237,43 @@ func (*Filter) Descriptor() ([]byte, []int) { return file_v1_payload_payload_proto_rawDescGZIP(), []int{1} } +// ZVec related messages. +type ZVec struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ZVec) Reset() { + *x = ZVec{} + mi := &file_v1_payload_payload_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ZVec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ZVec) ProtoMessage() {} + +func (x *ZVec) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ZVec.ProtoReflect.Descriptor instead. +func (*ZVec) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{2} +} + // Insert related messages. type Insert struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -246,7 +283,7 @@ type Insert struct { func (x *Insert) Reset() { *x = Insert{} - mi := &file_v1_payload_payload_proto_msgTypes[2] + mi := &file_v1_payload_payload_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -258,7 +295,7 @@ func (x *Insert) String() string { func (*Insert) ProtoMessage() {} func (x *Insert) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[2] + mi := &file_v1_payload_payload_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -271,7 +308,7 @@ func (x *Insert) ProtoReflect() protoreflect.Message { // Deprecated: Use Insert.ProtoReflect.Descriptor instead. func (*Insert) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{2} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{3} } // Update related messages @@ -283,7 +320,7 @@ type Update struct { func (x *Update) Reset() { *x = Update{} - mi := &file_v1_payload_payload_proto_msgTypes[3] + mi := &file_v1_payload_payload_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -295,7 +332,7 @@ func (x *Update) String() string { func (*Update) ProtoMessage() {} func (x *Update) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[3] + mi := &file_v1_payload_payload_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -308,7 +345,7 @@ func (x *Update) ProtoReflect() protoreflect.Message { // Deprecated: Use Update.ProtoReflect.Descriptor instead. func (*Update) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{3} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{4} } // Upsert related messages. @@ -320,7 +357,7 @@ type Upsert struct { func (x *Upsert) Reset() { *x = Upsert{} - mi := &file_v1_payload_payload_proto_msgTypes[4] + mi := &file_v1_payload_payload_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -332,7 +369,7 @@ func (x *Upsert) String() string { func (*Upsert) ProtoMessage() {} func (x *Upsert) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[4] + mi := &file_v1_payload_payload_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -345,7 +382,7 @@ func (x *Upsert) ProtoReflect() protoreflect.Message { // Deprecated: Use Upsert.ProtoReflect.Descriptor instead. func (*Upsert) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{4} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{5} } // Remove related messages. @@ -357,7 +394,7 @@ type Remove struct { func (x *Remove) Reset() { *x = Remove{} - mi := &file_v1_payload_payload_proto_msgTypes[5] + mi := &file_v1_payload_payload_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -369,7 +406,7 @@ func (x *Remove) String() string { func (*Remove) ProtoMessage() {} func (x *Remove) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[5] + mi := &file_v1_payload_payload_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -382,7 +419,7 @@ func (x *Remove) ProtoReflect() protoreflect.Message { // Deprecated: Use Remove.ProtoReflect.Descriptor instead. func (*Remove) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{5} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{6} } // Flush related messages. @@ -394,7 +431,7 @@ type Flush struct { func (x *Flush) Reset() { *x = Flush{} - mi := &file_v1_payload_payload_proto_msgTypes[6] + mi := &file_v1_payload_payload_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -406,7 +443,7 @@ func (x *Flush) String() string { func (*Flush) ProtoMessage() {} func (x *Flush) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[6] + mi := &file_v1_payload_payload_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -419,7 +456,7 @@ func (x *Flush) ProtoReflect() protoreflect.Message { // Deprecated: Use Flush.ProtoReflect.Descriptor instead. func (*Flush) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{6} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{7} } // Common messages. @@ -431,7 +468,7 @@ type Object struct { func (x *Object) Reset() { *x = Object{} - mi := &file_v1_payload_payload_proto_msgTypes[7] + mi := &file_v1_payload_payload_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -443,7 +480,7 @@ func (x *Object) String() string { func (*Object) ProtoMessage() {} func (x *Object) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[7] + mi := &file_v1_payload_payload_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -456,7 +493,7 @@ func (x *Object) ProtoReflect() protoreflect.Message { // Deprecated: Use Object.ProtoReflect.Descriptor instead. func (*Object) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8} } // Control related messages. @@ -468,7 +505,7 @@ type Control struct { func (x *Control) Reset() { *x = Control{} - mi := &file_v1_payload_payload_proto_msgTypes[8] + mi := &file_v1_payload_payload_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -480,7 +517,7 @@ func (x *Control) String() string { func (*Control) ProtoMessage() {} func (x *Control) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[8] + mi := &file_v1_payload_payload_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -493,7 +530,7 @@ func (x *Control) ProtoReflect() protoreflect.Message { // Deprecated: Use Control.ProtoReflect.Descriptor instead. func (*Control) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{8} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{9} } // Discoverer related messages. @@ -505,7 +542,7 @@ type Discoverer struct { func (x *Discoverer) Reset() { *x = Discoverer{} - mi := &file_v1_payload_payload_proto_msgTypes[9] + mi := &file_v1_payload_payload_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -517,7 +554,7 @@ func (x *Discoverer) String() string { func (*Discoverer) ProtoMessage() {} func (x *Discoverer) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[9] + mi := &file_v1_payload_payload_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -530,7 +567,7 @@ func (x *Discoverer) ProtoReflect() protoreflect.Message { // Deprecated: Use Discoverer.ProtoReflect.Descriptor instead. func (*Discoverer) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{9} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{10} } // Info related messages. @@ -542,7 +579,7 @@ type Info struct { func (x *Info) Reset() { *x = Info{} - mi := &file_v1_payload_payload_proto_msgTypes[10] + mi := &file_v1_payload_payload_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -554,7 +591,7 @@ func (x *Info) String() string { func (*Info) ProtoMessage() {} func (x *Info) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[10] + mi := &file_v1_payload_payload_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -567,7 +604,7 @@ func (x *Info) ProtoReflect() protoreflect.Message { // Deprecated: Use Info.ProtoReflect.Descriptor instead. func (*Info) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11} } // Mirror related messages. @@ -579,7 +616,7 @@ type Mirror struct { func (x *Mirror) Reset() { *x = Mirror{} - mi := &file_v1_payload_payload_proto_msgTypes[11] + mi := &file_v1_payload_payload_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -591,7 +628,7 @@ func (x *Mirror) String() string { func (*Mirror) ProtoMessage() {} func (x *Mirror) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[11] + mi := &file_v1_payload_payload_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -604,7 +641,7 @@ func (x *Mirror) ProtoReflect() protoreflect.Message { // Deprecated: Use Mirror.ProtoReflect.Descriptor instead. func (*Mirror) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{11} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{12} } type Meta struct { @@ -615,7 +652,7 @@ type Meta struct { func (x *Meta) Reset() { *x = Meta{} - mi := &file_v1_payload_payload_proto_msgTypes[12] + mi := &file_v1_payload_payload_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -627,7 +664,7 @@ func (x *Meta) String() string { func (*Meta) ProtoMessage() {} func (x *Meta) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[12] + mi := &file_v1_payload_payload_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -640,7 +677,7 @@ func (x *Meta) ProtoReflect() protoreflect.Message { // Deprecated: Use Meta.ProtoReflect.Descriptor instead. func (*Meta) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{12} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{13} } // Represent an empty message. @@ -652,7 +689,7 @@ type Empty struct { func (x *Empty) Reset() { *x = Empty{} - mi := &file_v1_payload_payload_proto_msgTypes[13] + mi := &file_v1_payload_payload_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -664,7 +701,7 @@ func (x *Empty) String() string { func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[13] + mi := &file_v1_payload_payload_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -677,7 +714,7 @@ func (x *Empty) ProtoReflect() protoreflect.Message { // Deprecated: Use Empty.ProtoReflect.Descriptor instead. func (*Empty) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{13} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{14} } // Represent a search request. @@ -693,7 +730,7 @@ type Search_Request struct { func (x *Search_Request) Reset() { *x = Search_Request{} - mi := &file_v1_payload_payload_proto_msgTypes[14] + mi := &file_v1_payload_payload_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -705,7 +742,7 @@ func (x *Search_Request) String() string { func (*Search_Request) ProtoMessage() {} func (x *Search_Request) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[14] + mi := &file_v1_payload_payload_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -746,7 +783,7 @@ type Search_MultiRequest struct { func (x *Search_MultiRequest) Reset() { *x = Search_MultiRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[15] + mi := &file_v1_payload_payload_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -758,7 +795,7 @@ func (x *Search_MultiRequest) String() string { func (*Search_MultiRequest) ProtoMessage() {} func (x *Search_MultiRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[15] + mi := &file_v1_payload_payload_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -794,7 +831,7 @@ type Search_IDRequest struct { func (x *Search_IDRequest) Reset() { *x = Search_IDRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[16] + mi := &file_v1_payload_payload_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -806,7 +843,7 @@ func (x *Search_IDRequest) String() string { func (*Search_IDRequest) ProtoMessage() {} func (x *Search_IDRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[16] + mi := &file_v1_payload_payload_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -847,7 +884,7 @@ type Search_MultiIDRequest struct { func (x *Search_MultiIDRequest) Reset() { *x = Search_MultiIDRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[17] + mi := &file_v1_payload_payload_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -859,7 +896,7 @@ func (x *Search_MultiIDRequest) String() string { func (*Search_MultiIDRequest) ProtoMessage() {} func (x *Search_MultiIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[17] + mi := &file_v1_payload_payload_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -897,7 +934,7 @@ type Search_ObjectRequest struct { func (x *Search_ObjectRequest) Reset() { *x = Search_ObjectRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[18] + mi := &file_v1_payload_payload_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -909,7 +946,7 @@ func (x *Search_ObjectRequest) String() string { func (*Search_ObjectRequest) ProtoMessage() {} func (x *Search_ObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[18] + mi := &file_v1_payload_payload_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -957,7 +994,7 @@ type Search_MultiObjectRequest struct { func (x *Search_MultiObjectRequest) Reset() { *x = Search_MultiObjectRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[19] + mi := &file_v1_payload_payload_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -969,7 +1006,7 @@ func (x *Search_MultiObjectRequest) String() string { func (*Search_MultiObjectRequest) ProtoMessage() {} func (x *Search_MultiObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[19] + mi := &file_v1_payload_payload_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1018,14 +1055,16 @@ type Search_Config struct { // Search nprobe. Nprobe uint32 `protobuf:"varint,11,opt,name=nprobe,proto3" json:"nprobe,omitempty"` // Search edge size - EdgeSize int32 `protobuf:"varint,12,opt,name=edge_size,json=edgeSize,proto3" json:"edge_size,omitempty"` + EdgeSize int32 `protobuf:"varint,12,opt,name=edge_size,json=edgeSize,proto3" json:"edge_size,omitempty"` + // Algorithm-specific search options. + Options []*anypb.Any `protobuf:"bytes,13,rep,name=options,proto3" json:"options,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Search_Config) Reset() { *x = Search_Config{} - mi := &file_v1_payload_payload_proto_msgTypes[20] + mi := &file_v1_payload_payload_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1037,7 +1076,7 @@ func (x *Search_Config) String() string { func (*Search_Config) ProtoMessage() {} func (x *Search_Config) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[20] + mi := &file_v1_payload_payload_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1137,6 +1176,13 @@ func (x *Search_Config) GetEdgeSize() int32 { return 0 } +func (x *Search_Config) GetOptions() []*anypb.Any { + if x != nil { + return x.Options + } + return nil +} + // Represent a search response. type Search_Response struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -1150,7 +1196,7 @@ type Search_Response struct { func (x *Search_Response) Reset() { *x = Search_Response{} - mi := &file_v1_payload_payload_proto_msgTypes[21] + mi := &file_v1_payload_payload_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1162,7 +1208,7 @@ func (x *Search_Response) String() string { func (*Search_Response) ProtoMessage() {} func (x *Search_Response) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[21] + mi := &file_v1_payload_payload_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1203,7 +1249,7 @@ type Search_Responses struct { func (x *Search_Responses) Reset() { *x = Search_Responses{} - 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) } @@ -1215,7 +1261,7 @@ func (x *Search_Responses) String() string { func (*Search_Responses) ProtoMessage() {} func (x *Search_Responses) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[22] + mi := &file_v1_payload_payload_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1252,7 +1298,7 @@ type Search_StreamResponse struct { func (x *Search_StreamResponse) Reset() { *x = Search_StreamResponse{} - 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) } @@ -1264,7 +1310,7 @@ func (x *Search_StreamResponse) String() string { func (*Search_StreamResponse) ProtoMessage() {} func (x *Search_StreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[23] + mi := &file_v1_payload_payload_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1336,7 +1382,7 @@ type Filter_Target struct { func (x *Filter_Target) Reset() { *x = Filter_Target{} - 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) } @@ -1348,7 +1394,7 @@ func (x *Filter_Target) String() string { func (*Filter_Target) ProtoMessage() {} func (x *Filter_Target) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[24] + mi := &file_v1_payload_payload_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1389,7 +1435,7 @@ type Filter_Config struct { func (x *Filter_Config) Reset() { *x = Filter_Config{} - 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) } @@ -1401,7 +1447,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 x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1424,6 +1470,310 @@ func (x *Filter_Config) GetTargets() []*Filter_Target { return nil } +// Represent ZVec document options. +type ZVec_DocumentOptions struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Scalar or text fields stored with the vector. + Fields map[string]string `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ZVec_DocumentOptions) Reset() { + *x = ZVec_DocumentOptions{} + mi := &file_v1_payload_payload_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ZVec_DocumentOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ZVec_DocumentOptions) ProtoMessage() {} + +func (x *ZVec_DocumentOptions) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ZVec_DocumentOptions.ProtoReflect.Descriptor instead. +func (*ZVec_DocumentOptions) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *ZVec_DocumentOptions) GetFields() map[string]string { + if x != nil { + return x.Fields + } + return nil +} + +// Represent ZVec search options. +type ZVec_SearchOptions struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Scalar pre-filter expression. + PreFilter string `protobuf:"bytes,1,opt,name=pre_filter,json=preFilter,proto3" json:"pre_filter,omitempty"` + // Hybrid recall queries. + HybridQueries []*ZVec_Query `protobuf:"bytes,2,rep,name=hybrid_queries,json=hybridQueries,proto3" json:"hybrid_queries,omitempty"` + // Per-query weights used by weighted hybrid reranking. + HybridWeights []float32 `protobuf:"fixed32,3,rep,packed,name=hybrid_weights,json=hybridWeights,proto3" json:"hybrid_weights,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ZVec_SearchOptions) Reset() { + *x = ZVec_SearchOptions{} + mi := &file_v1_payload_payload_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ZVec_SearchOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ZVec_SearchOptions) ProtoMessage() {} + +func (x *ZVec_SearchOptions) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ZVec_SearchOptions.ProtoReflect.Descriptor instead. +func (*ZVec_SearchOptions) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *ZVec_SearchOptions) GetPreFilter() string { + if x != nil { + return x.PreFilter + } + return "" +} + +func (x *ZVec_SearchOptions) GetHybridQueries() []*ZVec_Query { + if x != nil { + return x.HybridQueries + } + return nil +} + +func (x *ZVec_SearchOptions) GetHybridWeights() []float32 { + if x != nil { + return x.HybridWeights + } + return nil +} + +// Represent a ZVec hybrid recall query. +type ZVec_Query struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Target field name. + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` + // Types that are valid to be assigned to Query: + // + // *ZVec_Query_Vector + // *ZVec_Query_Fts + Query isZVec_Query_Query `protobuf_oneof:"query"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ZVec_Query) Reset() { + *x = ZVec_Query{} + mi := &file_v1_payload_payload_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ZVec_Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ZVec_Query) ProtoMessage() {} + +func (x *ZVec_Query) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ZVec_Query.ProtoReflect.Descriptor instead. +func (*ZVec_Query) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 2} +} + +func (x *ZVec_Query) GetFieldName() string { + if x != nil { + return x.FieldName + } + return "" +} + +func (x *ZVec_Query) GetQuery() isZVec_Query_Query { + if x != nil { + return x.Query + } + return nil +} + +func (x *ZVec_Query) GetVector() *ZVec_Vector { + if x != nil { + if x, ok := x.Query.(*ZVec_Query_Vector); ok { + return x.Vector + } + } + return nil +} + +func (x *ZVec_Query) GetFts() *ZVec_FTS { + if x != nil { + if x, ok := x.Query.(*ZVec_Query_Fts); ok { + return x.Fts + } + } + return nil +} + +type isZVec_Query_Query interface { + isZVec_Query_Query() +} + +type ZVec_Query_Vector struct { + // Vector recall query. + Vector *ZVec_Vector `protobuf:"bytes,2,opt,name=vector,proto3,oneof"` +} + +type ZVec_Query_Fts struct { + // Full-text recall query. + Fts *ZVec_FTS `protobuf:"bytes,3,opt,name=fts,proto3,oneof"` +} + +func (*ZVec_Query_Vector) isZVec_Query_Query() {} + +func (*ZVec_Query_Fts) isZVec_Query_Query() {} + +// Represent a ZVec vector recall query. +type ZVec_Vector struct { + state protoimpl.MessageState `protogen:"open.v1"` + Values []float32 `protobuf:"fixed32,1,rep,packed,name=values,proto3" json:"values,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ZVec_Vector) Reset() { + *x = ZVec_Vector{} + mi := &file_v1_payload_payload_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ZVec_Vector) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ZVec_Vector) ProtoMessage() {} + +func (x *ZVec_Vector) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ZVec_Vector.ProtoReflect.Descriptor instead. +func (*ZVec_Vector) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 3} +} + +func (x *ZVec_Vector) GetValues() []float32 { + if x != nil { + return x.Values + } + return nil +} + +// Represent a ZVec full-text recall query. +type ZVec_FTS struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Natural-language match string. + MatchString string `protobuf:"bytes,1,opt,name=match_string,json=matchString,proto3" json:"match_string,omitempty"` + // Explicit full-text query string. + QueryString string `protobuf:"bytes,2,opt,name=query_string,json=queryString,proto3" json:"query_string,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ZVec_FTS) Reset() { + *x = ZVec_FTS{} + mi := &file_v1_payload_payload_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ZVec_FTS) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ZVec_FTS) ProtoMessage() {} + +func (x *ZVec_FTS) ProtoReflect() protoreflect.Message { + mi := &file_v1_payload_payload_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ZVec_FTS.ProtoReflect.Descriptor instead. +func (*ZVec_FTS) Descriptor() ([]byte, []int) { + return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 4} +} + +func (x *ZVec_FTS) GetMatchString() string { + if x != nil { + return x.MatchString + } + return "" +} + +func (x *ZVec_FTS) GetQueryString() string { + if x != nil { + return x.QueryString + } + return "" +} + // Represent the insert request. type Insert_Request struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -1437,7 +1787,7 @@ type Insert_Request struct { func (x *Insert_Request) Reset() { *x = Insert_Request{} - mi := &file_v1_payload_payload_proto_msgTypes[26] + mi := &file_v1_payload_payload_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1449,7 +1799,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[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1462,7 +1812,7 @@ func (x *Insert_Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Insert_Request.ProtoReflect.Descriptor instead. func (*Insert_Request) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 0} } func (x *Insert_Request) GetVector() *Object_Vector { @@ -1490,7 +1840,7 @@ type Insert_MultiRequest struct { func (x *Insert_MultiRequest) Reset() { *x = Insert_MultiRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[27] + mi := &file_v1_payload_payload_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1502,7 +1852,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[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1515,7 +1865,7 @@ func (x *Insert_MultiRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Insert_MultiRequest.ProtoReflect.Descriptor instead. func (*Insert_MultiRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 1} } func (x *Insert_MultiRequest) GetRequests() []*Insert_Request { @@ -1540,7 +1890,7 @@ type Insert_ObjectRequest struct { func (x *Insert_ObjectRequest) Reset() { *x = Insert_ObjectRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[28] + mi := &file_v1_payload_payload_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1552,7 +1902,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[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1565,7 +1915,7 @@ func (x *Insert_ObjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Insert_ObjectRequest.ProtoReflect.Descriptor instead. func (*Insert_ObjectRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 2} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 2} } func (x *Insert_ObjectRequest) GetObject() *Object_Blob { @@ -1600,7 +1950,7 @@ type Insert_MultiObjectRequest struct { func (x *Insert_MultiObjectRequest) Reset() { *x = Insert_MultiObjectRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[29] + mi := &file_v1_payload_payload_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1612,7 +1962,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[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1625,7 +1975,7 @@ func (x *Insert_MultiObjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Insert_MultiObjectRequest.ProtoReflect.Descriptor instead. func (*Insert_MultiObjectRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 3} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 3} } func (x *Insert_MultiObjectRequest) GetRequests() []*Insert_ObjectRequest { @@ -1643,14 +1993,16 @@ type Insert_Config struct { // Filter configurations. Filters *Filter_Config `protobuf:"bytes,2,opt,name=filters,proto3" json:"filters,omitempty"` // Insert timestamp. - Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Algorithm-specific insert options. + Options []*anypb.Any `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Insert_Config) Reset() { *x = Insert_Config{} - mi := &file_v1_payload_payload_proto_msgTypes[30] + mi := &file_v1_payload_payload_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1662,7 +2014,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[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1675,7 +2027,7 @@ func (x *Insert_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Insert_Config.ProtoReflect.Descriptor instead. func (*Insert_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{2, 4} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 4} } func (x *Insert_Config) GetSkipStrictExistCheck() bool { @@ -1699,6 +2051,13 @@ func (x *Insert_Config) GetTimestamp() int64 { return 0 } +func (x *Insert_Config) GetOptions() []*anypb.Any { + if x != nil { + return x.Options + } + return nil +} + // Represent the update request. type Update_Request struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -1712,7 +2071,7 @@ type Update_Request struct { func (x *Update_Request) Reset() { *x = Update_Request{} - mi := &file_v1_payload_payload_proto_msgTypes[31] + mi := &file_v1_payload_payload_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1724,7 +2083,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[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1737,7 +2096,7 @@ func (x *Update_Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Update_Request.ProtoReflect.Descriptor instead. func (*Update_Request) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 0} } func (x *Update_Request) GetVector() *Object_Vector { @@ -1765,7 +2124,7 @@ type Update_MultiRequest struct { func (x *Update_MultiRequest) Reset() { *x = Update_MultiRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[32] + mi := &file_v1_payload_payload_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1777,7 +2136,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[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1790,7 +2149,7 @@ func (x *Update_MultiRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Update_MultiRequest.ProtoReflect.Descriptor instead. func (*Update_MultiRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 1} } func (x *Update_MultiRequest) GetRequests() []*Update_Request { @@ -1815,7 +2174,7 @@ type Update_ObjectRequest struct { func (x *Update_ObjectRequest) Reset() { *x = Update_ObjectRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[33] + mi := &file_v1_payload_payload_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1827,7 +2186,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[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1840,7 +2199,7 @@ func (x *Update_ObjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Update_ObjectRequest.ProtoReflect.Descriptor instead. func (*Update_ObjectRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 2} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 2} } func (x *Update_ObjectRequest) GetObject() *Object_Blob { @@ -1875,7 +2234,7 @@ type Update_MultiObjectRequest struct { func (x *Update_MultiObjectRequest) Reset() { *x = Update_MultiObjectRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[34] + mi := &file_v1_payload_payload_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1887,7 +2246,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[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1900,7 +2259,7 @@ func (x *Update_MultiObjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Update_MultiObjectRequest.ProtoReflect.Descriptor instead. func (*Update_MultiObjectRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 3} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 3} } func (x *Update_MultiObjectRequest) GetRequests() []*Update_ObjectRequest { @@ -1925,7 +2284,7 @@ type Update_TimestampRequest struct { func (x *Update_TimestampRequest) Reset() { *x = Update_TimestampRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[35] + mi := &file_v1_payload_payload_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1937,7 +2296,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[42] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1950,7 +2309,7 @@ func (x *Update_TimestampRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Update_TimestampRequest.ProtoReflect.Descriptor instead. func (*Update_TimestampRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 4} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 4} } func (x *Update_TimestampRequest) GetId() string { @@ -1992,7 +2351,7 @@ type Update_Config struct { func (x *Update_Config) Reset() { *x = Update_Config{} - mi := &file_v1_payload_payload_proto_msgTypes[36] + mi := &file_v1_payload_payload_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2004,7 +2363,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[43] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2017,7 +2376,7 @@ func (x *Update_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Update_Config.ProtoReflect.Descriptor instead. func (*Update_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{3, 5} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 5} } func (x *Update_Config) GetSkipStrictExistCheck() bool { @@ -2061,7 +2420,7 @@ type Upsert_Request struct { func (x *Upsert_Request) Reset() { *x = Upsert_Request{} - mi := &file_v1_payload_payload_proto_msgTypes[37] + mi := &file_v1_payload_payload_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2073,7 +2432,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[44] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2086,7 +2445,7 @@ func (x *Upsert_Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Upsert_Request.ProtoReflect.Descriptor instead. func (*Upsert_Request) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 0} } func (x *Upsert_Request) GetVector() *Object_Vector { @@ -2114,7 +2473,7 @@ type Upsert_MultiRequest struct { func (x *Upsert_MultiRequest) Reset() { *x = Upsert_MultiRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[38] + mi := &file_v1_payload_payload_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2126,7 +2485,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[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2139,7 +2498,7 @@ func (x *Upsert_MultiRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Upsert_MultiRequest.ProtoReflect.Descriptor instead. func (*Upsert_MultiRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 1} } func (x *Upsert_MultiRequest) GetRequests() []*Upsert_Request { @@ -2164,7 +2523,7 @@ type Upsert_ObjectRequest struct { func (x *Upsert_ObjectRequest) Reset() { *x = Upsert_ObjectRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[39] + mi := &file_v1_payload_payload_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2176,7 +2535,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[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2189,7 +2548,7 @@ func (x *Upsert_ObjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Upsert_ObjectRequest.ProtoReflect.Descriptor instead. func (*Upsert_ObjectRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 2} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 2} } func (x *Upsert_ObjectRequest) GetObject() *Object_Blob { @@ -2224,7 +2583,7 @@ type Upsert_MultiObjectRequest struct { func (x *Upsert_MultiObjectRequest) Reset() { *x = Upsert_MultiObjectRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[40] + mi := &file_v1_payload_payload_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2236,7 +2595,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[47] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2249,7 +2608,7 @@ func (x *Upsert_MultiObjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Upsert_MultiObjectRequest.ProtoReflect.Descriptor instead. func (*Upsert_MultiObjectRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 3} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 3} } func (x *Upsert_MultiObjectRequest) GetRequests() []*Upsert_ObjectRequest { @@ -2277,7 +2636,7 @@ type Upsert_Config struct { func (x *Upsert_Config) Reset() { *x = Upsert_Config{} - mi := &file_v1_payload_payload_proto_msgTypes[41] + mi := &file_v1_payload_payload_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2289,7 +2648,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[48] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2302,7 +2661,7 @@ func (x *Upsert_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Upsert_Config.ProtoReflect.Descriptor instead. func (*Upsert_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{4, 4} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 4} } func (x *Upsert_Config) GetSkipStrictExistCheck() bool { @@ -2346,7 +2705,7 @@ type Remove_Request struct { func (x *Remove_Request) Reset() { *x = Remove_Request{} - mi := &file_v1_payload_payload_proto_msgTypes[42] + mi := &file_v1_payload_payload_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2358,7 +2717,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[49] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2371,7 +2730,7 @@ func (x *Remove_Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Remove_Request.ProtoReflect.Descriptor instead. func (*Remove_Request) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{6, 0} } func (x *Remove_Request) GetId() *Object_ID { @@ -2399,7 +2758,7 @@ type Remove_MultiRequest struct { func (x *Remove_MultiRequest) Reset() { *x = Remove_MultiRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[43] + mi := &file_v1_payload_payload_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2411,7 +2770,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[50] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2424,7 +2783,7 @@ func (x *Remove_MultiRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Remove_MultiRequest.ProtoReflect.Descriptor instead. func (*Remove_MultiRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{6, 1} } func (x *Remove_MultiRequest) GetRequests() []*Remove_Request { @@ -2446,7 +2805,7 @@ type Remove_TimestampRequest struct { func (x *Remove_TimestampRequest) Reset() { *x = Remove_TimestampRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[44] + mi := &file_v1_payload_payload_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2458,7 +2817,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[51] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2471,7 +2830,7 @@ func (x *Remove_TimestampRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Remove_TimestampRequest.ProtoReflect.Descriptor instead. func (*Remove_TimestampRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 2} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{6, 2} } func (x *Remove_TimestampRequest) GetTimestamps() []*Remove_Timestamp { @@ -2494,7 +2853,7 @@ type Remove_Timestamp struct { func (x *Remove_Timestamp) Reset() { *x = Remove_Timestamp{} - mi := &file_v1_payload_payload_proto_msgTypes[45] + mi := &file_v1_payload_payload_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2506,7 +2865,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[52] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2519,7 +2878,7 @@ func (x *Remove_Timestamp) ProtoReflect() protoreflect.Message { // Deprecated: Use Remove_Timestamp.ProtoReflect.Descriptor instead. func (*Remove_Timestamp) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 3} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{6, 3} } func (x *Remove_Timestamp) GetTimestamp() int64 { @@ -2549,7 +2908,7 @@ type Remove_Config struct { func (x *Remove_Config) Reset() { *x = Remove_Config{} - mi := &file_v1_payload_payload_proto_msgTypes[46] + mi := &file_v1_payload_payload_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2561,7 +2920,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[53] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2574,7 +2933,7 @@ func (x *Remove_Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Remove_Config.ProtoReflect.Descriptor instead. func (*Remove_Config) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{5, 4} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{6, 4} } func (x *Remove_Config) GetSkipStrictExistCheck() bool { @@ -2599,7 +2958,7 @@ type Flush_Request struct { func (x *Flush_Request) Reset() { *x = Flush_Request{} - mi := &file_v1_payload_payload_proto_msgTypes[47] + mi := &file_v1_payload_payload_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2611,7 +2970,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[54] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2624,7 +2983,7 @@ func (x *Flush_Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Flush_Request.ProtoReflect.Descriptor instead. func (*Flush_Request) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{6, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 0} } // Represent a request to fetch raw vector. @@ -2640,7 +2999,7 @@ type Object_VectorRequest struct { func (x *Object_VectorRequest) Reset() { *x = Object_VectorRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[48] + mi := &file_v1_payload_payload_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2652,7 +3011,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[55] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2665,7 +3024,7 @@ func (x *Object_VectorRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_VectorRequest.ProtoReflect.Descriptor instead. func (*Object_VectorRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 0} } func (x *Object_VectorRequest) GetId() *Object_ID { @@ -2695,7 +3054,7 @@ type Object_Distance struct { func (x *Object_Distance) Reset() { *x = Object_Distance{} - mi := &file_v1_payload_payload_proto_msgTypes[49] + mi := &file_v1_payload_payload_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2707,7 +3066,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[56] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2720,7 +3079,7 @@ func (x *Object_Distance) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_Distance.ProtoReflect.Descriptor instead. func (*Object_Distance) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 1} } func (x *Object_Distance) GetId() string { @@ -2751,7 +3110,7 @@ type Object_StreamDistance struct { func (x *Object_StreamDistance) Reset() { *x = Object_StreamDistance{} - mi := &file_v1_payload_payload_proto_msgTypes[50] + mi := &file_v1_payload_payload_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2763,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[50] + mi := &file_v1_payload_payload_proto_msgTypes[57] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2776,7 +3135,7 @@ func (x *Object_StreamDistance) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_StreamDistance.ProtoReflect.Descriptor instead. func (*Object_StreamDistance) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 2} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 2} } func (x *Object_StreamDistance) GetPayload() isObject_StreamDistance_Payload { @@ -2832,7 +3191,7 @@ type Object_ID struct { func (x *Object_ID) Reset() { *x = Object_ID{} - mi := &file_v1_payload_payload_proto_msgTypes[51] + mi := &file_v1_payload_payload_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2844,7 +3203,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[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2857,7 +3216,7 @@ func (x *Object_ID) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_ID.ProtoReflect.Descriptor instead. func (*Object_ID) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 3} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 3} } func (x *Object_ID) GetId() string { @@ -2877,7 +3236,7 @@ type Object_IDs struct { func (x *Object_IDs) Reset() { *x = Object_IDs{} - mi := &file_v1_payload_payload_proto_msgTypes[52] + mi := &file_v1_payload_payload_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2889,7 +3248,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[59] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2902,7 +3261,7 @@ func (x *Object_IDs) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_IDs.ProtoReflect.Descriptor instead. func (*Object_IDs) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 4} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 4} } func (x *Object_IDs) GetIds() []string { @@ -2927,7 +3286,7 @@ type Object_Vector struct { func (x *Object_Vector) Reset() { *x = Object_Vector{} - mi := &file_v1_payload_payload_proto_msgTypes[53] + mi := &file_v1_payload_payload_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2939,7 +3298,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[60] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2952,7 +3311,7 @@ func (x *Object_Vector) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_Vector.ProtoReflect.Descriptor instead. func (*Object_Vector) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 5} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 5} } func (x *Object_Vector) GetId() string { @@ -2987,7 +3346,7 @@ type Object_TimestampRequest struct { func (x *Object_TimestampRequest) Reset() { *x = Object_TimestampRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[54] + mi := &file_v1_payload_payload_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2999,7 +3358,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[61] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3012,7 +3371,7 @@ func (x *Object_TimestampRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_TimestampRequest.ProtoReflect.Descriptor instead. func (*Object_TimestampRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 6} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 6} } func (x *Object_TimestampRequest) GetId() *Object_ID { @@ -3035,7 +3394,7 @@ type Object_Timestamp struct { func (x *Object_Timestamp) Reset() { *x = Object_Timestamp{} - mi := &file_v1_payload_payload_proto_msgTypes[55] + mi := &file_v1_payload_payload_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3047,7 +3406,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[62] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3060,7 +3419,7 @@ func (x *Object_Timestamp) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_Timestamp.ProtoReflect.Descriptor instead. func (*Object_Timestamp) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 7} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 7} } func (x *Object_Timestamp) GetId() string { @@ -3087,7 +3446,7 @@ type Object_Vectors struct { func (x *Object_Vectors) Reset() { *x = Object_Vectors{} - mi := &file_v1_payload_payload_proto_msgTypes[56] + mi := &file_v1_payload_payload_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3099,7 +3458,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[63] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3112,7 +3471,7 @@ func (x *Object_Vectors) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_Vectors.ProtoReflect.Descriptor instead. func (*Object_Vectors) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 8} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 8} } func (x *Object_Vectors) GetVectors() []*Object_Vector { @@ -3136,7 +3495,7 @@ type Object_StreamVector struct { func (x *Object_StreamVector) Reset() { *x = Object_StreamVector{} - mi := &file_v1_payload_payload_proto_msgTypes[57] + mi := &file_v1_payload_payload_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3148,7 +3507,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[64] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3161,7 +3520,7 @@ func (x *Object_StreamVector) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_StreamVector.ProtoReflect.Descriptor instead. func (*Object_StreamVector) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 9} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 9} } func (x *Object_StreamVector) GetPayload() isObject_StreamVector_Payload { @@ -3220,7 +3579,7 @@ type Object_ReshapeVector struct { func (x *Object_ReshapeVector) Reset() { *x = Object_ReshapeVector{} - mi := &file_v1_payload_payload_proto_msgTypes[58] + mi := &file_v1_payload_payload_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3232,7 +3591,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[65] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3245,7 +3604,7 @@ func (x *Object_ReshapeVector) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_ReshapeVector.ProtoReflect.Descriptor instead. func (*Object_ReshapeVector) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 10} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 10} } func (x *Object_ReshapeVector) GetObject() []byte { @@ -3275,7 +3634,7 @@ type Object_Blob struct { func (x *Object_Blob) Reset() { *x = Object_Blob{} - mi := &file_v1_payload_payload_proto_msgTypes[59] + mi := &file_v1_payload_payload_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3287,7 +3646,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[66] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3300,7 +3659,7 @@ func (x *Object_Blob) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_Blob.ProtoReflect.Descriptor instead. func (*Object_Blob) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 11} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 11} } func (x *Object_Blob) GetId() string { @@ -3331,7 +3690,7 @@ type Object_StreamBlob struct { func (x *Object_StreamBlob) Reset() { *x = Object_StreamBlob{} - mi := &file_v1_payload_payload_proto_msgTypes[60] + mi := &file_v1_payload_payload_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3343,7 +3702,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[67] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3356,7 +3715,7 @@ func (x *Object_StreamBlob) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_StreamBlob.ProtoReflect.Descriptor instead. func (*Object_StreamBlob) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 12} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 12} } func (x *Object_StreamBlob) GetPayload() isObject_StreamBlob_Payload { @@ -3417,7 +3776,7 @@ type Object_Location struct { func (x *Object_Location) Reset() { *x = Object_Location{} - mi := &file_v1_payload_payload_proto_msgTypes[61] + mi := &file_v1_payload_payload_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3429,7 +3788,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[68] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3442,7 +3801,7 @@ func (x *Object_Location) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_Location.ProtoReflect.Descriptor instead. func (*Object_Location) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 13} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 13} } func (x *Object_Location) GetName() string { @@ -3480,7 +3839,7 @@ type Object_StreamLocation struct { func (x *Object_StreamLocation) Reset() { *x = Object_StreamLocation{} - mi := &file_v1_payload_payload_proto_msgTypes[62] + mi := &file_v1_payload_payload_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3492,7 +3851,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[69] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3505,7 +3864,7 @@ func (x *Object_StreamLocation) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_StreamLocation.ProtoReflect.Descriptor instead. func (*Object_StreamLocation) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 14} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 14} } func (x *Object_StreamLocation) GetPayload() isObject_StreamLocation_Payload { @@ -3561,7 +3920,7 @@ type Object_Locations struct { func (x *Object_Locations) Reset() { *x = Object_Locations{} - mi := &file_v1_payload_payload_proto_msgTypes[63] + mi := &file_v1_payload_payload_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3573,7 +3932,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[70] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3586,7 +3945,7 @@ func (x *Object_Locations) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_Locations.ProtoReflect.Descriptor instead. func (*Object_Locations) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 15} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 15} } func (x *Object_Locations) GetLocations() []*Object_Location { @@ -3605,7 +3964,7 @@ type Object_List struct { func (x *Object_List) Reset() { *x = Object_List{} - mi := &file_v1_payload_payload_proto_msgTypes[64] + mi := &file_v1_payload_payload_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3617,7 +3976,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[71] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3630,7 +3989,7 @@ func (x *Object_List) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_List.ProtoReflect.Descriptor instead. func (*Object_List) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 16} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 16} } type Object_List_Request struct { @@ -3641,7 +4000,7 @@ type Object_List_Request struct { func (x *Object_List_Request) Reset() { *x = Object_List_Request{} - mi := &file_v1_payload_payload_proto_msgTypes[65] + mi := &file_v1_payload_payload_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3653,7 +4012,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[72] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3666,7 +4025,7 @@ func (x *Object_List_Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_List_Request.ProtoReflect.Descriptor instead. func (*Object_List_Request) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 16, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 16, 0} } type Object_List_Response struct { @@ -3682,7 +4041,7 @@ type Object_List_Response struct { func (x *Object_List_Response) Reset() { *x = Object_List_Response{} - mi := &file_v1_payload_payload_proto_msgTypes[66] + mi := &file_v1_payload_payload_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3694,7 +4053,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[73] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3707,7 +4066,7 @@ func (x *Object_List_Response) ProtoReflect() protoreflect.Message { // Deprecated: Use Object_List_Response.ProtoReflect.Descriptor instead. func (*Object_List_Response) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{7, 16, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 16, 1} } func (x *Object_List_Response) GetPayload() isObject_List_Response_Payload { @@ -3764,7 +4123,7 @@ type Control_CreateIndexRequest struct { func (x *Control_CreateIndexRequest) Reset() { *x = Control_CreateIndexRequest{} - mi := &file_v1_payload_payload_proto_msgTypes[67] + mi := &file_v1_payload_payload_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3776,7 +4135,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[74] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3789,7 +4148,7 @@ func (x *Control_CreateIndexRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use Control_CreateIndexRequest.ProtoReflect.Descriptor instead. func (*Control_CreateIndexRequest) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{8, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{9, 0} } func (x *Control_CreateIndexRequest) GetPoolSize() uint32 { @@ -3814,7 +4173,7 @@ type Discoverer_Request struct { func (x *Discoverer_Request) Reset() { *x = Discoverer_Request{} - mi := &file_v1_payload_payload_proto_msgTypes[68] + mi := &file_v1_payload_payload_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3826,7 +4185,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[75] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3839,7 +4198,7 @@ func (x *Discoverer_Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Discoverer_Request.ProtoReflect.Descriptor instead. func (*Discoverer_Request) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{9, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0} } func (x *Discoverer_Request) GetName() string { @@ -3872,7 +4231,7 @@ type Info_Index struct { func (x *Info_Index) Reset() { *x = Info_Index{} - mi := &file_v1_payload_payload_proto_msgTypes[69] + mi := &file_v1_payload_payload_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3884,7 +4243,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[76] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3897,7 +4256,7 @@ func (x *Info_Index) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index.ProtoReflect.Descriptor instead. func (*Info_Index) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0} } // Represent the resource stats @@ -3913,7 +4272,7 @@ type Info_ResourceStats struct { func (x *Info_ResourceStats) Reset() { *x = Info_ResourceStats{} - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3925,7 +4284,7 @@ func (x *Info_ResourceStats) String() string { func (*Info_ResourceStats) ProtoMessage() {} func (x *Info_ResourceStats) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[70] + mi := &file_v1_payload_payload_proto_msgTypes[77] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3938,7 +4297,7 @@ func (x *Info_ResourceStats) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_ResourceStats.ProtoReflect.Descriptor instead. func (*Info_ResourceStats) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 1} } func (x *Info_ResourceStats) GetName() string { @@ -3978,7 +4337,7 @@ type Info_CgroupStats struct { func (x *Info_CgroupStats) Reset() { *x = Info_CgroupStats{} - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3990,7 +4349,7 @@ func (x *Info_CgroupStats) String() string { func (*Info_CgroupStats) ProtoMessage() {} func (x *Info_CgroupStats) ProtoReflect() protoreflect.Message { - mi := &file_v1_payload_payload_proto_msgTypes[71] + mi := &file_v1_payload_payload_proto_msgTypes[78] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4003,7 +4362,7 @@ func (x *Info_CgroupStats) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_CgroupStats.ProtoReflect.Descriptor instead. func (*Info_CgroupStats) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 2} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 2} } func (x *Info_CgroupStats) GetCpuLimitCores() float64 { @@ -4057,7 +4416,7 @@ type Info_Pod struct { func (x *Info_Pod) Reset() { *x = Info_Pod{} - mi := &file_v1_payload_payload_proto_msgTypes[72] + mi := &file_v1_payload_payload_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4069,7 +4428,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[72] + mi := &file_v1_payload_payload_proto_msgTypes[79] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4082,7 +4441,7 @@ func (x *Info_Pod) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Pod.ProtoReflect.Descriptor instead. func (*Info_Pod) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 3} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 3} } func (x *Info_Pod) GetAppName() string { @@ -4155,7 +4514,7 @@ type Info_Node struct { func (x *Info_Node) Reset() { *x = Info_Node{} - mi := &file_v1_payload_payload_proto_msgTypes[73] + mi := &file_v1_payload_payload_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4167,7 +4526,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[73] + mi := &file_v1_payload_payload_proto_msgTypes[80] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4180,7 +4539,7 @@ func (x *Info_Node) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Node.ProtoReflect.Descriptor instead. func (*Info_Node) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 4} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 4} } func (x *Info_Node) GetName() string { @@ -4246,7 +4605,7 @@ type Info_Service struct { func (x *Info_Service) Reset() { *x = Info_Service{} - mi := &file_v1_payload_payload_proto_msgTypes[74] + mi := &file_v1_payload_payload_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4258,7 +4617,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[74] + mi := &file_v1_payload_payload_proto_msgTypes[81] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4271,7 +4630,7 @@ func (x *Info_Service) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Service.ProtoReflect.Descriptor instead. func (*Info_Service) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 5} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 5} } func (x *Info_Service) GetName() string { @@ -4329,7 +4688,7 @@ type Info_ServicePort struct { func (x *Info_ServicePort) Reset() { *x = Info_ServicePort{} - mi := &file_v1_payload_payload_proto_msgTypes[75] + mi := &file_v1_payload_payload_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4341,7 +4700,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[75] + mi := &file_v1_payload_payload_proto_msgTypes[82] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4354,7 +4713,7 @@ func (x *Info_ServicePort) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_ServicePort.ProtoReflect.Descriptor instead. func (*Info_ServicePort) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 6} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 6} } func (x *Info_ServicePort) GetName() string { @@ -4381,7 +4740,7 @@ type Info_Labels struct { func (x *Info_Labels) Reset() { *x = Info_Labels{} - mi := &file_v1_payload_payload_proto_msgTypes[76] + mi := &file_v1_payload_payload_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4393,7 +4752,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[76] + mi := &file_v1_payload_payload_proto_msgTypes[83] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4406,7 +4765,7 @@ func (x *Info_Labels) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Labels.ProtoReflect.Descriptor instead. func (*Info_Labels) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 7} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 7} } func (x *Info_Labels) GetLabels() map[string]string { @@ -4426,7 +4785,7 @@ type Info_Annotations struct { func (x *Info_Annotations) Reset() { *x = Info_Annotations{} - mi := &file_v1_payload_payload_proto_msgTypes[77] + mi := &file_v1_payload_payload_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4438,7 +4797,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[77] + mi := &file_v1_payload_payload_proto_msgTypes[84] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4451,7 +4810,7 @@ func (x *Info_Annotations) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Annotations.ProtoReflect.Descriptor instead. func (*Info_Annotations) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 8} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 8} } func (x *Info_Annotations) GetAnnotations() map[string]string { @@ -4476,7 +4835,7 @@ type Info_CPU struct { func (x *Info_CPU) Reset() { *x = Info_CPU{} - mi := &file_v1_payload_payload_proto_msgTypes[78] + mi := &file_v1_payload_payload_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4488,7 +4847,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[78] + mi := &file_v1_payload_payload_proto_msgTypes[85] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4501,7 +4860,7 @@ func (x *Info_CPU) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_CPU.ProtoReflect.Descriptor instead. func (*Info_CPU) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 9} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 9} } func (x *Info_CPU) GetLimit() float64 { @@ -4540,7 +4899,7 @@ type Info_Memory struct { func (x *Info_Memory) Reset() { *x = Info_Memory{} - mi := &file_v1_payload_payload_proto_msgTypes[79] + mi := &file_v1_payload_payload_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4552,7 +4911,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[79] + mi := &file_v1_payload_payload_proto_msgTypes[86] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4565,7 +4924,7 @@ func (x *Info_Memory) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Memory.ProtoReflect.Descriptor instead. func (*Info_Memory) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 10} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 10} } func (x *Info_Memory) GetLimit() float64 { @@ -4600,7 +4959,7 @@ type Info_Pods struct { func (x *Info_Pods) Reset() { *x = Info_Pods{} - mi := &file_v1_payload_payload_proto_msgTypes[80] + mi := &file_v1_payload_payload_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4612,7 +4971,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[80] + mi := &file_v1_payload_payload_proto_msgTypes[87] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4625,7 +4984,7 @@ func (x *Info_Pods) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Pods.ProtoReflect.Descriptor instead. func (*Info_Pods) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 11} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 11} } func (x *Info_Pods) GetPods() []*Info_Pod { @@ -4646,7 +5005,7 @@ type Info_Nodes struct { func (x *Info_Nodes) Reset() { *x = Info_Nodes{} - mi := &file_v1_payload_payload_proto_msgTypes[81] + mi := &file_v1_payload_payload_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4658,7 +5017,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[81] + mi := &file_v1_payload_payload_proto_msgTypes[88] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4671,7 +5030,7 @@ func (x *Info_Nodes) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Nodes.ProtoReflect.Descriptor instead. func (*Info_Nodes) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 12} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 12} } func (x *Info_Nodes) GetNodes() []*Info_Node { @@ -4692,7 +5051,7 @@ type Info_Services struct { func (x *Info_Services) Reset() { *x = Info_Services{} - mi := &file_v1_payload_payload_proto_msgTypes[82] + mi := &file_v1_payload_payload_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4704,7 +5063,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[82] + mi := &file_v1_payload_payload_proto_msgTypes[89] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4717,7 +5076,7 @@ func (x *Info_Services) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Services.ProtoReflect.Descriptor instead. func (*Info_Services) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 13} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 13} } func (x *Info_Services) GetServices() []*Info_Service { @@ -4737,7 +5096,7 @@ type Info_IPs struct { func (x *Info_IPs) Reset() { *x = Info_IPs{} - mi := &file_v1_payload_payload_proto_msgTypes[83] + mi := &file_v1_payload_payload_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4749,7 +5108,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[83] + mi := &file_v1_payload_payload_proto_msgTypes[90] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4762,7 +5121,7 @@ func (x *Info_IPs) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_IPs.ProtoReflect.Descriptor instead. func (*Info_IPs) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 14} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 14} } func (x *Info_IPs) GetIp() []string { @@ -4789,7 +5148,7 @@ type Info_Index_Count struct { func (x *Info_Index_Count) Reset() { *x = Info_Index_Count{} - mi := &file_v1_payload_payload_proto_msgTypes[84] + mi := &file_v1_payload_payload_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4801,7 +5160,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[84] + mi := &file_v1_payload_payload_proto_msgTypes[91] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4814,7 +5173,7 @@ func (x *Info_Index_Count) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index_Count.ProtoReflect.Descriptor instead. func (*Info_Index_Count) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0, 0} } func (x *Info_Index_Count) GetStored() uint32 { @@ -4860,7 +5219,7 @@ type Info_Index_Detail struct { func (x *Info_Index_Detail) Reset() { *x = Info_Index_Detail{} - mi := &file_v1_payload_payload_proto_msgTypes[85] + mi := &file_v1_payload_payload_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4872,7 +5231,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[85] + mi := &file_v1_payload_payload_proto_msgTypes[92] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4885,7 +5244,7 @@ func (x *Info_Index_Detail) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index_Detail.ProtoReflect.Descriptor instead. func (*Info_Index_Detail) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0, 1} } func (x *Info_Index_Detail) GetCounts() map[string]*Info_Index_Count { @@ -4918,7 +5277,7 @@ type Info_Index_UUID struct { func (x *Info_Index_UUID) Reset() { *x = Info_Index_UUID{} - mi := &file_v1_payload_payload_proto_msgTypes[86] + mi := &file_v1_payload_payload_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4930,7 +5289,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[86] + mi := &file_v1_payload_payload_proto_msgTypes[93] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4943,7 +5302,7 @@ func (x *Info_Index_UUID) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index_UUID.ProtoReflect.Descriptor instead. func (*Info_Index_UUID) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 2} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0, 2} } // Represents index Statistics @@ -4988,7 +5347,7 @@ type Info_Index_Statistics struct { func (x *Info_Index_Statistics) Reset() { *x = Info_Index_Statistics{} - mi := &file_v1_payload_payload_proto_msgTypes[87] + mi := &file_v1_payload_payload_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5000,7 +5359,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[87] + mi := &file_v1_payload_payload_proto_msgTypes[94] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5013,7 +5372,7 @@ func (x *Info_Index_Statistics) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index_Statistics.ProtoReflect.Descriptor instead. func (*Info_Index_Statistics) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 3} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0, 3} } func (x *Info_Index_Statistics) GetValid() bool { @@ -5258,7 +5617,7 @@ type Info_Index_StatisticsDetail struct { func (x *Info_Index_StatisticsDetail) Reset() { *x = Info_Index_StatisticsDetail{} - mi := &file_v1_payload_payload_proto_msgTypes[88] + mi := &file_v1_payload_payload_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5270,7 +5629,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[88] + mi := &file_v1_payload_payload_proto_msgTypes[95] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5283,7 +5642,7 @@ func (x *Info_Index_StatisticsDetail) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index_StatisticsDetail.ProtoReflect.Descriptor instead. func (*Info_Index_StatisticsDetail) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 4} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0, 4} } func (x *Info_Index_StatisticsDetail) GetDetails() map[string]*Info_Index_Statistics { @@ -5337,7 +5696,7 @@ type Info_Index_Property struct { func (x *Info_Index_Property) Reset() { *x = Info_Index_Property{} - mi := &file_v1_payload_payload_proto_msgTypes[89] + mi := &file_v1_payload_payload_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5349,7 +5708,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[89] + mi := &file_v1_payload_payload_proto_msgTypes[96] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5362,7 +5721,7 @@ func (x *Info_Index_Property) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index_Property.ProtoReflect.Descriptor instead. func (*Info_Index_Property) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 5} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0, 5} } func (x *Info_Index_Property) GetDimension() int32 { @@ -5620,7 +5979,7 @@ type Info_Index_PropertyDetail struct { func (x *Info_Index_PropertyDetail) Reset() { *x = Info_Index_PropertyDetail{} - mi := &file_v1_payload_payload_proto_msgTypes[90] + mi := &file_v1_payload_payload_proto_msgTypes[97] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5632,7 +5991,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[90] + mi := &file_v1_payload_payload_proto_msgTypes[97] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5645,7 +6004,7 @@ func (x *Info_Index_PropertyDetail) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index_PropertyDetail.ProtoReflect.Descriptor instead. func (*Info_Index_PropertyDetail) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 6} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0, 6} } func (x *Info_Index_PropertyDetail) GetDetails() map[string]*Info_Index_Property { @@ -5665,7 +6024,7 @@ type Info_Index_UUID_Committed struct { func (x *Info_Index_UUID_Committed) Reset() { *x = Info_Index_UUID_Committed{} - mi := &file_v1_payload_payload_proto_msgTypes[92] + mi := &file_v1_payload_payload_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5677,7 +6036,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[92] + mi := &file_v1_payload_payload_proto_msgTypes[99] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5690,7 +6049,7 @@ func (x *Info_Index_UUID_Committed) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index_UUID_Committed.ProtoReflect.Descriptor instead. func (*Info_Index_UUID_Committed) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 2, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0, 2, 0} } func (x *Info_Index_UUID_Committed) GetUuid() string { @@ -5710,7 +6069,7 @@ type Info_Index_UUID_Uncommitted struct { func (x *Info_Index_UUID_Uncommitted) Reset() { *x = Info_Index_UUID_Uncommitted{} - mi := &file_v1_payload_payload_proto_msgTypes[93] + mi := &file_v1_payload_payload_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5722,7 +6081,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[93] + mi := &file_v1_payload_payload_proto_msgTypes[100] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5735,7 +6094,7 @@ func (x *Info_Index_UUID_Uncommitted) ProtoReflect() protoreflect.Message { // Deprecated: Use Info_Index_UUID_Uncommitted.ProtoReflect.Descriptor instead. func (*Info_Index_UUID_Uncommitted) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{10, 0, 2, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0, 2, 1} } func (x *Info_Index_UUID_Uncommitted) GetUuid() string { @@ -5758,7 +6117,7 @@ type Mirror_Target struct { func (x *Mirror_Target) Reset() { *x = Mirror_Target{} - mi := &file_v1_payload_payload_proto_msgTypes[98] + mi := &file_v1_payload_payload_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5770,7 +6129,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[98] + mi := &file_v1_payload_payload_proto_msgTypes[105] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5783,7 +6142,7 @@ func (x *Mirror_Target) ProtoReflect() protoreflect.Message { // Deprecated: Use Mirror_Target.ProtoReflect.Descriptor instead. func (*Mirror_Target) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{12, 0} } func (x *Mirror_Target) GetHost() string { @@ -5811,7 +6170,7 @@ type Mirror_Targets struct { func (x *Mirror_Targets) Reset() { *x = Mirror_Targets{} - mi := &file_v1_payload_payload_proto_msgTypes[99] + mi := &file_v1_payload_payload_proto_msgTypes[106] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5823,7 +6182,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[99] + mi := &file_v1_payload_payload_proto_msgTypes[106] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5836,7 +6195,7 @@ func (x *Mirror_Targets) ProtoReflect() protoreflect.Message { // Deprecated: Use Mirror_Targets.ProtoReflect.Descriptor instead. func (*Mirror_Targets) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{11, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{12, 1} } func (x *Mirror_Targets) GetTargets() []*Mirror_Target { @@ -5855,7 +6214,7 @@ type Meta_Key struct { func (x *Meta_Key) Reset() { *x = Meta_Key{} - mi := &file_v1_payload_payload_proto_msgTypes[100] + mi := &file_v1_payload_payload_proto_msgTypes[107] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5867,7 +6226,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[100] + mi := &file_v1_payload_payload_proto_msgTypes[107] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5880,7 +6239,7 @@ func (x *Meta_Key) ProtoReflect() protoreflect.Message { // Deprecated: Use Meta_Key.ProtoReflect.Descriptor instead. func (*Meta_Key) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{12, 0} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{13, 0} } func (x *Meta_Key) GetKey() string { @@ -5899,7 +6258,7 @@ type Meta_Value struct { func (x *Meta_Value) Reset() { *x = Meta_Value{} - mi := &file_v1_payload_payload_proto_msgTypes[101] + mi := &file_v1_payload_payload_proto_msgTypes[108] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5911,7 +6270,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[101] + mi := &file_v1_payload_payload_proto_msgTypes[108] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5924,7 +6283,7 @@ func (x *Meta_Value) ProtoReflect() protoreflect.Message { // Deprecated: Use Meta_Value.ProtoReflect.Descriptor instead. func (*Meta_Value) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{12, 1} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{13, 1} } func (x *Meta_Value) GetValue() *anypb.Any { @@ -5944,7 +6303,7 @@ type Meta_KeyValue struct { func (x *Meta_KeyValue) Reset() { *x = Meta_KeyValue{} - mi := &file_v1_payload_payload_proto_msgTypes[102] + mi := &file_v1_payload_payload_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5956,7 +6315,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[102] + mi := &file_v1_payload_payload_proto_msgTypes[109] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5969,7 +6328,7 @@ func (x *Meta_KeyValue) ProtoReflect() protoreflect.Message { // Deprecated: Use Meta_KeyValue.ProtoReflect.Descriptor instead. func (*Meta_KeyValue) Descriptor() ([]byte, []int) { - return file_v1_payload_payload_proto_rawDescGZIP(), []int{12, 2} + return file_v1_payload_payload_proto_rawDescGZIP(), []int{13, 2} } func (x *Meta_KeyValue) GetKey() *Meta_Key { @@ -5991,7 +6350,7 @@ var File_v1_payload_payload_proto protoreflect.FileDescriptor const file_v1_payload_payload_proto_rawDesc = "" + "\n" + "\x18v1/payload/payload.proto\x12\n" + - "payload.v1\x1a\x1bbuf/validate/validate.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xd5\v\n" + + "payload.v1\x1a\x1bbuf/validate/validate.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\x85\f\n" + "\x06Search\x1a^\n" + "\aRequest\x12 \n" + "\x06vector\x18\x01 \x03(\x02B\b\xbaH\x05\x92\x01\x02\b\x02R\x06vector\x121\n" + @@ -6010,7 +6369,7 @@ const file_v1_payload_payload_proto_rawDesc = "" + "vectorizer\x18\x03 \x01(\v2\x19.payload.v1.Filter.TargetR\n" + "vectorizer\x1aR\n" + "\x12MultiObjectRequest\x12<\n" + - "\brequests\x18\x01 \x03(\v2 .payload.v1.Search.ObjectRequestR\brequests\x1a\xfc\x03\n" + + "\brequests\x18\x01 \x03(\v2 .payload.v1.Search.ObjectRequestR\brequests\x1a\xac\x04\n" + "\x06Config\x12\x1d\n" + "\n" + "request_id\x18\x01 \x01(\tR\trequestId\x12\x19\n" + @@ -6025,7 +6384,8 @@ const file_v1_payload_payload_proto_rawDesc = "" + "\x05ratio\x18\n" + " \x01(\v2\x1b.google.protobuf.FloatValueR\x05ratio\x12\x16\n" + "\x06nprobe\x18\v \x01(\rR\x06nprobe\x12\x1b\n" + - "\tedge_size\x18\f \x01(\x05R\bedgeSize\x1a`\n" + + "\tedge_size\x18\f \x01(\x05R\bedgeSize\x12.\n" + + "\aoptions\x18\r \x03(\v2\x14.google.protobuf.AnyR\aoptions\x1a`\n" + "\bResponse\x12\x1d\n" + "\n" + "request_id\x18\x01 \x01(\tR\trequestId\x125\n" + @@ -6047,7 +6407,29 @@ const file_v1_payload_payload_proto_rawDesc = "" + "\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n" + "\x04port\x18\x02 \x01(\rR\x04port\x1a=\n" + "\x06Config\x123\n" + - "\atargets\x18\x01 \x03(\v2\x19.payload.v1.Filter.TargetR\atargets\"\xe5\x04\n" + + "\atargets\x18\x01 \x03(\v2\x19.payload.v1.Filter.TargetR\atargets\"\xb0\x04\n" + + "\x04ZVec\x1a\x92\x01\n" + + "\x0fDocumentOptions\x12D\n" + + "\x06fields\x18\x01 \x03(\v2,.payload.v1.ZVec.DocumentOptions.FieldsEntryR\x06fields\x1a9\n" + + "\vFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\x94\x01\n" + + "\rSearchOptions\x12\x1d\n" + + "\n" + + "pre_filter\x18\x01 \x01(\tR\tpreFilter\x12=\n" + + "\x0ehybrid_queries\x18\x02 \x03(\v2\x16.payload.v1.ZVec.QueryR\rhybridQueries\x12%\n" + + "\x0ehybrid_weights\x18\x03 \x03(\x02R\rhybridWeights\x1a\x8c\x01\n" + + "\x05Query\x12\x1d\n" + + "\n" + + "field_name\x18\x01 \x01(\tR\tfieldName\x121\n" + + "\x06vector\x18\x02 \x01(\v2\x17.payload.v1.ZVec.VectorH\x00R\x06vector\x12(\n" + + "\x03fts\x18\x03 \x01(\v2\x14.payload.v1.ZVec.FTSH\x00R\x03ftsB\a\n" + + "\x05query\x1a \n" + + "\x06Vector\x12\x16\n" + + "\x06values\x18\x01 \x03(\x02R\x06values\x1aK\n" + + "\x03FTS\x12!\n" + + "\fmatch_string\x18\x01 \x01(\tR\vmatchString\x12!\n" + + "\fquery_string\x18\x02 \x01(\tR\vqueryString\"\x95\x05\n" + "\x06Insert\x1ay\n" + "\aRequest\x12;\n" + "\x06vector\x18\x01 \x01(\v2\x19.payload.v1.Object.VectorB\b\xbaH\x05\x92\x01\x02\b\x02R\x06vector\x121\n" + @@ -6061,11 +6443,12 @@ const file_v1_payload_payload_proto_rawDesc = "" + "vectorizer\x18\x03 \x01(\v2\x19.payload.v1.Filter.TargetR\n" + "vectorizer\x1aR\n" + "\x12MultiObjectRequest\x12<\n" + - "\brequests\x18\x01 \x03(\v2 .payload.v1.Insert.ObjectRequestR\brequests\x1a\x92\x01\n" + + "\brequests\x18\x01 \x03(\v2 .payload.v1.Insert.ObjectRequestR\brequests\x1a\xc2\x01\n" + "\x06Config\x125\n" + "\x17skip_strict_exist_check\x18\x01 \x01(\bR\x14skipStrictExistCheck\x123\n" + "\afilters\x18\x02 \x01(\v2\x19.payload.v1.Filter.ConfigR\afilters\x12\x1c\n" + - "\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\"\xfe\x05\n" + + "\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\x12.\n" + + "\aoptions\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\aoptions\"\xfe\x05\n" + "\x06Update\x1ay\n" + "\aRequest\x12;\n" + "\x06vector\x18\x01 \x01(\v2\x19.payload.v1.Object.VectorB\b\xbaH\x05\x92\x01\x02\b\x02R\x06vector\x121\n" + @@ -6400,208 +6783,221 @@ 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, 103) +var file_v1_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 110) var 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 (*Search)(nil), // 2: payload.v1.Search (*Filter)(nil), // 3: payload.v1.Filter - (*Insert)(nil), // 4: payload.v1.Insert - (*Update)(nil), // 5: payload.v1.Update - (*Upsert)(nil), // 6: payload.v1.Upsert - (*Remove)(nil), // 7: payload.v1.Remove - (*Flush)(nil), // 8: payload.v1.Flush - (*Object)(nil), // 9: payload.v1.Object - (*Control)(nil), // 10: payload.v1.Control - (*Discoverer)(nil), // 11: payload.v1.Discoverer - (*Info)(nil), // 12: payload.v1.Info - (*Mirror)(nil), // 13: payload.v1.Mirror - (*Meta)(nil), // 14: payload.v1.Meta - (*Empty)(nil), // 15: payload.v1.Empty - (*Search_Request)(nil), // 16: payload.v1.Search.Request - (*Search_MultiRequest)(nil), // 17: payload.v1.Search.MultiRequest - (*Search_IDRequest)(nil), // 18: payload.v1.Search.IDRequest - (*Search_MultiIDRequest)(nil), // 19: payload.v1.Search.MultiIDRequest - (*Search_ObjectRequest)(nil), // 20: payload.v1.Search.ObjectRequest - (*Search_MultiObjectRequest)(nil), // 21: payload.v1.Search.MultiObjectRequest - (*Search_Config)(nil), // 22: payload.v1.Search.Config - (*Search_Response)(nil), // 23: payload.v1.Search.Response - (*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_ResourceStats)(nil), // 72: payload.v1.Info.ResourceStats - (*Info_CgroupStats)(nil), // 73: payload.v1.Info.CgroupStats - (*Info_Pod)(nil), // 74: payload.v1.Info.Pod - (*Info_Node)(nil), // 75: payload.v1.Info.Node - (*Info_Service)(nil), // 76: payload.v1.Info.Service - (*Info_ServicePort)(nil), // 77: payload.v1.Info.ServicePort - (*Info_Labels)(nil), // 78: payload.v1.Info.Labels - (*Info_Annotations)(nil), // 79: payload.v1.Info.Annotations - (*Info_CPU)(nil), // 80: payload.v1.Info.CPU - (*Info_Memory)(nil), // 81: payload.v1.Info.Memory - (*Info_Pods)(nil), // 82: payload.v1.Info.Pods - (*Info_Nodes)(nil), // 83: payload.v1.Info.Nodes - (*Info_Services)(nil), // 84: payload.v1.Info.Services - (*Info_IPs)(nil), // 85: payload.v1.Info.IPs - (*Info_Index_Count)(nil), // 86: payload.v1.Info.Index.Count - (*Info_Index_Detail)(nil), // 87: payload.v1.Info.Index.Detail - (*Info_Index_UUID)(nil), // 88: payload.v1.Info.Index.UUID - (*Info_Index_Statistics)(nil), // 89: payload.v1.Info.Index.Statistics - (*Info_Index_StatisticsDetail)(nil), // 90: payload.v1.Info.Index.StatisticsDetail - (*Info_Index_Property)(nil), // 91: payload.v1.Info.Index.Property - (*Info_Index_PropertyDetail)(nil), // 92: payload.v1.Info.Index.PropertyDetail - nil, // 93: payload.v1.Info.Index.Detail.CountsEntry - (*Info_Index_UUID_Committed)(nil), // 94: payload.v1.Info.Index.UUID.Committed - (*Info_Index_UUID_Uncommitted)(nil), // 95: payload.v1.Info.Index.UUID.Uncommitted - nil, // 96: payload.v1.Info.Index.StatisticsDetail.DetailsEntry - nil, // 97: payload.v1.Info.Index.PropertyDetail.DetailsEntry - nil, // 98: payload.v1.Info.Labels.LabelsEntry - nil, // 99: payload.v1.Info.Annotations.AnnotationsEntry - (*Mirror_Target)(nil), // 100: payload.v1.Mirror.Target - (*Mirror_Targets)(nil), // 101: payload.v1.Mirror.Targets - (*Meta_Key)(nil), // 102: payload.v1.Meta.Key - (*Meta_Value)(nil), // 103: payload.v1.Meta.Value - (*Meta_KeyValue)(nil), // 104: payload.v1.Meta.KeyValue - (*wrapperspb.FloatValue)(nil), // 105: google.protobuf.FloatValue - (*status.Status)(nil), // 106: google.rpc.Status - (*anypb.Any)(nil), // 107: google.protobuf.Any + (*ZVec)(nil), // 4: payload.v1.ZVec + (*Insert)(nil), // 5: payload.v1.Insert + (*Update)(nil), // 6: payload.v1.Update + (*Upsert)(nil), // 7: payload.v1.Upsert + (*Remove)(nil), // 8: payload.v1.Remove + (*Flush)(nil), // 9: payload.v1.Flush + (*Object)(nil), // 10: payload.v1.Object + (*Control)(nil), // 11: payload.v1.Control + (*Discoverer)(nil), // 12: payload.v1.Discoverer + (*Info)(nil), // 13: payload.v1.Info + (*Mirror)(nil), // 14: payload.v1.Mirror + (*Meta)(nil), // 15: payload.v1.Meta + (*Empty)(nil), // 16: payload.v1.Empty + (*Search_Request)(nil), // 17: payload.v1.Search.Request + (*Search_MultiRequest)(nil), // 18: payload.v1.Search.MultiRequest + (*Search_IDRequest)(nil), // 19: payload.v1.Search.IDRequest + (*Search_MultiIDRequest)(nil), // 20: payload.v1.Search.MultiIDRequest + (*Search_ObjectRequest)(nil), // 21: payload.v1.Search.ObjectRequest + (*Search_MultiObjectRequest)(nil), // 22: payload.v1.Search.MultiObjectRequest + (*Search_Config)(nil), // 23: payload.v1.Search.Config + (*Search_Response)(nil), // 24: payload.v1.Search.Response + (*Search_Responses)(nil), // 25: payload.v1.Search.Responses + (*Search_StreamResponse)(nil), // 26: payload.v1.Search.StreamResponse + (*Filter_Target)(nil), // 27: payload.v1.Filter.Target + (*Filter_Config)(nil), // 28: payload.v1.Filter.Config + (*ZVec_DocumentOptions)(nil), // 29: payload.v1.ZVec.DocumentOptions + (*ZVec_SearchOptions)(nil), // 30: payload.v1.ZVec.SearchOptions + (*ZVec_Query)(nil), // 31: payload.v1.ZVec.Query + (*ZVec_Vector)(nil), // 32: payload.v1.ZVec.Vector + (*ZVec_FTS)(nil), // 33: payload.v1.ZVec.FTS + nil, // 34: payload.v1.ZVec.DocumentOptions.FieldsEntry + (*Insert_Request)(nil), // 35: payload.v1.Insert.Request + (*Insert_MultiRequest)(nil), // 36: payload.v1.Insert.MultiRequest + (*Insert_ObjectRequest)(nil), // 37: payload.v1.Insert.ObjectRequest + (*Insert_MultiObjectRequest)(nil), // 38: payload.v1.Insert.MultiObjectRequest + (*Insert_Config)(nil), // 39: payload.v1.Insert.Config + (*Update_Request)(nil), // 40: payload.v1.Update.Request + (*Update_MultiRequest)(nil), // 41: payload.v1.Update.MultiRequest + (*Update_ObjectRequest)(nil), // 42: payload.v1.Update.ObjectRequest + (*Update_MultiObjectRequest)(nil), // 43: payload.v1.Update.MultiObjectRequest + (*Update_TimestampRequest)(nil), // 44: payload.v1.Update.TimestampRequest + (*Update_Config)(nil), // 45: payload.v1.Update.Config + (*Upsert_Request)(nil), // 46: payload.v1.Upsert.Request + (*Upsert_MultiRequest)(nil), // 47: payload.v1.Upsert.MultiRequest + (*Upsert_ObjectRequest)(nil), // 48: payload.v1.Upsert.ObjectRequest + (*Upsert_MultiObjectRequest)(nil), // 49: payload.v1.Upsert.MultiObjectRequest + (*Upsert_Config)(nil), // 50: payload.v1.Upsert.Config + (*Remove_Request)(nil), // 51: payload.v1.Remove.Request + (*Remove_MultiRequest)(nil), // 52: payload.v1.Remove.MultiRequest + (*Remove_TimestampRequest)(nil), // 53: payload.v1.Remove.TimestampRequest + (*Remove_Timestamp)(nil), // 54: payload.v1.Remove.Timestamp + (*Remove_Config)(nil), // 55: payload.v1.Remove.Config + (*Flush_Request)(nil), // 56: payload.v1.Flush.Request + (*Object_VectorRequest)(nil), // 57: payload.v1.Object.VectorRequest + (*Object_Distance)(nil), // 58: payload.v1.Object.Distance + (*Object_StreamDistance)(nil), // 59: payload.v1.Object.StreamDistance + (*Object_ID)(nil), // 60: payload.v1.Object.ID + (*Object_IDs)(nil), // 61: payload.v1.Object.IDs + (*Object_Vector)(nil), // 62: payload.v1.Object.Vector + (*Object_TimestampRequest)(nil), // 63: payload.v1.Object.TimestampRequest + (*Object_Timestamp)(nil), // 64: payload.v1.Object.Timestamp + (*Object_Vectors)(nil), // 65: payload.v1.Object.Vectors + (*Object_StreamVector)(nil), // 66: payload.v1.Object.StreamVector + (*Object_ReshapeVector)(nil), // 67: payload.v1.Object.ReshapeVector + (*Object_Blob)(nil), // 68: payload.v1.Object.Blob + (*Object_StreamBlob)(nil), // 69: payload.v1.Object.StreamBlob + (*Object_Location)(nil), // 70: payload.v1.Object.Location + (*Object_StreamLocation)(nil), // 71: payload.v1.Object.StreamLocation + (*Object_Locations)(nil), // 72: payload.v1.Object.Locations + (*Object_List)(nil), // 73: payload.v1.Object.List + (*Object_List_Request)(nil), // 74: payload.v1.Object.List.Request + (*Object_List_Response)(nil), // 75: payload.v1.Object.List.Response + (*Control_CreateIndexRequest)(nil), // 76: payload.v1.Control.CreateIndexRequest + (*Discoverer_Request)(nil), // 77: payload.v1.Discoverer.Request + (*Info_Index)(nil), // 78: payload.v1.Info.Index + (*Info_ResourceStats)(nil), // 79: payload.v1.Info.ResourceStats + (*Info_CgroupStats)(nil), // 80: payload.v1.Info.CgroupStats + (*Info_Pod)(nil), // 81: payload.v1.Info.Pod + (*Info_Node)(nil), // 82: payload.v1.Info.Node + (*Info_Service)(nil), // 83: payload.v1.Info.Service + (*Info_ServicePort)(nil), // 84: payload.v1.Info.ServicePort + (*Info_Labels)(nil), // 85: payload.v1.Info.Labels + (*Info_Annotations)(nil), // 86: payload.v1.Info.Annotations + (*Info_CPU)(nil), // 87: payload.v1.Info.CPU + (*Info_Memory)(nil), // 88: payload.v1.Info.Memory + (*Info_Pods)(nil), // 89: payload.v1.Info.Pods + (*Info_Nodes)(nil), // 90: payload.v1.Info.Nodes + (*Info_Services)(nil), // 91: payload.v1.Info.Services + (*Info_IPs)(nil), // 92: payload.v1.Info.IPs + (*Info_Index_Count)(nil), // 93: payload.v1.Info.Index.Count + (*Info_Index_Detail)(nil), // 94: payload.v1.Info.Index.Detail + (*Info_Index_UUID)(nil), // 95: payload.v1.Info.Index.UUID + (*Info_Index_Statistics)(nil), // 96: payload.v1.Info.Index.Statistics + (*Info_Index_StatisticsDetail)(nil), // 97: payload.v1.Info.Index.StatisticsDetail + (*Info_Index_Property)(nil), // 98: payload.v1.Info.Index.Property + (*Info_Index_PropertyDetail)(nil), // 99: payload.v1.Info.Index.PropertyDetail + nil, // 100: payload.v1.Info.Index.Detail.CountsEntry + (*Info_Index_UUID_Committed)(nil), // 101: payload.v1.Info.Index.UUID.Committed + (*Info_Index_UUID_Uncommitted)(nil), // 102: payload.v1.Info.Index.UUID.Uncommitted + nil, // 103: payload.v1.Info.Index.StatisticsDetail.DetailsEntry + nil, // 104: payload.v1.Info.Index.PropertyDetail.DetailsEntry + nil, // 105: payload.v1.Info.Labels.LabelsEntry + nil, // 106: payload.v1.Info.Annotations.AnnotationsEntry + (*Mirror_Target)(nil), // 107: payload.v1.Mirror.Target + (*Mirror_Targets)(nil), // 108: payload.v1.Mirror.Targets + (*Meta_Key)(nil), // 109: payload.v1.Meta.Key + (*Meta_Value)(nil), // 110: payload.v1.Meta.Value + (*Meta_KeyValue)(nil), // 111: payload.v1.Meta.KeyValue + (*wrapperspb.FloatValue)(nil), // 112: google.protobuf.FloatValue + (*anypb.Any)(nil), // 113: google.protobuf.Any + (*status.Status)(nil), // 114: google.rpc.Status } 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 - 22, // 2: payload.v1.Search.IDRequest.config:type_name -> payload.v1.Search.Config - 18, // 3: payload.v1.Search.MultiIDRequest.requests:type_name -> payload.v1.Search.IDRequest - 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 + 23, // 0: payload.v1.Search.Request.config:type_name -> payload.v1.Search.Config + 17, // 1: payload.v1.Search.MultiRequest.requests:type_name -> payload.v1.Search.Request + 23, // 2: payload.v1.Search.IDRequest.config:type_name -> payload.v1.Search.Config + 19, // 3: payload.v1.Search.MultiIDRequest.requests:type_name -> payload.v1.Search.IDRequest + 23, // 4: payload.v1.Search.ObjectRequest.config:type_name -> payload.v1.Search.Config + 27, // 5: payload.v1.Search.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 21, // 6: payload.v1.Search.MultiObjectRequest.requests:type_name -> payload.v1.Search.ObjectRequest + 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 - 105, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue - 51, // 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 - 106, // 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 - 106, // 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 - 106, // 52: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status - 61, // 53: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob - 106, // 54: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status - 63, // 55: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location - 106, // 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 - 106, // 59: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status - 73, // 60: payload.v1.Info.ResourceStats.cgroup_stats:type_name -> payload.v1.Info.CgroupStats - 80, // 61: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU - 81, // 62: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory - 75, // 63: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node - 80, // 64: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU - 81, // 65: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory - 82, // 66: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods - 77, // 67: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort - 78, // 68: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels - 79, // 69: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations - 98, // 70: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry - 99, // 71: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry - 74, // 72: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod - 75, // 73: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node - 76, // 74: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service - 93, // 75: payload.v1.Info.Index.Detail.counts:type_name -> payload.v1.Info.Index.Detail.CountsEntry - 96, // 76: payload.v1.Info.Index.StatisticsDetail.details:type_name -> payload.v1.Info.Index.StatisticsDetail.DetailsEntry - 97, // 77: payload.v1.Info.Index.PropertyDetail.details:type_name -> payload.v1.Info.Index.PropertyDetail.DetailsEntry - 86, // 78: payload.v1.Info.Index.Detail.CountsEntry.value:type_name -> payload.v1.Info.Index.Count - 89, // 79: payload.v1.Info.Index.StatisticsDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Statistics - 91, // 80: payload.v1.Info.Index.PropertyDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Property - 100, // 81: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target - 107, // 82: payload.v1.Meta.Value.value:type_name -> google.protobuf.Any - 102, // 83: payload.v1.Meta.KeyValue.key:type_name -> payload.v1.Meta.Key - 103, // 84: payload.v1.Meta.KeyValue.value:type_name -> payload.v1.Meta.Value - 85, // [85:85] is the sub-list for method output_type - 85, // [85:85] is the sub-list for method input_type - 85, // [85:85] is the sub-list for extension type_name - 85, // [85:85] is the sub-list for extension extendee - 0, // [0:85] is the sub-list for field type_name + 112, // 10: payload.v1.Search.Config.ratio:type_name -> google.protobuf.FloatValue + 113, // 11: payload.v1.Search.Config.options:type_name -> google.protobuf.Any + 58, // 12: payload.v1.Search.Response.results:type_name -> payload.v1.Object.Distance + 24, // 13: payload.v1.Search.Responses.responses:type_name -> payload.v1.Search.Response + 24, // 14: payload.v1.Search.StreamResponse.response:type_name -> payload.v1.Search.Response + 114, // 15: payload.v1.Search.StreamResponse.status:type_name -> google.rpc.Status + 27, // 16: payload.v1.Filter.Config.targets:type_name -> payload.v1.Filter.Target + 34, // 17: payload.v1.ZVec.DocumentOptions.fields:type_name -> payload.v1.ZVec.DocumentOptions.FieldsEntry + 31, // 18: payload.v1.ZVec.SearchOptions.hybrid_queries:type_name -> payload.v1.ZVec.Query + 32, // 19: payload.v1.ZVec.Query.vector:type_name -> payload.v1.ZVec.Vector + 33, // 20: payload.v1.ZVec.Query.fts:type_name -> payload.v1.ZVec.FTS + 62, // 21: payload.v1.Insert.Request.vector:type_name -> payload.v1.Object.Vector + 39, // 22: payload.v1.Insert.Request.config:type_name -> payload.v1.Insert.Config + 35, // 23: payload.v1.Insert.MultiRequest.requests:type_name -> payload.v1.Insert.Request + 68, // 24: payload.v1.Insert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 39, // 25: payload.v1.Insert.ObjectRequest.config:type_name -> payload.v1.Insert.Config + 27, // 26: payload.v1.Insert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 37, // 27: payload.v1.Insert.MultiObjectRequest.requests:type_name -> payload.v1.Insert.ObjectRequest + 28, // 28: payload.v1.Insert.Config.filters:type_name -> payload.v1.Filter.Config + 113, // 29: payload.v1.Insert.Config.options:type_name -> google.protobuf.Any + 62, // 30: payload.v1.Update.Request.vector:type_name -> payload.v1.Object.Vector + 45, // 31: payload.v1.Update.Request.config:type_name -> payload.v1.Update.Config + 40, // 32: payload.v1.Update.MultiRequest.requests:type_name -> payload.v1.Update.Request + 68, // 33: payload.v1.Update.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 45, // 34: payload.v1.Update.ObjectRequest.config:type_name -> payload.v1.Update.Config + 27, // 35: payload.v1.Update.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 42, // 36: payload.v1.Update.MultiObjectRequest.requests:type_name -> payload.v1.Update.ObjectRequest + 28, // 37: payload.v1.Update.Config.filters:type_name -> payload.v1.Filter.Config + 62, // 38: payload.v1.Upsert.Request.vector:type_name -> payload.v1.Object.Vector + 50, // 39: payload.v1.Upsert.Request.config:type_name -> payload.v1.Upsert.Config + 46, // 40: payload.v1.Upsert.MultiRequest.requests:type_name -> payload.v1.Upsert.Request + 68, // 41: payload.v1.Upsert.ObjectRequest.object:type_name -> payload.v1.Object.Blob + 50, // 42: payload.v1.Upsert.ObjectRequest.config:type_name -> payload.v1.Upsert.Config + 27, // 43: payload.v1.Upsert.ObjectRequest.vectorizer:type_name -> payload.v1.Filter.Target + 48, // 44: payload.v1.Upsert.MultiObjectRequest.requests:type_name -> payload.v1.Upsert.ObjectRequest + 28, // 45: payload.v1.Upsert.Config.filters:type_name -> payload.v1.Filter.Config + 60, // 46: payload.v1.Remove.Request.id:type_name -> payload.v1.Object.ID + 55, // 47: payload.v1.Remove.Request.config:type_name -> payload.v1.Remove.Config + 51, // 48: payload.v1.Remove.MultiRequest.requests:type_name -> payload.v1.Remove.Request + 54, // 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 + 60, // 51: payload.v1.Object.VectorRequest.id:type_name -> payload.v1.Object.ID + 28, // 52: payload.v1.Object.VectorRequest.filters:type_name -> payload.v1.Filter.Config + 58, // 53: payload.v1.Object.StreamDistance.distance:type_name -> payload.v1.Object.Distance + 114, // 54: payload.v1.Object.StreamDistance.status:type_name -> google.rpc.Status + 60, // 55: payload.v1.Object.TimestampRequest.id:type_name -> payload.v1.Object.ID + 62, // 56: payload.v1.Object.Vectors.vectors:type_name -> payload.v1.Object.Vector + 62, // 57: payload.v1.Object.StreamVector.vector:type_name -> payload.v1.Object.Vector + 114, // 58: payload.v1.Object.StreamVector.status:type_name -> google.rpc.Status + 68, // 59: payload.v1.Object.StreamBlob.blob:type_name -> payload.v1.Object.Blob + 114, // 60: payload.v1.Object.StreamBlob.status:type_name -> google.rpc.Status + 70, // 61: payload.v1.Object.StreamLocation.location:type_name -> payload.v1.Object.Location + 114, // 62: payload.v1.Object.StreamLocation.status:type_name -> google.rpc.Status + 70, // 63: payload.v1.Object.Locations.locations:type_name -> payload.v1.Object.Location + 62, // 64: payload.v1.Object.List.Response.vector:type_name -> payload.v1.Object.Vector + 114, // 65: payload.v1.Object.List.Response.status:type_name -> google.rpc.Status + 80, // 66: payload.v1.Info.ResourceStats.cgroup_stats:type_name -> payload.v1.Info.CgroupStats + 87, // 67: payload.v1.Info.Pod.cpu:type_name -> payload.v1.Info.CPU + 88, // 68: payload.v1.Info.Pod.memory:type_name -> payload.v1.Info.Memory + 82, // 69: payload.v1.Info.Pod.node:type_name -> payload.v1.Info.Node + 87, // 70: payload.v1.Info.Node.cpu:type_name -> payload.v1.Info.CPU + 88, // 71: payload.v1.Info.Node.memory:type_name -> payload.v1.Info.Memory + 89, // 72: payload.v1.Info.Node.Pods:type_name -> payload.v1.Info.Pods + 84, // 73: payload.v1.Info.Service.ports:type_name -> payload.v1.Info.ServicePort + 85, // 74: payload.v1.Info.Service.labels:type_name -> payload.v1.Info.Labels + 86, // 75: payload.v1.Info.Service.annotations:type_name -> payload.v1.Info.Annotations + 105, // 76: payload.v1.Info.Labels.labels:type_name -> payload.v1.Info.Labels.LabelsEntry + 106, // 77: payload.v1.Info.Annotations.annotations:type_name -> payload.v1.Info.Annotations.AnnotationsEntry + 81, // 78: payload.v1.Info.Pods.pods:type_name -> payload.v1.Info.Pod + 82, // 79: payload.v1.Info.Nodes.nodes:type_name -> payload.v1.Info.Node + 83, // 80: payload.v1.Info.Services.services:type_name -> payload.v1.Info.Service + 100, // 81: payload.v1.Info.Index.Detail.counts:type_name -> payload.v1.Info.Index.Detail.CountsEntry + 103, // 82: payload.v1.Info.Index.StatisticsDetail.details:type_name -> payload.v1.Info.Index.StatisticsDetail.DetailsEntry + 104, // 83: payload.v1.Info.Index.PropertyDetail.details:type_name -> payload.v1.Info.Index.PropertyDetail.DetailsEntry + 93, // 84: payload.v1.Info.Index.Detail.CountsEntry.value:type_name -> payload.v1.Info.Index.Count + 96, // 85: payload.v1.Info.Index.StatisticsDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Statistics + 98, // 86: payload.v1.Info.Index.PropertyDetail.DetailsEntry.value:type_name -> payload.v1.Info.Index.Property + 107, // 87: payload.v1.Mirror.Targets.targets:type_name -> payload.v1.Mirror.Target + 113, // 88: payload.v1.Meta.Value.value:type_name -> google.protobuf.Any + 109, // 89: payload.v1.Meta.KeyValue.key:type_name -> payload.v1.Meta.Key + 110, // 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() } @@ -6609,27 +7005,31 @@ func file_v1_payload_payload_proto_init() { if File_v1_payload_payload_proto != nil { return } - file_v1_payload_payload_proto_msgTypes[23].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[24].OneofWrappers = []any{ (*Search_StreamResponse_Response)(nil), (*Search_StreamResponse_Status)(nil), } - file_v1_payload_payload_proto_msgTypes[50].OneofWrappers = []any{ + file_v1_payload_payload_proto_msgTypes[29].OneofWrappers = []any{ + (*ZVec_Query_Vector)(nil), + (*ZVec_Query_Fts)(nil), + } + file_v1_payload_payload_proto_msgTypes[57].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[64].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[67].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[69].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[73].OneofWrappers = []any{ (*Object_List_Response_Vector)(nil), (*Object_List_Response_Status)(nil), } @@ -6639,7 +7039,7 @@ func file_v1_payload_payload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_payload_payload_proto_rawDesc), len(file_v1_payload_payload_proto_rawDesc)), NumEnums: 2, - NumMessages: 103, + NumMessages: 110, 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 758c3a877d..c1ec337256 100644 --- a/apis/grpc/v1/payload/payload.pb.json.go +++ b/apis/grpc/v1/payload/payload.pb.json.go @@ -159,6 +159,66 @@ func (msg *Filter_Config) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{}.Unmarshal(b, msg) } +// MarshalJSON implements json.Marshaler +func (msg *ZVec) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *ZVec) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + +// MarshalJSON implements json.Marshaler +func (msg *ZVec_DocumentOptions) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *ZVec_DocumentOptions) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + +// MarshalJSON implements json.Marshaler +func (msg *ZVec_SearchOptions) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *ZVec_SearchOptions) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + +// MarshalJSON implements json.Marshaler +func (msg *ZVec_Query) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *ZVec_Query) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + +// MarshalJSON implements json.Marshaler +func (msg *ZVec_Vector) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *ZVec_Vector) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + +// MarshalJSON implements json.Marshaler +func (msg *ZVec_FTS) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{}.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *ZVec_FTS) 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 40adb20bae..10720f357e 100644 --- a/apis/grpc/v1/payload/payload_vtproto.pb.go +++ b/apis/grpc/v1/payload/payload_vtproto.pb.go @@ -188,6 +188,13 @@ func (m *Search_Config) CloneVT() *Search_Config { r.Ratio = (*wrapperspb.FloatValue)((*wrapperspb1.FloatValue)(m.Ratio).CloneVT()) r.Nprobe = m.Nprobe r.EdgeSize = m.EdgeSize + if rhs := m.Options; rhs != nil { + tmpContainer := make([]*anypb.Any, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = (*anypb.Any)((*anypb1.Any)(v).CloneVT()) + } + r.Options = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -364,6 +371,149 @@ func (m *Filter) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *ZVec_DocumentOptions) CloneVT() *ZVec_DocumentOptions { + if m == nil { + return (*ZVec_DocumentOptions)(nil) + } + r := new(ZVec_DocumentOptions) + if rhs := m.Fields; rhs != nil { + tmpContainer := make(map[string]string, len(rhs)) + maps.Copy(tmpContainer, rhs) + r.Fields = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ZVec_DocumentOptions) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ZVec_SearchOptions) CloneVT() *ZVec_SearchOptions { + if m == nil { + return (*ZVec_SearchOptions)(nil) + } + r := new(ZVec_SearchOptions) + r.PreFilter = m.PreFilter + if rhs := m.HybridQueries; rhs != nil { + tmpContainer := make([]*ZVec_Query, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.HybridQueries = tmpContainer + } + if rhs := m.HybridWeights; rhs != nil { + tmpContainer := make([]float32, len(rhs)) + copy(tmpContainer, rhs) + r.HybridWeights = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ZVec_SearchOptions) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ZVec_Query) CloneVT() *ZVec_Query { + if m == nil { + return (*ZVec_Query)(nil) + } + r := new(ZVec_Query) + r.FieldName = m.FieldName + if m.Query != nil { + r.Query = m.Query.(interface{ CloneVT() isZVec_Query_Query }).CloneVT() + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ZVec_Query) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ZVec_Query_Vector) CloneVT() isZVec_Query_Query { + if m == nil { + return (*ZVec_Query_Vector)(nil) + } + r := new(ZVec_Query_Vector) + r.Vector = m.Vector.CloneVT() + return r +} + +func (m *ZVec_Query_Fts) CloneVT() isZVec_Query_Query { + if m == nil { + return (*ZVec_Query_Fts)(nil) + } + r := new(ZVec_Query_Fts) + r.Fts = m.Fts.CloneVT() + return r +} + +func (m *ZVec_Vector) CloneVT() *ZVec_Vector { + if m == nil { + return (*ZVec_Vector)(nil) + } + r := new(ZVec_Vector) + if rhs := m.Values; rhs != nil { + tmpContainer := make([]float32, len(rhs)) + copy(tmpContainer, rhs) + r.Values = tmpContainer + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ZVec_Vector) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ZVec_FTS) CloneVT() *ZVec_FTS { + if m == nil { + return (*ZVec_FTS)(nil) + } + r := new(ZVec_FTS) + r.MatchString = m.MatchString + r.QueryString = m.QueryString + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ZVec_FTS) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ZVec) CloneVT() *ZVec { + if m == nil { + return (*ZVec)(nil) + } + r := new(ZVec) + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ZVec) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *Insert_Request) CloneVT() *Insert_Request { if m == nil { return (*Insert_Request)(nil) @@ -455,6 +605,13 @@ func (m *Insert_Config) CloneVT() *Insert_Config { r.SkipStrictExistCheck = m.SkipStrictExistCheck r.Filters = m.Filters.CloneVT() r.Timestamp = m.Timestamp + if rhs := m.Options; rhs != nil { + tmpContainer := make([]*anypb.Any, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = (*anypb.Any)((*anypb1.Any)(v).CloneVT()) + } + r.Options = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -2429,6 +2586,23 @@ func (this *Search_Config) EqualVT(that *Search_Config) bool { if this.EdgeSize != that.EdgeSize { return false } + if len(this.Options) != len(that.Options) { + return false + } + for i, vx := range this.Options { + vy := that.Options[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &anypb.Any{} + } + if q == nil { + q = &anypb.Any{} + } + if !(*anypb1.Any)(p).EqualVT((*anypb1.Any)(q)) { + return false + } + } + } return string(this.unknownFields) == string(that.unknownFields) } @@ -2687,6 +2861,227 @@ func (this *Filter) EqualMessageVT(thatMsg proto.Message) bool { return this.EqualVT(that) } +func (this *ZVec_DocumentOptions) EqualVT(that *ZVec_DocumentOptions) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Fields) != len(that.Fields) { + return false + } + for i, vx := range this.Fields { + vy, ok := that.Fields[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ZVec_DocumentOptions) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ZVec_DocumentOptions) + if !ok { + return false + } + return this.EqualVT(that) +} + +func (this *ZVec_SearchOptions) EqualVT(that *ZVec_SearchOptions) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PreFilter != that.PreFilter { + return false + } + if len(this.HybridQueries) != len(that.HybridQueries) { + return false + } + for i, vx := range this.HybridQueries { + vy := that.HybridQueries[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ZVec_Query{} + } + if q == nil { + q = &ZVec_Query{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.HybridWeights) != len(that.HybridWeights) { + return false + } + for i, vx := range this.HybridWeights { + vy := that.HybridWeights[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ZVec_SearchOptions) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ZVec_SearchOptions) + if !ok { + return false + } + return this.EqualVT(that) +} + +func (this *ZVec_Query) EqualVT(that *ZVec_Query) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Query == nil && that.Query != nil { + return false + } else if this.Query != nil { + if that.Query == nil { + return false + } + if !this.Query.(interface{ EqualVT(isZVec_Query_Query) bool }).EqualVT(that.Query) { + return false + } + } + if this.FieldName != that.FieldName { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ZVec_Query) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ZVec_Query) + if !ok { + return false + } + return this.EqualVT(that) +} + +func (this *ZVec_Query_Vector) EqualVT(thatIface isZVec_Query_Query) bool { + that, ok := thatIface.(*ZVec_Query_Vector) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if p, q := this.Vector, that.Vector; p != q { + if p == nil { + p = &ZVec_Vector{} + } + if q == nil { + q = &ZVec_Vector{} + } + if !p.EqualVT(q) { + return false + } + } + return true +} + +func (this *ZVec_Query_Fts) EqualVT(thatIface isZVec_Query_Query) bool { + that, ok := thatIface.(*ZVec_Query_Fts) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if p, q := this.Fts, that.Fts; p != q { + if p == nil { + p = &ZVec_FTS{} + } + if q == nil { + q = &ZVec_FTS{} + } + if !p.EqualVT(q) { + return false + } + } + return true +} + +func (this *ZVec_Vector) EqualVT(that *ZVec_Vector) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Values) != len(that.Values) { + return false + } + for i, vx := range this.Values { + vy := that.Values[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ZVec_Vector) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ZVec_Vector) + if !ok { + return false + } + return this.EqualVT(that) +} + +func (this *ZVec_FTS) EqualVT(that *ZVec_FTS) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.MatchString != that.MatchString { + return false + } + if this.QueryString != that.QueryString { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ZVec_FTS) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ZVec_FTS) + if !ok { + return false + } + return this.EqualVT(that) +} + +func (this *ZVec) EqualVT(that *ZVec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ZVec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ZVec) + if !ok { + return false + } + return this.EqualVT(that) +} + func (this *Insert_Request) EqualVT(that *Insert_Request) bool { if this == that { return true @@ -2819,6 +3214,23 @@ func (this *Insert_Config) EqualVT(that *Insert_Config) bool { if this.Timestamp != that.Timestamp { return false } + if len(this.Options) != len(that.Options) { + return false + } + for i, vx := range this.Options { + vy := that.Options[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &anypb.Any{} + } + if q == nil { + q = &anypb.Any{} + } + if !(*anypb1.Any)(p).EqualVT((*anypb1.Any)(q)) { + return false + } + } + } return string(this.unknownFields) == string(that.unknownFields) } @@ -5692,6 +6104,18 @@ func (m *Search_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Options) > 0 { + for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { + size, err := (*anypb1.Any)(m.Options[iNdEx]).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x6a + } + } if m.EdgeSize != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EdgeSize)) i-- @@ -6121,7 +6545,7 @@ func (m *Filter) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Insert_Request) MarshalVT() (dAtA []byte, err error) { +func (m *ZVec_DocumentOptions) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6134,12 +6558,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 *ZVec_DocumentOptions) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ZVec_DocumentOptions) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6151,30 +6575,29 @@ 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 err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Fields) > 0 { + for k := range m.Fields { + v := m.Fields[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 } - 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 *ZVec_SearchOptions) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6187,12 +6610,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 *ZVec_SearchOptions) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ZVec_SearchOptions) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6204,22 +6627,39 @@ 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.HybridWeights) > 0 { + for iNdEx := len(m.HybridWeights) - 1; iNdEx >= 0; iNdEx-- { + f1 := math.Float32bits(float32(m.HybridWeights[iNdEx])) + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.HybridWeights)*4)) + i-- + dAtA[i] = 0x1a + } + if len(m.HybridQueries) > 0 { + for iNdEx := len(m.HybridQueries) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.HybridQueries[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 } } + if len(m.PreFilter) > 0 { + i -= len(m.PreFilter) + copy(dAtA[i:], m.PreFilter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PreFilter))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *ZVec_Query) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6232,12 +6672,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 *ZVec_Query) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ZVec_Query) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6249,18 +6689,34 @@ 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 vtmsg, ok := m.Query.(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)) + } + if len(m.FieldName) > 0 { + i -= len(m.FieldName) + copy(dAtA[i:], m.FieldName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FieldName))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) + return len(dAtA) - i, nil +} + +func (m *ZVec_Query_Vector) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ZVec_Query_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 } @@ -6269,20 +6725,30 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i-- dAtA[i] = 0x12 } - if m.Object != nil { - size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) + return len(dAtA) - i, nil +} + +func (m *ZVec_Query_Fts) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ZVec_Query_Fts) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Fts != nil { + size, err := m.Fts.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a } return len(dAtA) - i, nil } -func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { +func (m *ZVec_Vector) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6295,12 +6761,12 @@ func (m *Insert_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_MultiObjectRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *ZVec_Vector) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ZVec_Vector) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6312,22 +6778,20 @@ func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, er 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 + if len(m.Values) > 0 { + for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { + f1 := math.Float32bits(float32(m.Values[iNdEx])) + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) } + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Values)*4)) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert_Config) MarshalVT() (dAtA []byte, err error) { +func (m *ZVec_FTS) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6340,12 +6804,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 *ZVec_FTS) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ZVec_FTS) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6357,13 +6821,88 @@ 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)) + if len(m.QueryString) > 0 { + i -= len(m.QueryString) + copy(dAtA[i:], m.QueryString) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.QueryString))) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x12 } - if m.Filters != nil { - size, err := m.Filters.MarshalToSizedBufferVT(dAtA[:i]) + if len(m.MatchString) > 0 { + i -= len(m.MatchString) + copy(dAtA[i:], m.MatchString) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.MatchString))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ZVec) 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 *ZVec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ZVec) 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 *Insert_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 *Insert_Request) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Insert_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 m.Config != nil { + size, err := m.Config.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6372,20 +6911,20 @@ func (m *Insert_Config) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.SkipStrictExistCheck { - i-- - if m.SkipStrictExistCheck { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + 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] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_MultiRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6398,12 +6937,12 @@ func (m *Insert) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert) MarshalToVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *Insert_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6415,10 +6954,22 @@ func (m *Insert) 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 *Update_Request) MarshalVT() (dAtA []byte, err error) { +func (m *Insert_ObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6431,12 +6982,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_ObjectRequest) 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_ObjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6448,6 +6999,16 @@ func (m *Update_Request) 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 err != nil { @@ -6458,8 +7019,8 @@ func (m *Update_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVT(dAtA[:i]) + if m.Object != nil { + size, err := m.Object.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -6471,7 +7032,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_MultiObjectRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6484,12 +7045,213 @@ 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_MultiObjectRequest) 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_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) { + 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_Config) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Insert_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 len(m.Options) > 0 { + for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { + size, err := (*anypb1.Any)(m.Options[iNdEx]).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + 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 *Insert) 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) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Insert) 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 *Update_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 *Update_Request) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Update_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 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.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 *Update_MultiRequest) 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_MultiRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Update_MultiRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -11166,6 +11928,18 @@ func (m *Search_Config) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Options) > 0 { + for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { + size, err := (*anypb1.Any)(m.Options[iNdEx]).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x6a + } + } if m.EdgeSize != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EdgeSize)) i-- @@ -11600,7 +12374,7 @@ func (m *Filter) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Insert_Request) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ZVec_DocumentOptions) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -11613,12 +12387,12 @@ func (m *Insert_Request) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Request) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_DocumentOptions) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *Insert_Request) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_DocumentOptions) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -11630,30 +12404,29 @@ func (m *Insert_Request) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } - if m.Vector != nil { - size, err := m.Vector.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Fields) > 0 { + for k := range m.Fields { + v := m.Fields[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 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert_MultiRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ZVec_SearchOptions) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -11666,12 +12439,12 @@ func (m *Insert_MultiRequest) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_MultiRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_SearchOptions) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *Insert_MultiRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_SearchOptions) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -11683,22 +12456,39 @@ func (m *Insert_MultiRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, er 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].MarshalToSizedBufferVTStrict(dAtA[:i]) + if len(m.HybridWeights) > 0 { + for iNdEx := len(m.HybridWeights) - 1; iNdEx >= 0; iNdEx-- { + f1 := math.Float32bits(float32(m.HybridWeights[iNdEx])) + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) + } + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.HybridWeights)*4)) + i-- + dAtA[i] = 0x1a + } + if len(m.HybridQueries) > 0 { + for iNdEx := len(m.HybridQueries) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.HybridQueries[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 } } + if len(m.PreFilter) > 0 { + i -= len(m.PreFilter) + copy(dAtA[i:], m.PreFilter) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PreFilter))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *Insert_ObjectRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ZVec_Query) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -11711,12 +12501,12 @@ func (m *Insert_ObjectRequest) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_ObjectRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_Query) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *Insert_ObjectRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_Query) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -11728,18 +12518,39 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, e i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Vectorizer != nil { - size, err := m.Vectorizer.MarshalToSizedBufferVTStrict(dAtA[:i]) + if msg, ok := m.Query.(*ZVec_Query_Fts); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + } + if msg, ok := m.Query.(*ZVec_Query_Vector); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.FieldName) > 0 { + i -= len(m.FieldName) + copy(dAtA[i:], m.FieldName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FieldName))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa } - if m.Config != nil { - size, err := m.Config.MarshalToSizedBufferVTStrict(dAtA[:i]) + return len(dAtA) - i, nil +} + +func (m *ZVec_Query_Vector) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ZVec_Query_Vector) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } @@ -11748,20 +12559,30 @@ func (m *Insert_ObjectRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, e i-- dAtA[i] = 0x12 } - if m.Object != nil { - size, err := m.Object.MarshalToSizedBufferVTStrict(dAtA[:i]) + return len(dAtA) - i, nil +} + +func (m *ZVec_Query_Fts) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ZVec_Query_Fts) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Fts != nil { + size, err := m.Fts.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a } return len(dAtA) - i, nil } -func (m *Insert_MultiObjectRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ZVec_Vector) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -11774,12 +12595,12 @@ func (m *Insert_MultiObjectRequest) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_MultiObjectRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_Vector) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_Vector) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -11791,22 +12612,20 @@ func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (i 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].MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + if len(m.Values) > 0 { + for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { + f1 := math.Float32bits(float32(m.Values[iNdEx])) + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(f1)) } + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Values)*4)) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Insert_Config) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ZVec_FTS) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -11819,12 +12638,12 @@ func (m *Insert_Config) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert_Config) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_FTS) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *Insert_Config) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ZVec_FTS) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -11836,35 +12655,24 @@ func (m *Insert_Config) MarshalToSizedBufferVTStrict(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.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if len(m.QueryString) > 0 { + i -= len(m.QueryString) + copy(dAtA[i:], m.QueryString) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.QueryString))) i-- dAtA[i] = 0x12 } - if m.SkipStrictExistCheck { + if len(m.MatchString) > 0 { + i -= len(m.MatchString) + copy(dAtA[i:], m.MatchString) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.MatchString))) 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) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ZVec) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -11877,12 +12685,12 @@ func (m *Insert) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Insert) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ZVec) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *Insert) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ZVec) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -11897,7 +12705,7 @@ func (m *Insert) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Update_Request) MarshalVTStrict() (dAtA []byte, err error) { +func (m *Insert_Request) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -11910,12 +12718,321 @@ func (m *Update_Request) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Update_Request) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *Update_Request) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *Insert_Request) MarshalToSizedBufferVTStrict(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.Config != nil { + size, err := m.Config.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Vector != nil { + size, err := m.Vector.MarshalToSizedBufferVTStrict(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_MultiRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Insert_MultiRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *Insert_MultiRequest) MarshalToSizedBufferVTStrict(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].MarshalToSizedBufferVTStrict(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_ObjectRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Insert_ObjectRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *Insert_ObjectRequest) MarshalToSizedBufferVTStrict(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.Vectorizer != nil { + size, err := m.Vectorizer.MarshalToSizedBufferVTStrict(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.MarshalToSizedBufferVTStrict(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.MarshalToSizedBufferVTStrict(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_MultiObjectRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Insert_MultiObjectRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *Insert_MultiObjectRequest) MarshalToSizedBufferVTStrict(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].MarshalToSizedBufferVTStrict(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) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Insert_Config) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *Insert_Config) MarshalToSizedBufferVTStrict(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.Options) > 0 { + for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { + size, err := (*anypb1.Any)(m.Options[iNdEx]).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if m.Timestamp != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if m.Filters != nil { + size, err := m.Filters.MarshalToSizedBufferVTStrict(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 *Insert) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Insert) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *Insert) MarshalToSizedBufferVTStrict(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 *Update_Request) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Update_Request) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *Update_Request) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -16493,6 +17610,12 @@ func (m *Search_Config) SizeVT() (n int) { if m.EdgeSize != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.EdgeSize)) } + if len(m.Options) > 0 { + for _, e := range m.Options { + l = (*anypb1.Any)(e).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } @@ -16631,6 +17754,131 @@ func (m *Filter) SizeVT() (n int) { return n } +func (m *ZVec_DocumentOptions) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Fields) > 0 { + for k, v := range m.Fields { + _ = k + _ = v + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ZVec_SearchOptions) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PreFilter) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.HybridQueries) > 0 { + for _, e := range m.HybridQueries { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if len(m.HybridWeights) > 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(len(m.HybridWeights)*4)) + len(m.HybridWeights)*4 + } + n += len(m.unknownFields) + return n +} + +func (m *ZVec_Query) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FieldName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if vtmsg, ok := m.Query.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *ZVec_Query_Vector) 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)) + } + return n +} + +func (m *ZVec_Query_Fts) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Fts != nil { + l = m.Fts.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + return n +} + +func (m *ZVec_Vector) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Values) > 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(len(m.Values)*4)) + len(m.Values)*4 + } + n += len(m.unknownFields) + return n +} + +func (m *ZVec_FTS) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.MatchString) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.QueryString) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ZVec) 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 @@ -16719,6 +17967,12 @@ func (m *Insert_Config) SizeVT() (n int) { if m.Timestamp != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Timestamp)) } + if len(m.Options) > 0 { + for _, e := range m.Options { + l = (*anypb1.Any)(e).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } @@ -19398,6 +20652,40 @@ func (m *Search_Config) UnmarshalVT(dAtA []byte) error { break } } + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Options", 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.Options = append(m.Options, &anypb.Any{}) + if err := (*anypb1.Any)(m.Options[len(m.Options)-1]).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -20068,7 +21356,7 @@ func (m *Filter) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Insert_Request) UnmarshalVT(dAtA []byte) error { +func (m *ZVec_DocumentOptions) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20091,15 +21379,15 @@ func (m *Insert_Request) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Insert_Request: wiretype end group for non-group") + return fmt.Errorf("proto: ZVec_DocumentOptions: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Insert_Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZVec_DocumentOptions: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20126,48 +21414,103 @@ func (m *Insert_Request) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - 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 != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + if m.Fields == nil { + m.Fields = make(map[string]string) } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := 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 + } } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - 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 = &Insert_Config{} - } - if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Fields[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -20192,7 +21535,7 @@ func (m *Insert_Request) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Insert_MultiRequest) UnmarshalVT(dAtA []byte) error { +func (m *ZVec_SearchOptions) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20215,15 +21558,47 @@ func (m *Insert_MultiRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Insert_MultiRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ZVec_SearchOptions: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Insert_MultiRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZVec_SearchOptions: 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 PreFilter", 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.PreFilter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HybridQueries", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20250,11 +21625,65 @@ func (m *Insert_MultiRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Insert_Request{}) - if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.HybridQueries = append(m.HybridQueries, &ZVec_Query{}) + if err := m.HybridQueries[len(m.HybridQueries)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 3: + 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.HybridWeights = append(m.HybridWeights, 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.HybridWeights) == 0 { + m.HybridWeights = 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.HybridWeights = append(m.HybridWeights, v2) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field HybridWeights", wireType) + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -20278,7 +21707,7 @@ func (m *Insert_MultiRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Insert_ObjectRequest) UnmarshalVT(dAtA []byte) error { +func (m *ZVec_Query) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20301,17 +21730,17 @@ func (m *Insert_ObjectRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Insert_ObjectRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ZVec_Query: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Insert_ObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZVec_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 Object", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FieldName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -20321,31 +21750,27 @@ func (m *Insert_ObjectRequest) 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.Object == nil { - m.Object = &Object_Blob{} - } - if err := m.Object.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.FieldName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20372,16 +21797,21 @@ func (m *Insert_ObjectRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Config == nil { - m.Config = &Insert_Config{} - } - if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if oneof, ok := m.Query.(*ZVec_Query_Vector); ok { + if err := oneof.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &ZVec_Vector{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Query = &ZVec_Query_Vector{Vector: v} } 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 Fts", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20408,11 +21838,16 @@ func (m *Insert_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 { - return err + if oneof, ok := m.Query.(*ZVec_Query_Fts); ok { + if err := oneof.Fts.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &ZVec_FTS{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Query = &ZVec_Query_Fts{Fts: v} } iNdEx = postIndex default: @@ -20438,7 +21873,7 @@ func (m *Insert_ObjectRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Insert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { +func (m *ZVec_Vector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20461,46 +21896,66 @@ func (m *Insert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Insert_MultiObjectRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ZVec_Vector: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Insert_MultiObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZVec_Vector: 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 wireType == 5 { + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF } - if iNdEx >= l { + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.Values = append(m.Values, 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 } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break + var elementCount int + elementCount = packedLen / 4 + if elementCount != 0 && len(m.Values) == 0 { + m.Values = 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.Values = append(m.Values, v2) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) } - 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, &Insert_ObjectRequest{}) - 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:]) @@ -20524,7 +21979,7 @@ func (m *Insert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { +func (m *ZVec_FTS) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20547,17 +22002,17 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Insert_Config: wiretype end group for non-group") + return fmt.Errorf("proto: ZVec_FTS: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Insert_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZVec_FTS: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipStrictExistCheck", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchString", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -20567,17 +22022,29 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.SkipStrictExistCheck = bool(v != 0) + 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.MatchString = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field QueryString", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -20587,47 +22054,24 @@ func (m *Insert_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.Filters == nil { - m.Filters = &Filter_Config{} - } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.QueryString = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - m.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Timestamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -20651,7 +22095,7 @@ func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Insert) UnmarshalVT(dAtA []byte) error { +func (m *ZVec) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20674,10 +22118,10 @@ func (m *Insert) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Insert: wiretype end group for non-group") + return fmt.Errorf("proto: ZVec: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Insert: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZVec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -20703,7 +22147,7 @@ func (m *Insert) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Update_Request) UnmarshalVT(dAtA []byte) error { +func (m *Insert_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20726,10 +22170,10 @@ func (m *Update_Request) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Update_Request: wiretype end group for non-group") + return fmt.Errorf("proto: Insert_Request: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Update_Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Insert_Request: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -20798,7 +22242,7 @@ func (m *Update_Request) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Config == nil { - m.Config = &Update_Config{} + m.Config = &Insert_Config{} } if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -20827,7 +22271,7 @@ func (m *Update_Request) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Update_MultiRequest) UnmarshalVT(dAtA []byte) error { +func (m *Insert_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20850,10 +22294,10 @@ func (m *Update_MultiRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Update_MultiRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Insert_MultiRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Update_MultiRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Insert_MultiRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -20885,7 +22329,7 @@ func (m *Update_MultiRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Update_Request{}) + m.Requests = append(m.Requests, &Insert_Request{}) if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -20913,7 +22357,7 @@ func (m *Update_MultiRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Update_ObjectRequest) UnmarshalVT(dAtA []byte) error { +func (m *Insert_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20936,10 +22380,10 @@ func (m *Update_ObjectRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Update_ObjectRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Insert_ObjectRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Update_ObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Insert_ObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21008,7 +22452,7 @@ func (m *Update_ObjectRequest) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Config == nil { - m.Config = &Update_Config{} + m.Config = &Insert_Config{} } if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -21073,7 +22517,7 @@ func (m *Update_ObjectRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Update_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { +func (m *Insert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21096,10 +22540,10 @@ func (m *Update_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Update_MultiObjectRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Insert_MultiObjectRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Update_MultiObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Insert_MultiObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21131,7 +22575,7 @@ func (m *Update_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Update_ObjectRequest{}) + m.Requests = append(m.Requests, &Insert_ObjectRequest{}) if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -21159,7 +22603,7 @@ func (m *Update_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Update_TimestampRequest) UnmarshalVT(dAtA []byte) error { +func (m *Insert_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21182,17 +22626,37 @@ func (m *Update_TimestampRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Update_TimestampRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Insert_Config: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Update_TimestampRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Insert_Config: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipStrictExistCheck", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SkipStrictExistCheck = bool(v != 0) + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21202,25 +22666,29 @@ func (m *Update_TimestampRequest) 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]) + if m.Filters == nil { + m.Filters = &Filter_Config{} + } + if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } @@ -21239,11 +22707,11 @@ func (m *Update_TimestampRequest) UnmarshalVT(dAtA []byte) error { break } } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21253,12 +22721,26 @@ func (m *Update_TimestampRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.Force = bool(v != 0) + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Options = append(m.Options, &anypb.Any{}) + if err := (*anypb1.Any)(m.Options[len(m.Options)-1]).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -21282,7 +22764,7 @@ func (m *Update_TimestampRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Update_Config) UnmarshalVT(dAtA []byte) error { +func (m *Insert) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21305,35 +22787,67 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Update_Config: wiretype end group for non-group") + return fmt.Errorf("proto: Insert: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Update_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Insert: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipStrictExistCheck", wireType) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - m.SkipStrictExistCheck = bool(v != 0) - case 2: + 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 *Update_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: Update_Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Update_Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21360,18 +22874,18 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} + if m.Vector == nil { + m.Vector = &Object_Vector{} } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) } - m.Timestamp = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21381,31 +22895,28 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timestamp |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DisableBalancedUpdate", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - m.DisableBalancedUpdate = bool(v != 0) + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Config == nil { + m.Config = &Update_Config{} + } + if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -21429,7 +22940,7 @@ func (m *Update_Config) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Update) UnmarshalVT(dAtA []byte) error { +func (m *Update_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21452,12 +22963,46 @@ func (m *Update) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Update: wiretype end group for non-group") + return fmt.Errorf("proto: Update_MultiRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Update_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, &Update_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:]) @@ -21481,7 +23026,7 @@ func (m *Update) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { +func (m *Update_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21504,15 +23049,15 @@ func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Upsert_Request: wiretype end group for non-group") + return fmt.Errorf("proto: Update_ObjectRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Upsert_Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Update_ObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21539,10 +23084,10 @@ func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Vector == nil { - m.Vector = &Object_Vector{} + if m.Object == nil { + m.Object = &Object_Blob{} } - if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Object.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -21576,12 +23121,48 @@ func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Config == nil { - m.Config = &Upsert_Config{} + m.Config = &Update_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) + } + 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:]) @@ -21605,7 +23186,7 @@ func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Upsert_MultiRequest) UnmarshalVT(dAtA []byte) error { +func (m *Update_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21628,10 +23209,10 @@ func (m *Upsert_MultiRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Upsert_MultiRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Update_MultiObjectRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Upsert_MultiRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Update_MultiObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21663,7 +23244,7 @@ func (m *Upsert_MultiRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Upsert_Request{}) + m.Requests = append(m.Requests, &Update_ObjectRequest{}) if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -21691,7 +23272,7 @@ func (m *Upsert_MultiRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Upsert_ObjectRequest) UnmarshalVT(dAtA []byte) error { +func (m *Update_TimestampRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21714,17 +23295,17 @@ func (m *Upsert_ObjectRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Upsert_ObjectRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Update_TimestampRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Upsert_ObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Update_TimestampRequest: 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 Id", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21734,33 +23315,29 @@ func (m *Upsert_ObjectRequest) 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.Object == nil { - m.Object = &Object_Blob{} - } - if err := m.Object.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } - var msglen int + m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21770,121 +23347,16 @@ func (m *Upsert_ObjectRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Timestamp |= int64(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 = &Upsert_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) - } - 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:]) - 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 *Upsert_MultiObjectRequest) 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: Upsert_MultiObjectRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Upsert_MultiObjectRequest: 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) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -21894,26 +23366,12 @@ func (m *Upsert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= 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, &Upsert_ObjectRequest{}) - if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.Force = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -21937,7 +23395,7 @@ func (m *Upsert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { +func (m *Update_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21960,10 +23418,10 @@ func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Upsert_Config: wiretype end group for non-group") + return fmt.Errorf("proto: Update_Config: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Upsert_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Update_Config: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22084,7 +23542,7 @@ func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Upsert) UnmarshalVT(dAtA []byte) error { +func (m *Update) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22107,10 +23565,10 @@ func (m *Upsert) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Upsert: wiretype end group for non-group") + return fmt.Errorf("proto: Update: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Upsert: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -22136,7 +23594,7 @@ func (m *Upsert) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { +func (m *Upsert_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22159,15 +23617,15 @@ func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Remove_Request: wiretype end group for non-group") + return fmt.Errorf("proto: Upsert_Request: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Remove_Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Upsert_Request: 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) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -22194,10 +23652,10 @@ func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Id == nil { - m.Id = &Object_ID{} + if m.Vector == nil { + m.Vector = &Object_Vector{} } - if err := m.Id.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -22231,7 +23689,7 @@ func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Config == nil { - m.Config = &Remove_Config{} + m.Config = &Upsert_Config{} } if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -22260,7 +23718,7 @@ func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Remove_MultiRequest) UnmarshalVT(dAtA []byte) error { +func (m *Upsert_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22283,10 +23741,10 @@ func (m *Remove_MultiRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Remove_MultiRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Upsert_MultiRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Remove_MultiRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Upsert_MultiRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22318,7 +23776,7 @@ func (m *Remove_MultiRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Remove_Request{}) + m.Requests = append(m.Requests, &Upsert_Request{}) if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -22346,7 +23804,7 @@ func (m *Remove_MultiRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Remove_TimestampRequest) UnmarshalVT(dAtA []byte) error { +func (m *Upsert_ObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22369,15 +23827,15 @@ func (m *Remove_TimestampRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Remove_TimestampRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Upsert_ObjectRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Remove_TimestampRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Upsert_ObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamps", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -22404,8 +23862,82 @@ func (m *Remove_TimestampRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Timestamps = append(m.Timestamps, &Remove_Timestamp{}) - if err := m.Timestamps[len(m.Timestamps)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Object == nil { + m.Object = &Object_Blob{} + } + if err := m.Object.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + 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 = &Upsert_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) + } + 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 @@ -22432,7 +23964,7 @@ func (m *Remove_TimestampRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Remove_Timestamp) UnmarshalVT(dAtA []byte) error { +func (m *Upsert_MultiObjectRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22455,17 +23987,17 @@ func (m *Remove_Timestamp) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Remove_Timestamp: wiretype end group for non-group") + return fmt.Errorf("proto: Upsert_MultiObjectRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Remove_Timestamp: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Upsert_MultiObjectRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) } - m.Timestamp = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22475,30 +24007,26 @@ func (m *Remove_Timestamp) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timestamp |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - m.Operator = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Operator |= Remove_Timestamp_Operator(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, &Upsert_ObjectRequest{}) + 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:]) @@ -22522,7 +24050,7 @@ func (m *Remove_Timestamp) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Remove_Config) UnmarshalVT(dAtA []byte) error { +func (m *Upsert_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22545,10 +24073,10 @@ func (m *Remove_Config) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Remove_Config: wiretype end group for non-group") + return fmt.Errorf("proto: Upsert_Config: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Remove_Config: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Upsert_Config: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22571,11 +24099,11 @@ func (m *Remove_Config) UnmarshalVT(dAtA []byte) error { } } m.SkipStrictExistCheck = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) } - m.Timestamp = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22585,115 +24113,67 @@ func (m *Remove_Config) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timestamp |= int64(b&0x7F) << shift + msglen |= int(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 { + if msglen < 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 *Remove) 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 + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Filters == nil { + m.Filters = &Filter_Config{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Remove: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Remove: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { + if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *Flush_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 + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisableBalancedUpdate", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Flush_Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Flush_Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + m.DisableBalancedUpdate = bool(v != 0) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -22717,7 +24197,7 @@ func (m *Flush_Request) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Flush) UnmarshalVT(dAtA []byte) error { +func (m *Upsert) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22740,10 +24220,10 @@ func (m *Flush) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Flush: wiretype end group for non-group") + return fmt.Errorf("proto: Upsert: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Flush: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Upsert: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -22769,7 +24249,7 @@ func (m *Flush) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { +func (m *Remove_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22792,10 +24272,10 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_VectorRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Remove_Request: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_VectorRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Remove_Request: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22836,7 +24316,7 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -22863,10 +24343,10 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Filters == nil { - m.Filters = &Filter_Config{} + if m.Config == nil { + m.Config = &Remove_Config{} } - if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Config.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -22893,7 +24373,7 @@ func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_Distance) UnmarshalVT(dAtA []byte) error { +func (m *Remove_MultiRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22916,17 +24396,17 @@ func (m *Object_Distance) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_Distance: wiretype end group for non-group") + return fmt.Errorf("proto: Remove_MultiRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_Distance: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Remove_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 Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -22936,35 +24416,26 @@ func (m *Object_Distance) 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]) - iNdEx = postIndex - case 2: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF + m.Requests = append(m.Requests, &Remove_Request{}) + if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.Distance = float32(math.Float32frombits(v)) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -22988,7 +24459,7 @@ func (m *Object_Distance) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_StreamDistance) UnmarshalVT(dAtA []byte) error { +func (m *Remove_TimestampRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23011,15 +24482,15 @@ func (m *Object_StreamDistance) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_StreamDistance: wiretype end group for non-group") + return fmt.Errorf("proto: Remove_TimestampRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_StreamDistance: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Remove_TimestampRequest: 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) + return fmt.Errorf("proto: wrong wireType = %d for field Timestamps", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23046,73 +24517,9 @@ func (m *Object_StreamDistance) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Object_StreamDistance_Distance); ok { - if err := oneof.Distance.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - v := &Object_Distance{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Payload = &Object_StreamDistance_Distance{Distance: 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.(*Object_StreamDistance_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 = &Object_StreamDistance_Status{Status: v} + m.Timestamps = append(m.Timestamps, &Remove_Timestamp{}) + if err := m.Timestamps[len(m.Timestamps)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -23138,7 +24545,7 @@ func (m *Object_StreamDistance) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_ID) UnmarshalVT(dAtA []byte) error { +func (m *Remove_Timestamp) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23161,17 +24568,17 @@ func (m *Object_ID) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_ID: wiretype end group for non-group") + return fmt.Errorf("proto: Remove_Timestamp: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_ID: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Remove_Timestamp: 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) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } - var stringLen uint64 + m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23181,24 +24588,30 @@ func (m *Object_ID) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.Timestamp |= int64(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 + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + m.Operator = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Operator |= Remove_Timestamp_Operator(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -23222,7 +24635,7 @@ func (m *Object_ID) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_IDs) UnmarshalVT(dAtA []byte) error { +func (m *Remove_Config) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23245,17 +24658,17 @@ func (m *Object_IDs) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_IDs: wiretype end group for non-group") + return fmt.Errorf("proto: Remove_Config: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_IDs: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Remove_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 Ids", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipStrictExistCheck", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23265,24 +24678,31 @@ func (m *Object_IDs) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(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 + m.SkipStrictExistCheck = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -23306,7 +24726,7 @@ func (m *Object_IDs) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_Vector) UnmarshalVT(dAtA []byte) error { +func (m *Remove) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23329,117 +24749,64 @@ func (m *Object_Vector) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_Vector: wiretype end group for non-group") + return fmt.Errorf("proto: Remove: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_Vector: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Remove: 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 + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - 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) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Flush_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 } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.Timestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Timestamp |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + 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: Flush_Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Flush_Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -23463,7 +24830,7 @@ func (m *Object_Vector) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_TimestampRequest) UnmarshalVT(dAtA []byte) error { +func (m *Flush) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23486,48 +24853,12 @@ func (m *Object_TimestampRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_TimestampRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Flush: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_TimestampRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Flush: 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 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.Id == nil { - m.Id = &Object_ID{} - } - if err := m.Id.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -23551,7 +24882,7 @@ func (m *Object_TimestampRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_Timestamp) UnmarshalVT(dAtA []byte) error { +func (m *Object_VectorRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23574,17 +24905,17 @@ func (m *Object_Timestamp) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_Timestamp: wiretype end group for non-group") + return fmt.Errorf("proto: Object_VectorRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_Timestamp: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_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 Id", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23594,29 +24925,33 @@ func (m *Object_Timestamp) 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]) + if m.Id == nil { + m.Id = &Object_ID{} + } + if err := m.Id.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) } - m.Timestamp = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23626,11 +24961,28 @@ func (m *Object_Timestamp) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timestamp |= int64(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.Filters == nil { + m.Filters = &Filter_Config{} + } + if err := m.Filters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -23654,7 +25006,7 @@ func (m *Object_Timestamp) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_Vectors) UnmarshalVT(dAtA []byte) error { +func (m *Object_Distance) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23677,17 +25029,17 @@ func (m *Object_Vectors) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_Vectors: wiretype end group for non-group") + return fmt.Errorf("proto: Object_Distance: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_Vectors: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_Distance: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vectors", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23697,26 +25049,35 @@ func (m *Object_Vectors) 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 } - m.Vectors = append(m.Vectors, &Object_Vector{}) - if err := m.Vectors[len(m.Vectors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Distance = float32(math.Float32frombits(v)) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -23740,7 +25101,7 @@ func (m *Object_Vectors) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { +func (m *Object_StreamDistance) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23763,15 +25124,15 @@ func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_StreamVector: wiretype end group for non-group") + return fmt.Errorf("proto: Object_StreamDistance: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_StreamVector: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_StreamDistance: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Distance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23798,16 +25159,16 @@ func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Object_StreamVector_Vector); ok { - if err := oneof.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if oneof, ok := m.Payload.(*Object_StreamDistance_Distance); ok { + if err := oneof.Distance.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } } else { - v := &Object_Vector{} + v := &Object_Distance{} if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Payload = &Object_StreamVector_Vector{Vector: v} + m.Payload = &Object_StreamDistance_Distance{Distance: v} } iNdEx = postIndex case 2: @@ -23839,7 +25200,7 @@ func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Object_StreamVector_Status); ok { + if oneof, ok := m.Payload.(*Object_StreamDistance_Status); ok { if unmarshal, ok := any(oneof.Status).(interface { UnmarshalVT([]byte) error }); ok { @@ -23864,7 +25225,7 @@ func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { return err } } - m.Payload = &Object_StreamVector_Status{Status: v} + m.Payload = &Object_StreamDistance_Status{Status: v} } iNdEx = postIndex default: @@ -23890,7 +25251,7 @@ func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_ReshapeVector) UnmarshalVT(dAtA []byte) error { +func (m *Object_ID) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23913,17 +25274,17 @@ func (m *Object_ReshapeVector) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_ReshapeVector: wiretype end group for non-group") + return fmt.Errorf("proto: Object_ID: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_ReshapeVector: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_ID: 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 Id", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -23933,102 +25294,24 @@ func (m *Object_ReshapeVector) 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.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType == 0 { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Shape = append(m.Shape, v) - } 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 - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Shape) == 0 { - m.Shape = make([]int32, 0, elementCount) - } - for iNdEx < postIndex { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Shape = append(m.Shape, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Shape", wireType) - } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -24052,7 +25335,7 @@ func (m *Object_ReshapeVector) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_Blob) UnmarshalVT(dAtA []byte) error { +func (m *Object_IDs) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24075,15 +25358,15 @@ func (m *Object_Blob) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_Blob: wiretype end group for non-group") + return fmt.Errorf("proto: Object_IDs: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_Blob: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_IDs: 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) + return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -24111,41 +25394,7 @@ func (m *Object_Blob) UnmarshalVT(dAtA []byte) error { 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 Object", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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{} - } + m.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -24170,7 +25419,7 @@ func (m *Object_Blob) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_StreamBlob) UnmarshalVT(dAtA []byte) error { +func (m *Object_Vector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24193,17 +25442,17 @@ func (m *Object_StreamBlob) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_StreamBlob: wiretype end group for non-group") + return fmt.Errorf("proto: Object_Vector: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_StreamBlob: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_Vector: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -24213,38 +25462,83 @@ func (m *Object_StreamBlob) 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 oneof, ok := m.Payload.(*Object_StreamBlob_Blob); ok { - if err := oneof.Blob.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType == 5 { + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF } - } else { - v := &Object_Blob{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + 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 + } } - m.Payload = &Object_StreamBlob_Blob{Blob: v} + 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) } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } - var msglen int + m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -24254,49 +25548,11 @@ func (m *Object_StreamBlob) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Timestamp |= int64(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.(*Object_StreamBlob_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 = &Object_StreamBlob_Status{Status: v} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -24320,7 +25576,7 @@ func (m *Object_StreamBlob) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_Location) UnmarshalVT(dAtA []byte) error { +func (m *Object_TimestampRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24343,49 +25599,17 @@ func (m *Object_Location) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_Location: wiretype end group for non-group") + return fmt.Errorf("proto: Object_TimestampRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_Location: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_TimestampRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -24395,55 +25619,27 @@ func (m *Object_Location) 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.Uuid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ips", 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 m.Id == nil { + m.Id = &Object_ID{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Id.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Ips = append(m.Ips, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -24468,7 +25664,7 @@ func (m *Object_Location) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_StreamLocation) UnmarshalVT(dAtA []byte) error { +func (m *Object_Timestamp) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24491,17 +25687,17 @@ func (m *Object_StreamLocation) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_StreamLocation: wiretype end group for non-group") + return fmt.Errorf("proto: Object_Timestamp: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_StreamLocation: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_Timestamp: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -24511,38 +25707,29 @@ func (m *Object_StreamLocation) 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 oneof, ok := m.Payload.(*Object_StreamLocation_Location); ok { - if err := oneof.Location.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - v := &Object_Location{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Payload = &Object_StreamLocation_Location{Location: v} - } + m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } - var msglen int + m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -24552,49 +25739,11 @@ func (m *Object_StreamLocation) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Timestamp |= int64(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.(*Object_StreamLocation_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 = &Object_StreamLocation_Status{Status: v} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -24618,7 +25767,7 @@ func (m *Object_StreamLocation) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_Locations) UnmarshalVT(dAtA []byte) error { +func (m *Object_Vectors) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24641,15 +25790,15 @@ func (m *Object_Locations) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_Locations: wiretype end group for non-group") + return fmt.Errorf("proto: Object_Vectors: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_Locations: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_Vectors: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Locations", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vectors", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24676,8 +25825,8 @@ func (m *Object_Locations) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Locations = append(m.Locations, &Object_Location{}) - if err := m.Locations[len(m.Locations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Vectors = append(m.Vectors, &Object_Vector{}) + if err := m.Vectors[len(m.Vectors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -24704,59 +25853,7 @@ func (m *Object_Locations) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_List_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: Object_List_Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Object_List_Request: 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 *Object_List_Response) UnmarshalVT(dAtA []byte) error { +func (m *Object_StreamVector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24779,10 +25876,10 @@ func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_List_Response: wiretype end group for non-group") + return fmt.Errorf("proto: Object_StreamVector: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_List_Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_StreamVector: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -24814,7 +25911,7 @@ func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Object_List_Response_Vector); ok { + if oneof, ok := m.Payload.(*Object_StreamVector_Vector); ok { if err := oneof.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -24823,7 +25920,7 @@ func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Payload = &Object_List_Response_Vector{Vector: v} + m.Payload = &Object_StreamVector_Vector{Vector: v} } iNdEx = postIndex case 2: @@ -24855,7 +25952,7 @@ func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Object_List_Response_Status); ok { + if oneof, ok := m.Payload.(*Object_StreamVector_Status); ok { if unmarshal, ok := any(oneof.Status).(interface { UnmarshalVT([]byte) error }); ok { @@ -24880,7 +25977,7 @@ func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { return err } } - m.Payload = &Object_List_Response_Status{Status: v} + m.Payload = &Object_StreamVector_Status{Status: v} } iNdEx = postIndex default: @@ -24906,7 +26003,7 @@ func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Object_List) UnmarshalVT(dAtA []byte) error { +func (m *Object_ReshapeVector) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24929,64 +26026,122 @@ func (m *Object_List) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object_List: wiretype end group for non-group") + return fmt.Errorf("proto: Object_ReshapeVector: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object_List: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_ReshapeVector: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if byteLen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *Object) 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 + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Object = append(m.Object[:0], dAtA[iNdEx:postIndex]...) + if m.Object == nil { + m.Object = []byte{} + } + iNdEx = postIndex + case 2: + if wireType == 0 { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Shape = append(m.Shape, v) + } 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 + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Shape) == 0 { + m.Shape = make([]int32, 0, elementCount) + } + for iNdEx < postIndex { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Shape = append(m.Shape, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Shape", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Object: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Object: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25010,7 +26165,7 @@ func (m *Object) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Control_CreateIndexRequest) UnmarshalVT(dAtA []byte) error { +func (m *Object_Blob) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25033,17 +26188,17 @@ func (m *Control_CreateIndexRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Control_CreateIndexRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Object_Blob: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Control_CreateIndexRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_Blob: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PoolSize", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - m.PoolSize = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25053,11 +26208,58 @@ func (m *Control_CreateIndexRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PoolSize |= uint32(b&0x7F) << shift + 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 Object", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + 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 default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25081,7 +26283,7 @@ func (m *Control_CreateIndexRequest) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Control) UnmarshalVT(dAtA []byte) error { +func (m *Object_StreamBlob) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25104,12 +26306,110 @@ func (m *Control) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Control: wiretype end group for non-group") + return fmt.Errorf("proto: Object_StreamBlob: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Control: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_StreamBlob: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Blob", 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.(*Object_StreamBlob_Blob); ok { + if err := oneof.Blob.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &Object_Blob{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamBlob_Blob{Blob: 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.(*Object_StreamBlob_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 = &Object_StreamBlob_Status{Status: v} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25133,7 +26433,7 @@ func (m *Control) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { +func (m *Object_Location) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25156,10 +26456,10 @@ func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Discoverer_Request: wiretype end group for non-group") + return fmt.Errorf("proto: Object_Location: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Discoverer_Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_Location: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -25196,7 +26496,7 @@ func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -25224,11 +26524,11 @@ func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Namespace = string(dAtA[iNdEx:postIndex]) + m.Uuid = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ips", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -25256,7 +26556,7 @@ func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Node = string(dAtA[iNdEx:postIndex]) + m.Ips = append(m.Ips, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -25281,7 +26581,7 @@ func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Discoverer) UnmarshalVT(dAtA []byte) error { +func (m *Object_StreamLocation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25304,12 +26604,110 @@ func (m *Discoverer) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Discoverer: wiretype end group for non-group") + return fmt.Errorf("proto: Object_StreamLocation: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Discoverer: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_StreamLocation: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Location", 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.(*Object_StreamLocation_Location); ok { + if err := oneof.Location.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &Object_Location{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_StreamLocation_Location{Location: 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.(*Object_StreamLocation_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 = &Object_StreamLocation_Status{Status: v} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25333,7 +26731,7 @@ func (m *Discoverer) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Index_Count) UnmarshalVT(dAtA []byte) error { +func (m *Object_Locations) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25356,17 +26754,17 @@ func (m *Info_Index_Count) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Index_Count: wiretype end group for non-group") + return fmt.Errorf("proto: Object_Locations: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index_Count: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_Locations: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stored", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Locations", wireType) } - m.Stored = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25376,70 +26774,78 @@ func (m *Info_Index_Count) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Stored |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Uncommitted", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - m.Uncommitted = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Uncommitted |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Indexing", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.Locations = append(m.Locations, &Object_Location{}) + if err := m.Locations[len(m.Locations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Indexing = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Saving", wireType) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - m.Saving = bool(v != 0) + 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 *Object_List_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: Object_List_Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Object_List_Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25463,7 +26869,7 @@ func (m *Info_Index_Count) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Index_Detail) UnmarshalVT(dAtA []byte) error { +func (m *Object_List_Response) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25486,15 +26892,15 @@ func (m *Info_Index_Detail) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Index_Detail: wiretype end group for non-group") + return fmt.Errorf("proto: Object_List_Response: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index_Detail: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_List_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 Counts", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -25521,111 +26927,23 @@ func (m *Info_Index_Detail) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Counts == nil { - m.Counts = make(map[string]*Info_Index_Count) + if oneof, ok := m.Payload.(*Object_List_Response_Vector); ok { + if err := oneof.Vector.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &Object_Vector{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Object_List_Response_Vector{Vector: v} } - var mapkey string - var mapvalue *Info_Index_Count - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Info_Index_Count{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Counts[mapkey] = mapvalue iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replica", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - m.Replica = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25635,30 +26953,49 @@ func (m *Info_Index_Detail) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Replica |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LiveAgents", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - m.LiveAgents = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if oneof, ok := m.Payload.(*Object_List_Response_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++ - m.LiveAgents |= uint32(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 = &Object_List_Response_Status{Status: v} } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25682,7 +27019,7 @@ func (m *Info_Index_Detail) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Index_UUID_Committed) UnmarshalVT(dAtA []byte) error { +func (m *Object_List) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25705,44 +27042,64 @@ func (m *Info_Index_UUID_Committed) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Index_UUID_Committed: wiretype end group for non-group") + return fmt.Errorf("proto: Object_List: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index_UUID_Committed: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Object_List: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", 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 - } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Object) 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 } - m.Uuid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + 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: Object: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Object: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25766,7 +27123,7 @@ func (m *Info_Index_UUID_Committed) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Index_UUID_Uncommitted) UnmarshalVT(dAtA []byte) error { +func (m *Control_CreateIndexRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25789,17 +27146,17 @@ func (m *Info_Index_UUID_Uncommitted) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Index_UUID_Uncommitted: wiretype end group for non-group") + return fmt.Errorf("proto: Control_CreateIndexRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index_UUID_Uncommitted: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Control_CreateIndexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolSize", wireType) } - var stringLen uint64 + m.PoolSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25809,24 +27166,11 @@ func (m *Info_Index_UUID_Uncommitted) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.PoolSize |= uint32(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.Uuid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -25850,7 +27194,7 @@ func (m *Info_Index_UUID_Uncommitted) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Index_UUID) UnmarshalVT(dAtA []byte) error { +func (m *Control) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25873,10 +27217,10 @@ func (m *Info_Index_UUID) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Index_UUID: wiretype end group for non-group") + return fmt.Errorf("proto: Control: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index_UUID: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Control: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -25902,7 +27246,7 @@ func (m *Info_Index_UUID) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { +func (m *Discoverer_Request) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25925,17 +27269,17 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Index_Statistics: wiretype end group for non-group") + return fmt.Errorf("proto: Discoverer_Request: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index_Statistics: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Discoverer_Request: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var v int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25945,17 +27289,29 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.Valid = bool(v != 0) + 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.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MedianIndegree", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } - m.MedianIndegree = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25965,16 +27321,29 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MedianIndegree |= int32(b&0x7F) << shift + 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.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MedianOutdegree", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) } - m.MedianOutdegree = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -25984,54 +27353,133 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MedianOutdegree |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxNumberOfIndegree", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.MaxNumberOfIndegree = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxNumberOfIndegree |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxNumberOfOutdegree", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - m.MaxNumberOfOutdegree = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxNumberOfOutdegree |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + m.Node = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - case 6: + 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 *Discoverer) 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: Discoverer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Discoverer: 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 *Info_Index_Count) 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: Info_Index_Count: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_Count: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinNumberOfIndegree", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Stored", wireType) } - m.MinNumberOfIndegree = 0 + m.Stored = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26041,16 +27489,16 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinNumberOfIndegree |= uint64(b&0x7F) << shift + m.Stored |= uint32(b&0x7F) << shift if b < 0x80 { break } } - case 7: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinNumberOfOutdegree", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Uncommitted", wireType) } - m.MinNumberOfOutdegree = 0 + m.Uncommitted = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26060,16 +27508,16 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinNumberOfOutdegree |= uint64(b&0x7F) << shift + m.Uncommitted |= uint32(b&0x7F) << shift if b < 0x80 { break } } - case 8: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ModeIndegree", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Indexing", wireType) } - m.ModeIndegree = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26079,16 +27527,17 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ModeIndegree |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 9: + m.Indexing = bool(v != 0) + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ModeOutdegree", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Saving", wireType) } - m.ModeOutdegree = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26098,18 +27547,1462 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ModeOutdegree |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodesSkippedFor10Edges", wireType) + m.Saving = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - m.NodesSkippedFor10Edges = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { + 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 *Info_Index_Detail) 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: Info_Index_Detail: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_Detail: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counts", 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.Counts == nil { + m.Counts = make(map[string]*Info_Index_Count) + } + var mapkey string + var mapvalue *Info_Index_Count + for iNdEx < postIndex { + entryPreIndex := 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) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Info_Index_Count{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Counts[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replica", wireType) + } + m.Replica = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Replica |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LiveAgents", wireType) + } + m.LiveAgents = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LiveAgents |= uint32(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 *Info_Index_UUID_Committed) 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: Info_Index_UUID_Committed: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_UUID_Committed: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", 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.Uuid = string(dAtA[iNdEx:postIndex]) + 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 *Info_Index_UUID_Uncommitted) 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: Info_Index_UUID_Uncommitted: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_UUID_Uncommitted: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", 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.Uuid = string(dAtA[iNdEx:postIndex]) + 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 *Info_Index_UUID) 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: Info_Index_UUID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_UUID: 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 *Info_Index_Statistics) 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: Info_Index_Statistics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_Statistics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Valid = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MedianIndegree", wireType) + } + m.MedianIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MedianIndegree |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MedianOutdegree", wireType) + } + m.MedianOutdegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MedianOutdegree |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxNumberOfIndegree", wireType) + } + m.MaxNumberOfIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxNumberOfIndegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxNumberOfOutdegree", wireType) + } + m.MaxNumberOfOutdegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxNumberOfOutdegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinNumberOfIndegree", wireType) + } + m.MinNumberOfIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinNumberOfIndegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinNumberOfOutdegree", wireType) + } + m.MinNumberOfOutdegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinNumberOfOutdegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModeIndegree", wireType) + } + m.ModeIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ModeIndegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModeOutdegree", wireType) + } + m.ModeOutdegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ModeOutdegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodesSkippedFor10Edges", wireType) + } + m.NodesSkippedFor10Edges = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodesSkippedFor10Edges |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodesSkippedForIndegreeDistance", wireType) + } + m.NodesSkippedForIndegreeDistance = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodesSkippedForIndegreeDistance |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfEdges", wireType) + } + m.NumberOfEdges = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfEdges |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfIndexedObjects", wireType) + } + m.NumberOfIndexedObjects = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfIndexedObjects |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfNodes", wireType) + } + m.NumberOfNodes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfNodes |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfNodesWithoutEdges", wireType) + } + m.NumberOfNodesWithoutEdges = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfNodesWithoutEdges |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfNodesWithoutIndegree", wireType) + } + m.NumberOfNodesWithoutIndegree = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfNodesWithoutIndegree |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfObjects", wireType) + } + m.NumberOfObjects = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfObjects |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfRemovedObjects", wireType) + } + m.NumberOfRemovedObjects = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfRemovedObjects |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SizeOfObjectRepository", wireType) + } + m.SizeOfObjectRepository = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SizeOfObjectRepository |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SizeOfRefinementObjectRepository", wireType) + } + m.SizeOfRefinementObjectRepository = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SizeOfRefinementObjectRepository |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 21: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field VarianceOfIndegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.VarianceOfIndegree = float64(math.Float64frombits(v)) + case 22: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field VarianceOfOutdegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.VarianceOfOutdegree = float64(math.Float64frombits(v)) + case 23: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MeanEdgeLength", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.MeanEdgeLength = float64(math.Float64frombits(v)) + case 24: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MeanEdgeLengthFor10Edges", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.MeanEdgeLengthFor10Edges = float64(math.Float64frombits(v)) + case 25: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MeanIndegreeDistanceFor10Edges", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.MeanIndegreeDistanceFor10Edges = float64(math.Float64frombits(v)) + case 26: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MeanNumberOfEdgesPerNode", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.MeanNumberOfEdgesPerNode = float64(math.Float64frombits(v)) + case 27: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field C1Indegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.C1Indegree = float64(math.Float64frombits(v)) + case 28: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field C5Indegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.C5Indegree = float64(math.Float64frombits(v)) + case 29: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field C95Outdegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.C95Outdegree = float64(math.Float64frombits(v)) + case 30: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field C99Outdegree", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.C99Outdegree = float64(math.Float64frombits(v)) + case 31: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IndegreeCount = append(m.IndegreeCount, v) + } 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 + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.IndegreeCount) == 0 { + m.IndegreeCount = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IndegreeCount = append(m.IndegreeCount, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field IndegreeCount", wireType) + } + case 32: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutdegreeHistogram = append(m.OutdegreeHistogram, v) + } 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 + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.OutdegreeHistogram) == 0 { + m.OutdegreeHistogram = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutdegreeHistogram = append(m.OutdegreeHistogram, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field OutdegreeHistogram", wireType) + } + case 33: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IndegreeHistogram = append(m.IndegreeHistogram, v) + } 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 + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.IndegreeHistogram) == 0 { + m.IndegreeHistogram = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IndegreeHistogram = append(m.IndegreeHistogram, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field IndegreeHistogram", wireType) + } + 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 *Info_Index_StatisticsDetail) 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: Info_Index_StatisticsDetail: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_StatisticsDetail: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Details", 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.Details == nil { + m.Details = make(map[string]*Info_Index_Statistics) + } + var mapkey string + var mapvalue *Info_Index_Statistics + for iNdEx < postIndex { + entryPreIndex := 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) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Info_Index_Statistics{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Details[mapkey] = mapvalue + 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 *Info_Index_Property) 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: Info_Index_Property: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index_Property: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dimension", wireType) + } + m.Dimension = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { @@ -26117,16 +29010,465 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodesSkippedFor10Edges |= uint64(b&0x7F) << shift + m.Dimension |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ThreadPoolSize", wireType) + } + m.ThreadPoolSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ThreadPoolSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectType", 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.ObjectType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistanceType", 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.DistanceType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IndexType", 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.IndexType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseType", 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.DatabaseType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectAlignment", 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.ObjectAlignment = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathAdjustmentInterval", wireType) + } + m.PathAdjustmentInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PathAdjustmentInterval |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GraphSharedMemorySize", wireType) + } + m.GraphSharedMemorySize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GraphSharedMemorySize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TreeSharedMemorySize", wireType) + } + m.TreeSharedMemorySize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TreeSharedMemorySize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectSharedMemorySize", wireType) + } + m.ObjectSharedMemorySize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ObjectSharedMemorySize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefetchOffset", wireType) + } + m.PrefetchOffset = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PrefetchOffset |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefetchSize", wireType) + } + m.PrefetchSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PrefetchSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccuracyTable", 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.AccuracyTable = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SearchType", 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.SearchType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxMagnitude", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.MaxMagnitude = float32(math.Float32frombits(v)) + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NOfNeighborsForInsertionOrder", wireType) + } + m.NOfNeighborsForInsertionOrder = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NOfNeighborsForInsertionOrder |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 18: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field EpsilonForInsertionOrder", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.EpsilonForInsertionOrder = float32(math.Float32frombits(v)) + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefinementObjectType", 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.RefinementObjectType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TruncationThreshold", wireType) + } + m.TruncationThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TruncationThreshold |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 11: + case 21: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodesSkippedForIndegreeDistance", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EdgeSizeForCreation", wireType) } - m.NodesSkippedForIndegreeDistance = 0 + m.EdgeSizeForCreation = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26136,16 +29478,16 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodesSkippedForIndegreeDistance |= uint64(b&0x7F) << shift + m.EdgeSizeForCreation |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 12: + case 22: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfEdges", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EdgeSizeForSearch", wireType) } - m.NumberOfEdges = 0 + m.EdgeSizeForSearch = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26155,16 +29497,16 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumberOfEdges |= uint64(b&0x7F) << shift + m.EdgeSizeForSearch |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 13: + case 23: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfIndexedObjects", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EdgeSizeLimitForCreation", wireType) } - m.NumberOfIndexedObjects = 0 + m.EdgeSizeLimitForCreation = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26174,16 +29516,27 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumberOfIndexedObjects |= uint64(b&0x7F) << shift + m.EdgeSizeLimitForCreation |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 14: + case 24: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field InsertionRadiusCoefficient", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.InsertionRadiusCoefficient = float64(math.Float64frombits(v)) + case 25: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfNodes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SeedSize", wireType) } - m.NumberOfNodes = 0 + m.SeedSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26193,16 +29546,16 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumberOfNodes |= uint64(b&0x7F) << shift + m.SeedSize |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfNodesWithoutEdges", wireType) + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SeedType", wireType) } - m.NumberOfNodesWithoutEdges = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26212,16 +29565,29 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumberOfNodesWithoutEdges |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 16: + 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.SeedType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 27: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfNodesWithoutIndegree", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TruncationThreadPoolSize", wireType) } - m.NumberOfNodesWithoutIndegree = 0 + m.TruncationThreadPoolSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26231,16 +29597,16 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumberOfNodesWithoutIndegree |= uint64(b&0x7F) << shift + m.TruncationThreadPoolSize |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 17: + case 28: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfObjects", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BatchSizeForCreation", wireType) } - m.NumberOfObjects = 0 + m.BatchSizeForCreation = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26250,16 +29616,16 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumberOfObjects |= uint64(b&0x7F) << shift + m.BatchSizeForCreation |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfRemovedObjects", wireType) + case 29: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GraphType", wireType) } - m.NumberOfRemovedObjects = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26269,16 +29635,29 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NumberOfRemovedObjects |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 19: + 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.GraphType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 30: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SizeOfObjectRepository", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DynamicEdgeSizeBase", wireType) } - m.SizeOfObjectRepository = 0 + m.DynamicEdgeSizeBase = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26288,16 +29667,16 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SizeOfObjectRepository |= uint64(b&0x7F) << shift + m.DynamicEdgeSizeBase |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 20: + case 31: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SizeOfRefinementObjectRepository", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DynamicEdgeSizeRate", wireType) } - m.SizeOfRefinementObjectRepository = 0 + m.DynamicEdgeSizeRate = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26307,349 +29686,71 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SizeOfRefinementObjectRepository |= uint64(b&0x7F) << shift + m.DynamicEdgeSizeRate |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 21: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field VarianceOfIndegree", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.VarianceOfIndegree = float64(math.Float64frombits(v)) - case 22: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field VarianceOfOutdegree", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.VarianceOfOutdegree = float64(math.Float64frombits(v)) - case 23: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field MeanEdgeLength", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.MeanEdgeLength = float64(math.Float64frombits(v)) - case 24: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field MeanEdgeLengthFor10Edges", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.MeanEdgeLengthFor10Edges = float64(math.Float64frombits(v)) - case 25: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field MeanIndegreeDistanceFor10Edges", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.MeanIndegreeDistanceFor10Edges = float64(math.Float64frombits(v)) - case 26: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field MeanNumberOfEdgesPerNode", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.MeanNumberOfEdgesPerNode = float64(math.Float64frombits(v)) - case 27: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field C1Indegree", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.C1Indegree = float64(math.Float64frombits(v)) - case 28: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field C5Indegree", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.C5Indegree = float64(math.Float64frombits(v)) - case 29: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field C95Outdegree", wireType) + case 32: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field BuildTimeLimit", wireType) } - var v uint64 - if (iNdEx + 8) > l { + var v uint32 + if (iNdEx + 4) > l { return io.ErrUnexpectedEOF } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.C95Outdegree = float64(math.Float64frombits(v)) - case 30: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field C99Outdegree", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.BuildTimeLimit = float32(math.Float32frombits(v)) + case 33: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutgoingEdge", wireType) } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.C99Outdegree = float64(math.Float64frombits(v)) - case 31: - if wireType == 0 { - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IndegreeCount = append(m.IndegreeCount, v) - } 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 + m.OutgoingEdge = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.IndegreeCount) == 0 { - m.IndegreeCount = make([]int64, 0, elementCount) - } - for iNdEx < postIndex { - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IndegreeCount = append(m.IndegreeCount, v) + b := dAtA[iNdEx] + iNdEx++ + m.OutgoingEdge |= int32(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field IndegreeCount", wireType) } - case 32: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.OutdegreeHistogram = append(m.OutdegreeHistogram, v) - } 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 - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.OutdegreeHistogram) == 0 { - m.OutdegreeHistogram = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.OutdegreeHistogram = append(m.OutdegreeHistogram, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field OutdegreeHistogram", wireType) + case 34: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncomingEdge", wireType) } - case 33: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IndegreeHistogram = append(m.IndegreeHistogram, v) - } 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 + m.IncomingEdge = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.IndegreeHistogram) == 0 { - m.IndegreeHistogram = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IndegreeHistogram = append(m.IndegreeHistogram, v) + b := dAtA[iNdEx] + iNdEx++ + m.IncomingEdge |= int32(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field IndegreeHistogram", wireType) } + case 35: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field EpsilonForCreation", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.EpsilonForCreation = float32(math.Float32frombits(v)) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -26673,7 +29774,7 @@ func (m *Info_Index_Statistics) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Index_StatisticsDetail) UnmarshalVT(dAtA []byte) error { +func (m *Info_Index_PropertyDetail) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26696,10 +29797,10 @@ func (m *Info_Index_StatisticsDetail) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Index_StatisticsDetail: wiretype end group for non-group") + return fmt.Errorf("proto: Info_Index_PropertyDetail: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index_StatisticsDetail: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Info_Index_PropertyDetail: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -26732,10 +29833,10 @@ func (m *Info_Index_StatisticsDetail) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Details == nil { - m.Details = make(map[string]*Info_Index_Statistics) + m.Details = make(map[string]*Info_Index_Property) } var mapkey string - var mapvalue *Info_Index_Statistics + var mapvalue *Info_Index_Property for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -26809,7 +29910,7 @@ func (m *Info_Index_StatisticsDetail) UnmarshalVT(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &Info_Index_Statistics{} + mapvalue = &Info_Index_Property{} if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -26829,8 +29930,60 @@ func (m *Info_Index_StatisticsDetail) UnmarshalVT(dAtA []byte) error { iNdEx += skippy } } - m.Details[mapkey] = mapvalue - iNdEx = postIndex + m.Details[mapkey] = mapvalue + 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 *Info_Index) 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: Info_Index: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Index: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -26854,7 +30007,7 @@ func (m *Info_Index_StatisticsDetail) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { +func (m *Info_ResourceStats) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26877,53 +30030,15 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Index_Property: wiretype end group for non-group") + return fmt.Errorf("proto: Info_ResourceStats: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index_Property: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Info_ResourceStats: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Dimension", wireType) - } - m.Dimension = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Dimension |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ThreadPoolSize", wireType) - } - m.ThreadPoolSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ThreadPoolSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -26951,11 +30066,11 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ObjectType = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistanceType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -26983,13 +30098,13 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DistanceType = string(dAtA[iNdEx:postIndex]) + m.Ip = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IndexType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CgroupStats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -26999,112 +30114,107 @@ func (m *Info_Index_Property) 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.IndexType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DatabaseType", wireType) + if m.CgroupStats == nil { + m.CgroupStats = &Info_CgroupStats{} } - 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 err := m.CgroupStats.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.DatabaseType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectAlignment", wireType) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Info_CgroupStats) 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 } - 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 iNdEx >= l { + return io.ErrUnexpectedEOF } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Info_CgroupStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_CgroupStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuLimitCores", wireType) } - if postIndex > l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - m.ObjectAlignment = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PathAdjustmentInterval", wireType) + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.CpuLimitCores = float64(math.Float64frombits(v)) + case 2: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsageCores", wireType) } - m.PathAdjustmentInterval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PathAdjustmentInterval |= int32(b&0x7F) << shift - if b < 0x80 { - break - } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } - case 9: + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.CpuUsageCores = float64(math.Float64frombits(v)) + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GraphSharedMemorySize", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MemoryLimitBytes", wireType) } - m.GraphSharedMemorySize = 0 + m.MemoryLimitBytes = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27114,16 +30224,16 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GraphSharedMemorySize |= int32(b&0x7F) << shift + m.MemoryLimitBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 10: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TreeSharedMemorySize", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MemoryUsageBytes", wireType) } - m.TreeSharedMemorySize = 0 + m.MemoryUsageBytes = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27133,71 +30243,66 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TreeSharedMemorySize |= int32(b&0x7F) << shift + m.MemoryUsageBytes |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectSharedMemorySize", wireType) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - m.ObjectSharedMemorySize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObjectSharedMemorySize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PrefetchOffset", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - m.PrefetchOffset = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PrefetchOffset |= int32(b&0x7F) << shift - if b < 0x80 { - break - } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Info_Pod) 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 } - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PrefetchSize", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.PrefetchSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PrefetchSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 14: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Info_Pod: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Pod: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccuracyTable", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27225,11 +30330,11 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AccuracyTable = string(dAtA[iNdEx:postIndex]) + m.AppName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 15: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SearchType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27257,52 +30362,11 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SearchType = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 16: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxMagnitude", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.MaxMagnitude = float32(math.Float32frombits(v)) - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NOfNeighborsForInsertionOrder", wireType) - } - m.NOfNeighborsForInsertionOrder = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NOfNeighborsForInsertionOrder |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 18: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field EpsilonForInsertionOrder", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.EpsilonForInsertionOrder = float32(math.Float32frombits(v)) - case 19: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RefinementObjectType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27328,102 +30392,15 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { return protohelpers.ErrInvalidLength } if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RefinementObjectType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 20: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TruncationThreshold", wireType) - } - m.TruncationThreshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TruncationThreshold |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 21: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EdgeSizeForCreation", wireType) - } - m.EdgeSizeForCreation = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EdgeSizeForCreation |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 22: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EdgeSizeForSearch", wireType) - } - m.EdgeSizeForSearch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EdgeSizeForSearch |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 23: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EdgeSizeLimitForCreation", wireType) - } - m.EdgeSizeLimitForCreation = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EdgeSizeLimitForCreation |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 24: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field InsertionRadiusCoefficient", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.InsertionRadiusCoefficient = float64(math.Float64frombits(v)) - case 25: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SeedSize", wireType) + return io.ErrUnexpectedEOF } - m.SeedSize = 0 + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27433,16 +30410,29 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SeedSize |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 26: + 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.Ip = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SeedType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27452,29 +30442,33 @@ func (m *Info_Index_Property) 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.SeedType = string(dAtA[iNdEx:postIndex]) + if m.Cpu == nil { + m.Cpu = &Info_CPU{} + } + if err := m.Cpu.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 27: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TruncationThreadPoolSize", wireType) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType) } - m.TruncationThreadPoolSize = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27484,16 +30478,33 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TruncationThreadPoolSize |= int32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 28: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BatchSizeForCreation", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - m.BatchSizeForCreation = 0 + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Memory == nil { + m.Memory = &Info_Memory{} + } + if err := m.Memory.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27503,14 +30514,83 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BatchSizeForCreation |= int32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 29: + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Node == nil { + m.Node = &Info_Node{} + } + if err := m.Node.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 *Info_Node) 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: Info_Node: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Node: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GraphType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27538,13 +30618,13 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.GraphType = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 30: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DynamicEdgeSizeBase", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InternalAddr", wireType) } - m.DynamicEdgeSizeBase = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27554,16 +30634,29 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DynamicEdgeSizeBase |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 31: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DynamicEdgeSizeRate", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.DynamicEdgeSizeRate = 0 + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InternalAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalAddr", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27573,27 +30666,29 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DynamicEdgeSizeRate |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 32: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field BuildTimeLimit", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - var v uint32 - if (iNdEx + 4) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.BuildTimeLimit = float32(math.Float32frombits(v)) - case 33: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OutgoingEdge", wireType) + m.ExternalAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType) } - m.OutgoingEdge = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27603,16 +30698,33 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OutgoingEdge |= int32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 34: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncomingEdge", wireType) + if msglen < 0 { + return protohelpers.ErrInvalidLength } - m.IncomingEdge = 0 + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cpu == nil { + m.Cpu = &Info_CPU{} + } + if err := m.Cpu.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27622,77 +30734,31 @@ func (m *Info_Index_Property) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.IncomingEdge |= int32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 35: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field EpsilonForCreation", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.EpsilonForCreation = float32(math.Float32frombits(v)) - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return protohelpers.ErrInvalidLength } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + if postIndex > 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 *Info_Index_PropertyDetail) 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.Memory == nil { + m.Memory = &Info_Memory{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.Memory.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Info_Index_PropertyDetail: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index_PropertyDetail: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27719,105 +30785,12 @@ func (m *Info_Index_PropertyDetail) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Details == nil { - m.Details = make(map[string]*Info_Index_Property) + if m.Pods == nil { + m.Pods = &Info_Pods{} } - var mapkey string - var mapvalue *Info_Index_Property - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Info_Index_Property{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := m.Pods.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Details[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -27842,7 +30815,7 @@ func (m *Info_Index_PropertyDetail) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Index) UnmarshalVT(dAtA []byte) error { +func (m *Info_Service) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27865,67 +30838,79 @@ func (m *Info_Index) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Index: wiretype end group for non-group") + return fmt.Errorf("proto: Info_Service: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Index: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Info_Service: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + 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 (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *Info_ResourceStats) 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 + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIp", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Info_ResourceStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Info_ResourceStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + 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.ClusterIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIps", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27953,13 +30938,13 @@ func (m *Info_ResourceStats) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.ClusterIps = append(m.ClusterIps, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -27969,27 +30954,29 @@ func (m *Info_ResourceStats) 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.Ip = string(dAtA[iNdEx:postIndex]) + m.Ports = append(m.Ports, &Info_ServicePort{}) + if err := m.Ports[len(m.Ports)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CgroupStats", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -28016,10 +31003,46 @@ func (m *Info_ResourceStats) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CgroupStats == nil { - m.CgroupStats = &Info_CgroupStats{} + if m.Labels == nil { + m.Labels = &Info_Labels{} } - if err := m.CgroupStats.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Labels.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Annotations", 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.Annotations == nil { + m.Annotations = &Info_Annotations{} + } + if err := m.Annotations.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -28046,7 +31069,7 @@ func (m *Info_ResourceStats) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_CgroupStats) UnmarshalVT(dAtA []byte) error { +func (m *Info_ServicePort) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28069,39 +31092,17 @@ func (m *Info_CgroupStats) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_CgroupStats: wiretype end group for non-group") + return fmt.Errorf("proto: Info_ServicePort: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_CgroupStats: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Info_ServicePort: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuLimitCores", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.CpuLimitCores = float64(math.Float64frombits(v)) - case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuUsageCores", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.CpuUsageCores = float64(math.Float64frombits(v)) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryLimitBytes", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - m.MemoryLimitBytes = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28111,16 +31112,29 @@ func (m *Info_CgroupStats) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MemoryLimitBytes |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 4: + 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.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryUsageBytes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) } - m.MemoryUsageBytes = 0 + m.Port = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28130,7 +31144,7 @@ func (m *Info_CgroupStats) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MemoryUsageBytes |= uint64(b&0x7F) << shift + m.Port |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -28158,7 +31172,7 @@ func (m *Info_CgroupStats) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Pod) UnmarshalVT(dAtA []byte) error { +func (m *Info_Labels) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28181,49 +31195,17 @@ func (m *Info_Pod) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Pod: wiretype end group for non-group") + return fmt.Errorf("proto: Info_Labels: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Pod: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Info_Labels: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AppName", 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.AppName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -28233,127 +31215,174 @@ func (m *Info_Pod) 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + if m.Labels == nil { + m.Labels = make(map[string]string) } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := 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 + } } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - 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.Namespace = string(dAtA[iNdEx:postIndex]) + m.Labels[mapkey] = mapvalue iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ip", 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 + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Ip = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cpu", 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 + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Info_Annotations) 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 postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.Cpu == nil { - m.Cpu = &Info_CPU{} - } - if err := m.Cpu.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 6: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Info_Annotations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Annotations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -28380,48 +31409,103 @@ func (m *Info_Pod) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Memory == nil { - m.Memory = &Info_Memory{} - } - if err := m.Memory.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) + if m.Annotations == nil { + m.Annotations = make(map[string]string) } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := 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 + } } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Node == nil { - m.Node = &Info_Node{} - } - if err := m.Node.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Annotations[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -28446,7 +31530,7 @@ func (m *Info_Pod) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Node) UnmarshalVT(dAtA []byte) error { +func (m *Info_CPU) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28469,181 +31553,183 @@ func (m *Info_Node) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Node: wiretype end group for non-group") + return fmt.Errorf("proto: Info_CPU: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Node: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Info_CPU: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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 wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } - if postIndex > l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Limit = float64(math.Float64frombits(v)) case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InternalAddr", 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 wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - if postIndex > l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - m.InternalAddr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Request = float64(math.Float64frombits(v)) case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalAddr", wireType) + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Usage", 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 - } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Usage = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ExternalAddr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Info_Memory) 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 } - 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 iNdEx >= l { + return io.ErrUnexpectedEOF } - if msglen < 0 { - return protohelpers.ErrInvalidLength + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Info_Memory: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Memory: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } - if postIndex > l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - if m.Cpu == nil { - m.Cpu = &Info_CPU{} + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Limit = float64(math.Float64frombits(v)) + case 2: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - if err := m.Cpu.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType) + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Request = float64(math.Float64frombits(v)) + case 3: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Usage", 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 - } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } - if msglen < 0 { - return protohelpers.ErrInvalidLength + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Usage = float64(math.Float64frombits(v)) + 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 } - if m.Memory == nil { - m.Memory = &Info_Memory{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Info_Pods) 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 err := m.Memory.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 6: + 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: Info_Pods: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Pods: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) } @@ -28672,10 +31758,8 @@ func (m *Info_Node) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pods == nil { - m.Pods = &Info_Pods{} - } - if err := m.Pods.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Pods = append(m.Pods, &Info_Pod{}) + if err := m.Pods[len(m.Pods)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -28702,7 +31786,7 @@ func (m *Info_Node) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Service) UnmarshalVT(dAtA []byte) error { +func (m *Info_Nodes) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28725,111 +31809,15 @@ func (m *Info_Service) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Service: wiretype end group for non-group") + return fmt.Errorf("proto: Info_Nodes: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Service: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Info_Nodes: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIp", 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.ClusterIp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIps", 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.ClusterIps = append(m.ClusterIps, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -28856,50 +31844,66 @@ func (m *Info_Service) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Ports = append(m.Ports, &Info_ServicePort{}) - if err := m.Ports[len(m.Ports)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Nodes = append(m.Nodes, &Info_Node{}) + if err := m.Nodes[len(m.Nodes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", 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 + 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 } - if m.Labels == nil { - m.Labels = &Info_Labels{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Info_Services) 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 err := m.Labels.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 6: + 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: Info_Services: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info_Services: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Services", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -28926,10 +31930,8 @@ func (m *Info_Service) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Annotations == nil { - m.Annotations = &Info_Annotations{} - } - if err := m.Annotations.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Services = append(m.Services, &Info_Service{}) + if err := m.Services[len(m.Services)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -28956,7 +31958,7 @@ func (m *Info_Service) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_ServicePort) UnmarshalVT(dAtA []byte) error { +func (m *Info_IPs) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28979,15 +31981,15 @@ func (m *Info_ServicePort) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_ServicePort: wiretype end group for non-group") + return fmt.Errorf("proto: Info_IPs: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_ServicePort: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Info_IPs: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -29015,27 +32017,8 @@ func (m *Info_ServicePort) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Ip = append(m.Ip, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - 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 |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -29059,7 +32042,7 @@ func (m *Info_ServicePort) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Labels) UnmarshalVT(dAtA []byte) error { +func (m *Info) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29082,139 +32065,12 @@ func (m *Info_Labels) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Labels: wiretype end group for non-group") + return fmt.Errorf("proto: Info: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Labels: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", 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.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -29238,7 +32094,7 @@ func (m *Info_Labels) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Annotations) UnmarshalVT(dAtA []byte) error { +func (m *Mirror_Target) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29261,17 +32117,17 @@ func (m *Info_Annotations) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Annotations: wiretype end group for non-group") + return fmt.Errorf("proto: Mirror_Target: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Annotations: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Mirror_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 Annotations", 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 @@ -29281,119 +32137,43 @@ func (m *Info_Annotations) 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.Annotations == nil { - m.Annotations = make(map[string]string) + m.Host = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := 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 - } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= uint32(b&0x7F) << shift + if b < 0x80 { + break } } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -29417,7 +32197,7 @@ func (m *Info_Annotations) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_CPU) UnmarshalVT(dAtA []byte) error { +func (m *Mirror_Targets) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29440,45 +32220,46 @@ func (m *Info_CPU) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_CPU: wiretype end group for non-group") + return fmt.Errorf("proto: Mirror_Targets: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_CPU: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Mirror_Targets: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Limit = float64(math.Float64frombits(v)) - case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", 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 + } } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF + if msglen < 0 { + return protohelpers.ErrInvalidLength } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Request = float64(math.Float64frombits(v)) - case 3: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType) + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - var v uint64 - if (iNdEx + 8) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Usage = float64(math.Float64frombits(v)) + m.Targets = append(m.Targets, &Mirror_Target{}) + if err := m.Targets[len(m.Targets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -29502,7 +32283,7 @@ func (m *Info_CPU) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Memory) UnmarshalVT(dAtA []byte) error { +func (m *Mirror) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29525,45 +32306,12 @@ func (m *Info_Memory) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Memory: wiretype end group for non-group") + return fmt.Errorf("proto: Mirror: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Memory: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Mirror: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Limit = float64(math.Float64frombits(v)) - case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Request = float64(math.Float64frombits(v)) - case 3: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Usage = float64(math.Float64frombits(v)) default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -29587,7 +32335,7 @@ func (m *Info_Memory) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Pods) UnmarshalVT(dAtA []byte) error { +func (m *Meta_Key) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29610,17 +32358,17 @@ func (m *Info_Pods) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Pods: wiretype end group for non-group") + return fmt.Errorf("proto: Meta_Key: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Pods: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Meta_Key: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -29630,25 +32378,23 @@ func (m *Info_Pods) 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 } - m.Pods = append(m.Pods, &Info_Pod{}) - if err := m.Pods[len(m.Pods)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Key = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -29673,7 +32419,7 @@ func (m *Info_Pods) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Nodes) UnmarshalVT(dAtA []byte) error { +func (m *Meta_Value) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29696,15 +32442,15 @@ func (m *Info_Nodes) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Nodes: wiretype end group for non-group") + return fmt.Errorf("proto: Meta_Value: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Nodes: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Meta_Value: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29731,8 +32477,10 @@ func (m *Info_Nodes) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Nodes = append(m.Nodes, &Info_Node{}) - if err := m.Nodes[len(m.Nodes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Value == nil { + m.Value = &anypb.Any{} + } + if err := (*anypb1.Any)(m.Value).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -29759,7 +32507,7 @@ func (m *Info_Nodes) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_Services) UnmarshalVT(dAtA []byte) error { +func (m *Meta_KeyValue) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29782,15 +32530,15 @@ func (m *Info_Services) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_Services: wiretype end group for non-group") + return fmt.Errorf("proto: Meta_KeyValue: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_Services: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Meta_KeyValue: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Services", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29817,8 +32565,46 @@ func (m *Info_Services) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Services = append(m.Services, &Info_Service{}) - if err := m.Services[len(m.Services)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if m.Key == nil { + m.Key = &Meta_Key{} + } + if err := m.Key.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value == nil { + m.Value = &Meta_Value{} + } + if err := m.Value.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -29845,7 +32631,7 @@ func (m *Info_Services) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info_IPs) UnmarshalVT(dAtA []byte) error { +func (m *Meta) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29868,44 +32654,12 @@ func (m *Info_IPs) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info_IPs: wiretype end group for non-group") + return fmt.Errorf("proto: Meta: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info_IPs: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Meta: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ip", 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.Ip = append(m.Ip, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -29929,7 +32683,7 @@ func (m *Info_IPs) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Info) UnmarshalVT(dAtA []byte) error { +func (m *Empty) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29952,10 +32706,10 @@ func (m *Info) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Info: wiretype end group for non-group") + return fmt.Errorf("proto: Empty: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Empty: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -29981,7 +32735,7 @@ func (m *Info) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Mirror_Target) UnmarshalVT(dAtA []byte) error { +func (m *Search_Request) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30004,17 +32758,71 @@ func (m *Mirror_Target) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Mirror_Target: wiretype end group for non-group") + return fmt.Errorf("proto: Search_Request: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Mirror_Target: illegal tag %d (wire type %d)", fieldNum, wire) + 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 Host", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30024,43 +32832,28 @@ func (m *Mirror_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]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + if m.Config == nil { + m.Config = &Search_Config{} } - 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 - } + if err := m.Config.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -30084,7 +32877,7 @@ func (m *Mirror_Target) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Mirror_Targets) UnmarshalVT(dAtA []byte) error { +func (m *Search_MultiRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30107,15 +32900,15 @@ func (m *Mirror_Targets) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Mirror_Targets: wiretype end group for non-group") + return fmt.Errorf("proto: Search_MultiRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Mirror_Targets: illegal tag %d (wire type %d)", fieldNum, wire) + 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 Targets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30142,8 +32935,8 @@ func (m *Mirror_Targets) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Targets = append(m.Targets, &Mirror_Target{}) - if err := m.Targets[len(m.Targets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Requests = append(m.Requests, &Search_Request{}) + if err := m.Requests[len(m.Requests)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -30170,7 +32963,7 @@ func (m *Mirror_Targets) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Mirror) UnmarshalVT(dAtA []byte) error { +func (m *Search_IDRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30193,69 +32986,53 @@ func (m *Mirror) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Mirror: wiretype end group for non-group") + return fmt.Errorf("proto: Search_IDRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Mirror: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Search_IDRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength + 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 (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *Meta_Key) 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 + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Meta_Key: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Meta_Key: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Id = stringValue + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30265,23 +33042,27 @@ func (m *Meta_Key) 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.Key = string(dAtA[iNdEx:postIndex]) + if m.Config == nil { + m.Config = &Search_Config{} + } + if err := m.Config.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -30306,7 +33087,7 @@ func (m *Meta_Key) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Meta_Value) UnmarshalVT(dAtA []byte) error { +func (m *Search_MultiIDRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30329,15 +33110,15 @@ func (m *Meta_Value) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Meta_Value: wiretype end group for non-group") + return fmt.Errorf("proto: Search_MultiIDRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Meta_Value: illegal tag %d (wire type %d)", fieldNum, wire) + 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 Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30364,10 +33145,8 @@ func (m *Meta_Value) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &anypb.Any{} - } - if err := (*anypb1.Any)(m.Value).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Requests = append(m.Requests, &Search_IDRequest{}) + if err := m.Requests[len(m.Requests)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -30394,7 +33173,7 @@ func (m *Meta_Value) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Meta_KeyValue) UnmarshalVT(dAtA []byte) error { +func (m *Search_ObjectRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30417,17 +33196,17 @@ func (m *Meta_KeyValue) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Meta_KeyValue: 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: Meta_KeyValue: 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 != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -30437,31 +33216,26 @@ func (m *Meta_KeyValue) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Key == nil { - m.Key = &Meta_Key{} - } - if err := m.Key.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Object = dAtA[iNdEx:postIndex] iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30488,65 +33262,49 @@ func (m *Meta_KeyValue) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &Meta_Value{} + if m.Config == nil { + m.Config = &Search_Config{} } - if err := m.Value.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Config.UnmarshalVTUnsafe(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 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vectorizer", wireType) } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func (m *Meta) 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 + 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 iNdEx >= l { + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Vectorizer == nil { + m.Vectorizer = &Filter_Target{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Meta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Meta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + if err := m.Vectorizer.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -30570,7 +33328,7 @@ func (m *Meta) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Empty) UnmarshalVT(dAtA []byte) error { +func (m *Search_MultiObjectRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30593,12 +33351,46 @@ func (m *Empty) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Empty: 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: Empty: 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: + 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_ObjectRequest{}) + if err := m.Requests[len(m.Requests)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -30622,7 +33414,7 @@ func (m *Empty) UnmarshalVT(dAtA []byte) error { return nil } -func (m *Search_Request) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *Search_Config) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30645,69 +33437,111 @@ func (m *Search_Request) UnmarshalVTUnsafe(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_Config: 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_Config: 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 + 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 } - 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 iNdEx >= l { + return io.ErrUnexpectedEOF } - if packedLen < 0 { - return protohelpers.ErrInvalidLength + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.RequestId = stringValue + 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 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) + b := dAtA[iNdEx] + iNdEx++ + m.Num |= uint32(b&0x7F) << shift + if b < 0x80 { + break } - 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) + } + 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 + } + b := dAtA[iNdEx] + iNdEx++ + m.Timeout |= int64(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } - case 2: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IngressFilters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30734,68 +33568,164 @@ func (m *Search_Request) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Config == nil { - m.Config = &Search_Config{} + if m.IngressFilters == nil { + m.IngressFilters = &Filter_Config{} } - if err := m.Config.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + if err := m.IngressFilters.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressFilters", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + 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 } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > 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) UnmarshalVTUnsafe(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 m.EgressFilters == nil { + m.EgressFilters = &Filter_Config{} } - if iNdEx >= l { + if err := m.EgressFilters.UnmarshalVTUnsafe(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 + } + } + case 10: + if wireType != 2 { + 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 } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Ratio == nil { + m.Ratio = &wrapperspb.FloatValue{} } - } - 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 err := (*wrapperspb1.FloatValue)(m.Ratio).UnmarshalVTUnsafe(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 + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EdgeSize", wireType) + } + m.EdgeSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EdgeSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30822,8 +33752,8 @@ func (m *Search_MultiRequest) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Search_Request{}) - if err := m.Requests[len(m.Requests)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + m.Options = append(m.Options, &anypb.Any{}) + if err := (*anypb1.Any)(m.Options[len(m.Options)-1]).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -30850,7 +33780,7 @@ func (m *Search_MultiRequest) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Search_IDRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *Search_Response) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30873,15 +33803,15 @@ func (m *Search_IDRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_IDRequest: 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_IDRequest: 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 Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -30913,11 +33843,11 @@ func (m *Search_IDRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.Id = stringValue + m.RequestId = stringValue iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30944,10 +33874,8 @@ func (m *Search_IDRequest) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Config == nil { - m.Config = &Search_Config{} - } - if err := m.Config.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + m.Results = append(m.Results, &Object_Distance{}) + if err := m.Results[len(m.Results)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -30974,7 +33902,7 @@ func (m *Search_IDRequest) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Search_MultiIDRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *Search_Responses) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30997,15 +33925,15 @@ func (m *Search_MultiIDRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Search_MultiIDRequest: 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_MultiIDRequest: 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 { @@ -31032,8 +33960,8 @@ func (m *Search_MultiIDRequest) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Requests = append(m.Requests, &Search_IDRequest{}) - if err := m.Requests[len(m.Requests)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + m.Responses = append(m.Responses, &Search_Response{}) + if err := m.Responses[len(m.Responses)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -31060,7 +33988,7 @@ func (m *Search_MultiIDRequest) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Search_ObjectRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *Search_StreamResponse) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31083,17 +34011,17 @@ func (m *Search_ObjectRequest) UnmarshalVTUnsafe(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_StreamResponse: 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_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 Object", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31103,26 +34031,36 @@ func (m *Search_ObjectRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Object = dAtA[iNdEx:postIndex] + if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { + if err := oneof.Response.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &Search_Response{} + if err := v.UnmarshalVTUnsafe(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 Config", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31149,47 +34087,32 @@ func (m *Search_ObjectRequest) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Config == nil { - m.Config = &Search_Config{} - } - if err := m.Config.UnmarshalVTUnsafe(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) - } - 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 { + UnmarshalVTUnsafe([]byte) error + }); ok { + if err := unmarshal.UnmarshalVTUnsafe(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 { + UnmarshalVTUnsafe([]byte) error + }); ok { + if err := unmarshal.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return err + } } - } - 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.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Payload = &Search_StreamResponse_Status{Status: v} } iNdEx = postIndex default: @@ -31215,7 +34138,7 @@ func (m *Search_ObjectRequest) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Search_MultiObjectRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *Search) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31238,46 +34161,12 @@ func (m *Search_MultiObjectRequest) UnmarshalVTUnsafe(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: 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: 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_ObjectRequest{}) - if err := m.Requests[len(m.Requests)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -31301,7 +34190,7 @@ func (m *Search_MultiObjectRequest) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Search_Config) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *Filter_Target) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31324,15 +34213,15 @@ func (m *Search_Config) UnmarshalVTUnsafe(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: Filter_Target: 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: 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 RequestId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31364,13 +34253,13 @@ func (m *Search_Config) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RequestId = stringValue + m.Host = stringValue iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) } - m.Num = 0 + m.Port = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31380,55 +34269,66 @@ func (m *Search_Config) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Num |= uint32(b&0x7F) << shift + m.Port |= uint32(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Radius", wireType) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var v uint32 - if (iNdEx + 4) > l { + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > 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) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Filter_Config) UnmarshalVTUnsafe(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 } - var v uint32 - if (iNdEx + 4) > l { + if iNdEx >= 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 - } - b := dAtA[iNdEx] - iNdEx++ - m.Timeout |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 6: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Filter_Config: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 IngressFilters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31455,90 +34355,118 @@ func (m *Search_Config) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.IngressFilters == nil { - m.IngressFilters = &Filter_Config{} - } - if err := m.IngressFilters.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + m.Targets = append(m.Targets, &Filter_Target{}) + if err := m.Targets[len(m.Targets)-1].UnmarshalVTUnsafe(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 - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func (m *Filter) UnmarshalVTUnsafe(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.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Filter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Filter: 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 *ZVec_DocumentOptions) UnmarshalVTUnsafe(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 } - case 10: + 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: ZVec_DocumentOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ZVec_DocumentOptions: 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 Fields", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31565,51 +34493,112 @@ func (m *Search_Config) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Ratio == nil { - m.Ratio = &wrapperspb.FloatValue{} - } - if err := (*wrapperspb1.FloatValue)(m.Ratio).UnmarshalVTUnsafe(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 - } - } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EdgeSize", wireType) + if m.Fields == nil { + m.Fields = make(map[string]string) } - m.EdgeSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := 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 + } } - b := dAtA[iNdEx] - iNdEx++ - m.EdgeSize |= int32(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + if intStringLenmapkey == 0 { + mapkey = "" + } else { + mapkey = unsafe.String(&dAtA[iNdEx], intStringLenmapkey) + } + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + if intStringLenmapvalue == 0 { + mapvalue = "" + } else { + mapvalue = unsafe.String(&dAtA[iNdEx], intStringLenmapvalue) + } + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } + m.Fields[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -31633,7 +34622,7 @@ func (m *Search_Config) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Search_Response) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *ZVec_SearchOptions) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31656,15 +34645,15 @@ func (m *Search_Response) UnmarshalVTUnsafe(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: ZVec_SearchOptions: 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: ZVec_SearchOptions: 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 PreFilter", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -31696,11 +34685,11 @@ func (m *Search_Response) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RequestId = stringValue + m.PreFilter = stringValue iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HybridQueries", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31727,11 +34716,65 @@ func (m *Search_Response) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Results = append(m.Results, &Object_Distance{}) - if err := m.Results[len(m.Results)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + m.HybridQueries = append(m.HybridQueries, &ZVec_Query{}) + if err := m.HybridQueries[len(m.HybridQueries)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 3: + 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.HybridWeights = append(m.HybridWeights, 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.HybridWeights) == 0 { + m.HybridWeights = 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.HybridWeights = append(m.HybridWeights, v2) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field HybridWeights", wireType) + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -31755,7 +34798,7 @@ func (m *Search_Response) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Search_Responses) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *ZVec_Query) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31778,17 +34821,17 @@ func (m *Search_Responses) UnmarshalVTUnsafe(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: ZVec_Query: 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: ZVec_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 Responses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FieldName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -31798,81 +34841,31 @@ func (m *Search_Responses) UnmarshalVTUnsafe(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 } - m.Responses = append(m.Responses, &Search_Response{}) - if err := m.Responses[len(m.Responses)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } + m.FieldName = stringValue 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) UnmarshalVTUnsafe(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: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vector", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31899,21 +34892,21 @@ func (m *Search_StreamResponse) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Payload.(*Search_StreamResponse_Response); ok { - if err := oneof.Response.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + if oneof, ok := m.Query.(*ZVec_Query_Vector); ok { + if err := oneof.Vector.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } } else { - v := &Search_Response{} + v := &ZVec_Vector{} if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Payload = &Search_StreamResponse_Response{Response: v} + m.Query = &ZVec_Query_Vector{Vector: v} } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Fts", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31940,32 +34933,16 @@ func (m *Search_StreamResponse) UnmarshalVTUnsafe(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 { - UnmarshalVTUnsafe([]byte) error - }); ok { - if err := unmarshal.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], oneof.Status); err != nil { - return err - } + if oneof, ok := m.Query.(*ZVec_Query_Fts); ok { + if err := oneof.Fts.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } } else { - v := &status.Status{} - if unmarshal, ok := any(v).(interface { - UnmarshalVTUnsafe([]byte) error - }); ok { - if err := unmarshal.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - if err := proto.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return err - } + v := &ZVec_FTS{} + if err := v.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Payload = &Search_StreamResponse_Status{Status: v} + m.Query = &ZVec_Query_Fts{Fts: v} } iNdEx = postIndex default: @@ -31991,7 +34968,7 @@ func (m *Search_StreamResponse) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Search) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *ZVec_Vector) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32014,12 +34991,66 @@ func (m *Search) UnmarshalVTUnsafe(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: ZVec_Vector: 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: ZVec_Vector: 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.Values = append(m.Values, 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.Values) == 0 { + m.Values = 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.Values = append(m.Values, v2) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -32043,7 +35074,7 @@ func (m *Search) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Filter_Target) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *ZVec_FTS) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32066,15 +35097,15 @@ func (m *Filter_Target) UnmarshalVTUnsafe(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: ZVec_FTS: 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: ZVec_FTS: 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 MatchString", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -32106,84 +35137,13 @@ func (m *Filter_Target) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.Host = stringValue + m.MatchString = stringValue iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - 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 - } - } - 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_Config) UnmarshalVTUnsafe(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_Config: wiretype end group for non-group") - } - if fieldNum <= 0 { - 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 Targets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field QueryString", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -32193,25 +35153,27 @@ func (m *Filter_Config) UnmarshalVTUnsafe(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 } - m.Targets = append(m.Targets, &Filter_Target{}) - if err := m.Targets[len(m.Targets)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } + m.QueryString = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -32236,7 +35198,7 @@ func (m *Filter_Config) UnmarshalVTUnsafe(dAtA []byte) error { return nil } -func (m *Filter) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *ZVec) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32259,10 +35221,10 @@ func (m *Filter) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Filter: wiretype end group for non-group") + return fmt.Errorf("proto: ZVec: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Filter: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZVec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -32848,6 +35810,40 @@ func (m *Insert_Config) UnmarshalVTUnsafe(dAtA []byte) error { break } } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Options", 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.Options = append(m.Options, &anypb.Any{}) + if err := (*anypb1.Any)(m.Options[len(m.Options)-1]).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) diff --git a/apis/proto/v1/payload/payload.proto b/apis/proto/v1/payload/payload.proto index 73ee2e5466..8f22918e82 100644 --- a/apis/proto/v1/payload/payload.proto +++ b/apis/proto/v1/payload/payload.proto @@ -99,6 +99,8 @@ message Search { uint32 nprobe = 11; // Search edge size int32 edge_size = 12; + // Algorithm-specific search options. + repeated google.protobuf.Any options = 13; } // AggregationAlgorithm is enum of each aggregation algorithms @@ -152,6 +154,50 @@ message Filter { } } +// ZVec related messages. +message ZVec { + // Represent ZVec document options. + message DocumentOptions { + // Scalar or text fields stored with the vector. + map fields = 1; + } + + // Represent ZVec search options. + message SearchOptions { + // Scalar pre-filter expression. + string pre_filter = 1; + // Hybrid recall queries. + repeated Query hybrid_queries = 2; + // Per-query weights used by weighted hybrid reranking. + repeated float hybrid_weights = 3; + } + + // Represent a ZVec hybrid recall query. + message Query { + // Target field name. + string field_name = 1; + oneof query { + // Vector recall query. + Vector vector = 2; + // Full-text recall query. + FTS fts = 3; + } + } + + // Represent a ZVec vector recall query. + message Vector { + repeated float values = 1; + } + + // Represent a ZVec full-text recall query. + message FTS { + // Natural-language match string. + string match_string = 1; + // Explicit full-text query string. + string query_string = 2; + } +} + // Insert related messages. message Insert { // Represent the insert request. @@ -192,6 +238,8 @@ message Insert { Filter.Config filters = 2; // Insert timestamp. int64 timestamp = 3; + // Algorithm-specific insert options. + repeated google.protobuf.Any options = 4; } } diff --git a/apis/swagger/v1/vald/filter.swagger.json b/apis/swagger/v1/vald/filter.swagger.json index 6fbf27282b..4312956fc0 100644 --- a/apis/swagger/v1/vald/filter.swagger.json +++ b/apis/swagger/v1/vald/filter.swagger.json @@ -438,6 +438,14 @@ "type": "string", "format": "int64", "description": "Insert timestamp." + }, + "options": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + }, + "description": "Algorithm-specific insert options." } }, "description": "Represent insert configurations." @@ -553,6 +561,14 @@ "type": "integer", "format": "int32", "title": "Search edge size" + }, + "options": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + }, + "description": "Algorithm-specific search options." } }, "description": "Represent search configuration." diff --git a/apis/swagger/v1/vald/insert.swagger.json b/apis/swagger/v1/vald/insert.swagger.json index 1b6e979ae5..9b40922f10 100644 --- a/apis/swagger/v1/vald/insert.swagger.json +++ b/apis/swagger/v1/vald/insert.swagger.json @@ -223,6 +223,14 @@ "type": "string", "format": "int64", "description": "Insert timestamp." + }, + "options": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + }, + "description": "Algorithm-specific insert options." } }, "description": "Represent insert configurations." diff --git a/apis/swagger/v1/vald/search.swagger.json b/apis/swagger/v1/vald/search.swagger.json index 75c0ecc93b..ae02b52789 100644 --- a/apis/swagger/v1/vald/search.swagger.json +++ b/apis/swagger/v1/vald/search.swagger.json @@ -519,6 +519,14 @@ "type": "integer", "format": "int32", "title": "Search edge size" + }, + "options": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + }, + "description": "Algorithm-specific search options." } }, "description": "Represent search configuration." diff --git a/rust/bin/agent/src/handler/upsert.rs b/rust/bin/agent/src/handler/upsert.rs index 9f146eaadb..cfb7495b1b 100644 --- a/rust/bin/agent/src/handler/upsert.rs +++ b/rust/bin/agent/src/handler/upsert.rs @@ -128,6 +128,7 @@ async fn upsert( skip_strict_exist_check: true, filters: config.filters, timestamp: config.timestamp, + options: vec![], }), }, ) @@ -288,6 +289,7 @@ impl upsert_server::Upsert for super::Agent { skip_strict_exist_check: true, filters: config.filters, timestamp: config.timestamp, + options: vec![], }), }); } diff --git a/rust/libs/proto/src/payload/v1/payload.v1.rs b/rust/libs/proto/src/payload/v1/payload.v1.rs index 2d7eab4c0d..a5621a1eb4 100644 --- a/rust/libs/proto/src/payload/v1/payload.v1.rs +++ b/rust/libs/proto/src/payload/v1/payload.v1.rs @@ -168,6 +168,9 @@ pub mod search { /// Search edge size #[prost(int32, tag = "12")] pub edge_size: i32, + /// Algorithm-specific search options. + #[prost(message, repeated, tag = "13")] + pub options: ::prost::alloc::vec::Vec, } impl ::prost::Name for Config { const NAME: &'static str = "Config"; @@ -344,6 +347,132 @@ impl ::prost::Name for Filter { "/payload.v1.Filter".into() } } +/// ZVec related messages. +#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)] +pub struct ZVec {} +/// Nested message and enum types in `ZVec`. +pub mod z_vec { + /// Represent ZVec document options. + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct DocumentOptions { + /// Scalar or text fields stored with the vector. + #[prost(map = "string, string", tag = "1")] + pub fields: ::std::collections::HashMap< + ::prost::alloc::string::String, + ::prost::alloc::string::String, + >, + } + impl ::prost::Name for DocumentOptions { + const NAME: &'static str = "DocumentOptions"; + const PACKAGE: &'static str = "payload.v1"; + fn full_name() -> ::prost::alloc::string::String { + "payload.v1.ZVec.DocumentOptions".into() + } + fn type_url() -> ::prost::alloc::string::String { + "/payload.v1.ZVec.DocumentOptions".into() + } + } + /// Represent ZVec search options. + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct SearchOptions { + /// Scalar pre-filter expression. + #[prost(string, tag = "1")] + pub pre_filter: ::prost::alloc::string::String, + /// Hybrid recall queries. + #[prost(message, repeated, tag = "2")] + pub hybrid_queries: ::prost::alloc::vec::Vec, + /// Per-query weights used by weighted hybrid reranking. + #[prost(float, repeated, tag = "3")] + pub hybrid_weights: ::prost::alloc::vec::Vec, + } + impl ::prost::Name for SearchOptions { + const NAME: &'static str = "SearchOptions"; + const PACKAGE: &'static str = "payload.v1"; + fn full_name() -> ::prost::alloc::string::String { + "payload.v1.ZVec.SearchOptions".into() + } + fn type_url() -> ::prost::alloc::string::String { + "/payload.v1.ZVec.SearchOptions".into() + } + } + /// Represent a ZVec hybrid recall query. + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Query { + /// Target field name. + #[prost(string, tag = "1")] + pub field_name: ::prost::alloc::string::String, + #[prost(oneof = "query::Query", tags = "2, 3")] + pub query: ::core::option::Option, + } + /// Nested message and enum types in `Query`. + pub mod query { + #[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Query { + /// Vector recall query. + #[prost(message, tag = "2")] + Vector(super::Vector), + /// Full-text recall query. + #[prost(message, tag = "3")] + Fts(super::Fts), + } + } + 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.ZVec.Query".into() + } + fn type_url() -> ::prost::alloc::string::String { + "/payload.v1.ZVec.Query".into() + } + } + /// Represent a ZVec vector recall query. + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Vector { + #[prost(float, repeated, tag = "1")] + pub values: ::prost::alloc::vec::Vec, + } + impl ::prost::Name for Vector { + const NAME: &'static str = "Vector"; + const PACKAGE: &'static str = "payload.v1"; + fn full_name() -> ::prost::alloc::string::String { + "payload.v1.ZVec.Vector".into() + } + fn type_url() -> ::prost::alloc::string::String { + "/payload.v1.ZVec.Vector".into() + } + } + /// Represent a ZVec full-text recall query. + #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] + pub struct Fts { + /// Natural-language match string. + #[prost(string, tag = "1")] + pub match_string: ::prost::alloc::string::String, + /// Explicit full-text query string. + #[prost(string, tag = "2")] + pub query_string: ::prost::alloc::string::String, + } + impl ::prost::Name for Fts { + const NAME: &'static str = "FTS"; + const PACKAGE: &'static str = "payload.v1"; + fn full_name() -> ::prost::alloc::string::String { + "payload.v1.ZVec.FTS".into() + } + fn type_url() -> ::prost::alloc::string::String { + "/payload.v1.ZVec.FTS".into() + } + } +} +impl ::prost::Name for ZVec { + const NAME: &'static str = "ZVec"; + const PACKAGE: &'static str = "payload.v1"; + fn full_name() -> ::prost::alloc::string::String { + "payload.v1.ZVec".into() + } + fn type_url() -> ::prost::alloc::string::String { + "/payload.v1.ZVec".into() + } +} /// Insert related messages. #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)] pub struct Insert {} @@ -438,6 +567,9 @@ pub mod insert { /// Insert timestamp. #[prost(int64, tag = "3")] pub timestamp: i64, + /// Algorithm-specific insert options. + #[prost(message, repeated, tag = "4")] + pub options: ::prost::alloc::vec::Vec, } impl ::prost::Name for Config { const NAME: &'static str = "Config"; diff --git a/rust/libs/proto/src/payload/v1/payload.v1.serde.rs b/rust/libs/proto/src/payload/v1/payload.v1.serde.rs index a7fbdb4068..9612b0150e 100644 --- a/rust/libs/proto/src/payload/v1/payload.v1.serde.rs +++ b/rust/libs/proto/src/payload/v1/payload.v1.serde.rs @@ -5505,6 +5505,9 @@ impl serde::Serialize for insert::Config { if self.timestamp != 0 { len += 1; } + if !self.options.is_empty() { + len += 1; + } let mut struct_ser = serializer.serialize_struct("payload.v1.Insert.Config", len)?; if self.skip_strict_exist_check { struct_ser.serialize_field("skipStrictExistCheck", &self.skip_strict_exist_check)?; @@ -5518,6 +5521,9 @@ impl serde::Serialize for insert::Config { struct_ser .serialize_field("timestamp", ToString::to_string(&self.timestamp).as_str())?; } + if !self.options.is_empty() { + struct_ser.serialize_field("options", &self.options)?; + } struct_ser.end() } } @@ -5532,6 +5538,7 @@ impl<'de> serde::Deserialize<'de> for insert::Config { "skipStrictExistCheck", "filters", "timestamp", + "options", ]; #[allow(clippy::enum_variant_names)] @@ -5539,6 +5546,7 @@ impl<'de> serde::Deserialize<'de> for insert::Config { SkipStrictExistCheck, Filters, Timestamp, + Options, } impl<'de> serde::Deserialize<'de> for GeneratedField { fn deserialize(deserializer: D) -> std::result::Result @@ -5568,6 +5576,7 @@ impl<'de> serde::Deserialize<'de> for insert::Config { } "filters" => Ok(GeneratedField::Filters), "timestamp" => Ok(GeneratedField::Timestamp), + "options" => Ok(GeneratedField::Options), _ => Err(serde::de::Error::unknown_field(value, FIELDS)), } } @@ -5590,6 +5599,7 @@ impl<'de> serde::Deserialize<'de> for insert::Config { let mut skip_strict_exist_check__ = None; let mut filters__ = None; let mut timestamp__ = None; + let mut options__ = None; while let Some(k) = map_.next_key()? { match k { GeneratedField::SkipStrictExistCheck => { @@ -5615,12 +5625,19 @@ impl<'de> serde::Deserialize<'de> for insert::Config { .0, ); } + GeneratedField::Options => { + if options__.is_some() { + return Err(serde::de::Error::duplicate_field("options")); + } + options__ = Some(map_.next_value()?); + } } } Ok(insert::Config { skip_strict_exist_check: skip_strict_exist_check__.unwrap_or_default(), filters: filters__, timestamp: timestamp__.unwrap_or_default(), + options: options__.unwrap_or_default(), }) } } @@ -9661,6 +9678,9 @@ impl serde::Serialize for search::Config { if self.edge_size != 0 { len += 1; } + if !self.options.is_empty() { + len += 1; + } let mut struct_ser = serializer.serialize_struct("payload.v1.Search.Config", len)?; if !self.request_id.is_empty() { struct_ser.serialize_field("requestId", &self.request_id)?; @@ -9708,6 +9728,9 @@ impl serde::Serialize for search::Config { if self.edge_size != 0 { struct_ser.serialize_field("edgeSize", &self.edge_size)?; } + if !self.options.is_empty() { + struct_ser.serialize_field("options", &self.options)?; + } struct_ser.end() } } @@ -9736,6 +9759,7 @@ impl<'de> serde::Deserialize<'de> for search::Config { "nprobe", "edge_size", "edgeSize", + "options", ]; #[allow(clippy::enum_variant_names)] @@ -9752,6 +9776,7 @@ impl<'de> serde::Deserialize<'de> for search::Config { Ratio, Nprobe, EdgeSize, + Options, } impl<'de> serde::Deserialize<'de> for GeneratedField { fn deserialize(deserializer: D) -> std::result::Result @@ -9792,6 +9817,7 @@ impl<'de> serde::Deserialize<'de> for search::Config { "ratio" => Ok(GeneratedField::Ratio), "nprobe" => Ok(GeneratedField::Nprobe), "edgeSize" | "edge_size" => Ok(GeneratedField::EdgeSize), + "options" => Ok(GeneratedField::Options), _ => Err(serde::de::Error::unknown_field(value, FIELDS)), } } @@ -9823,6 +9849,7 @@ impl<'de> serde::Deserialize<'de> for search::Config { let mut ratio__ = None; let mut nprobe__ = None; let mut edge_size__ = None; + let mut options__ = None; while let Some(k) = map_.next_key()? { match k { GeneratedField::RequestId => { @@ -9921,6 +9948,12 @@ impl<'de> serde::Deserialize<'de> for search::Config { .0, ); } + GeneratedField::Options => { + if options__.is_some() { + return Err(serde::de::Error::duplicate_field("options")); + } + options__ = Some(map_.next_value()?); + } } } Ok(search::Config { @@ -9936,6 +9969,7 @@ impl<'de> serde::Deserialize<'de> for search::Config { ratio: ratio__, nprobe: nprobe__.unwrap_or_default(), edge_size: edge_size__.unwrap_or_default(), + options: options__.unwrap_or_default(), }) } } @@ -12372,3 +12406,640 @@ impl<'de> serde::Deserialize<'de> for upsert::Request { deserializer.deserialize_struct("payload.v1.Upsert.Request", FIELDS, GeneratedVisitor) } } +impl serde::Serialize for ZVec { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let len = 0; + let struct_ser = serializer.serialize_struct("payload.v1.ZVec", len)?; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ZVec { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField {} + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting( + &self, + formatter: &mut std::fmt::Formatter<'_>, + ) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + Err(serde::de::Error::unknown_field(value, FIELDS)) + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ZVec; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct payload.v1.ZVec") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + while map_.next_key::()?.is_some() { + let _ = map_.next_value::()?; + } + Ok(ZVec {}) + } + } + deserializer.deserialize_struct("payload.v1.ZVec", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for z_vec::DocumentOptions { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.fields.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("payload.v1.ZVec.DocumentOptions", len)?; + if !self.fields.is_empty() { + struct_ser.serialize_field("fields", &self.fields)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for z_vec::DocumentOptions { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &["fields"]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Fields, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting( + &self, + formatter: &mut std::fmt::Formatter<'_>, + ) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "fields" => Ok(GeneratedField::Fields), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = z_vec::DocumentOptions; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct payload.v1.ZVec.DocumentOptions") + } + + fn visit_map( + self, + mut map_: V, + ) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut fields__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Fields => { + if fields__.is_some() { + return Err(serde::de::Error::duplicate_field("fields")); + } + fields__ = Some(map_.next_value::>()?); + } + } + } + Ok(z_vec::DocumentOptions { + fields: fields__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("payload.v1.ZVec.DocumentOptions", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for z_vec::Fts { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.match_string.is_empty() { + len += 1; + } + if !self.query_string.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("payload.v1.ZVec.FTS", len)?; + if !self.match_string.is_empty() { + struct_ser.serialize_field("matchString", &self.match_string)?; + } + if !self.query_string.is_empty() { + struct_ser.serialize_field("queryString", &self.query_string)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for z_vec::Fts { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &["match_string", "matchString", "query_string", "queryString"]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + MatchString, + QueryString, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting( + &self, + formatter: &mut std::fmt::Formatter<'_>, + ) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "matchString" | "match_string" => Ok(GeneratedField::MatchString), + "queryString" | "query_string" => Ok(GeneratedField::QueryString), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = z_vec::Fts; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct payload.v1.ZVec.FTS") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut match_string__ = None; + let mut query_string__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::MatchString => { + if match_string__.is_some() { + return Err(serde::de::Error::duplicate_field("matchString")); + } + match_string__ = Some(map_.next_value()?); + } + GeneratedField::QueryString => { + if query_string__.is_some() { + return Err(serde::de::Error::duplicate_field("queryString")); + } + query_string__ = Some(map_.next_value()?); + } + } + } + Ok(z_vec::Fts { + match_string: match_string__.unwrap_or_default(), + query_string: query_string__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("payload.v1.ZVec.FTS", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for z_vec::Query { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.field_name.is_empty() { + len += 1; + } + if self.query.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("payload.v1.ZVec.Query", len)?; + if !self.field_name.is_empty() { + struct_ser.serialize_field("fieldName", &self.field_name)?; + } + if let Some(v) = self.query.as_ref() { + match v { + z_vec::query::Query::Vector(v) => { + struct_ser.serialize_field("vector", v)?; + } + z_vec::query::Query::Fts(v) => { + struct_ser.serialize_field("fts", v)?; + } + } + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for z_vec::Query { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &["field_name", "fieldName", "vector", "fts"]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + FieldName, + Vector, + Fts, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting( + &self, + formatter: &mut std::fmt::Formatter<'_>, + ) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "fieldName" | "field_name" => Ok(GeneratedField::FieldName), + "vector" => Ok(GeneratedField::Vector), + "fts" => Ok(GeneratedField::Fts), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = z_vec::Query; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct payload.v1.ZVec.Query") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut field_name__ = None; + let mut query__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::FieldName => { + if field_name__.is_some() { + return Err(serde::de::Error::duplicate_field("fieldName")); + } + field_name__ = Some(map_.next_value()?); + } + GeneratedField::Vector => { + if query__.is_some() { + return Err(serde::de::Error::duplicate_field("vector")); + } + query__ = map_ + .next_value::<::std::option::Option<_>>()? + .map(z_vec::query::Query::Vector); + } + GeneratedField::Fts => { + if query__.is_some() { + return Err(serde::de::Error::duplicate_field("fts")); + } + query__ = map_ + .next_value::<::std::option::Option<_>>()? + .map(z_vec::query::Query::Fts); + } + } + } + Ok(z_vec::Query { + field_name: field_name__.unwrap_or_default(), + query: query__, + }) + } + } + deserializer.deserialize_struct("payload.v1.ZVec.Query", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for z_vec::SearchOptions { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.pre_filter.is_empty() { + len += 1; + } + if !self.hybrid_queries.is_empty() { + len += 1; + } + if !self.hybrid_weights.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("payload.v1.ZVec.SearchOptions", len)?; + if !self.pre_filter.is_empty() { + struct_ser.serialize_field("preFilter", &self.pre_filter)?; + } + if !self.hybrid_queries.is_empty() { + struct_ser.serialize_field("hybridQueries", &self.hybrid_queries)?; + } + if !self.hybrid_weights.is_empty() { + struct_ser.serialize_field("hybridWeights", &self.hybrid_weights)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for z_vec::SearchOptions { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "pre_filter", + "preFilter", + "hybrid_queries", + "hybridQueries", + "hybrid_weights", + "hybridWeights", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + PreFilter, + HybridQueries, + HybridWeights, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting( + &self, + formatter: &mut std::fmt::Formatter<'_>, + ) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "preFilter" | "pre_filter" => Ok(GeneratedField::PreFilter), + "hybridQueries" | "hybrid_queries" => Ok(GeneratedField::HybridQueries), + "hybridWeights" | "hybrid_weights" => Ok(GeneratedField::HybridWeights), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = z_vec::SearchOptions; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct payload.v1.ZVec.SearchOptions") + } + + fn visit_map( + self, + mut map_: V, + ) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut pre_filter__ = None; + let mut hybrid_queries__ = None; + let mut hybrid_weights__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::PreFilter => { + if pre_filter__.is_some() { + return Err(serde::de::Error::duplicate_field("preFilter")); + } + pre_filter__ = Some(map_.next_value()?); + } + GeneratedField::HybridQueries => { + if hybrid_queries__.is_some() { + return Err(serde::de::Error::duplicate_field("hybridQueries")); + } + hybrid_queries__ = Some(map_.next_value()?); + } + GeneratedField::HybridWeights => { + if hybrid_weights__.is_some() { + return Err(serde::de::Error::duplicate_field("hybridWeights")); + } + hybrid_weights__ = Some( + map_.next_value::>>()? + .into_iter() + .map(|x| x.0) + .collect(), + ); + } + } + } + Ok(z_vec::SearchOptions { + pre_filter: pre_filter__.unwrap_or_default(), + hybrid_queries: hybrid_queries__.unwrap_or_default(), + hybrid_weights: hybrid_weights__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("payload.v1.ZVec.SearchOptions", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for z_vec::Vector { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.values.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("payload.v1.ZVec.Vector", len)?; + if !self.values.is_empty() { + struct_ser.serialize_field("values", &self.values)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for z_vec::Vector { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &["values"]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Values, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting( + &self, + formatter: &mut std::fmt::Formatter<'_>, + ) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "values" => Ok(GeneratedField::Values), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = z_vec::Vector; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct payload.v1.ZVec.Vector") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut values__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Values => { + if values__.is_some() { + return Err(serde::de::Error::duplicate_field("values")); + } + values__ = Some( + map_.next_value::>>()? + .into_iter() + .map(|x| x.0) + .collect(), + ); + } + } + } + Ok(z_vec::Vector { + values: values__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("payload.v1.ZVec.Vector", FIELDS, GeneratedVisitor) + } +}