From 5efecab426cf48659dc9a9ed38ffb1e8b1e10d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Coss=C3=ADo?= Date: Thu, 29 Aug 2024 17:25:09 -0400 Subject: [PATCH] generate grpc client with grpcio==1.66.1 and mypy-protobuf extension --- qdrant_client/grpc/collections_pb2.pyi | 2605 ++++++++++ .../grpc/collections_service_pb2.pyi | 8 + qdrant_client/grpc/json_with_int_pb2.pyi | 163 + qdrant_client/grpc/points_pb2.pyi | 4421 +++++++++++++++++ qdrant_client/grpc/points_service_pb2.pyi | 8 + qdrant_client/grpc/qdrant_pb2.pyi | 44 + qdrant_client/grpc/snapshots_service_pb2.pyi | 191 + tools/generate_grpc_client.sh | 6 +- 8 files changed, 7443 insertions(+), 3 deletions(-) create mode 100644 qdrant_client/grpc/collections_pb2.pyi create mode 100644 qdrant_client/grpc/collections_service_pb2.pyi create mode 100644 qdrant_client/grpc/json_with_int_pb2.pyi create mode 100644 qdrant_client/grpc/points_pb2.pyi create mode 100644 qdrant_client/grpc/points_service_pb2.pyi create mode 100644 qdrant_client/grpc/qdrant_pb2.pyi create mode 100644 qdrant_client/grpc/snapshots_service_pb2.pyi diff --git a/qdrant_client/grpc/collections_pb2.pyi b/qdrant_client/grpc/collections_pb2.pyi new file mode 100644 index 000000000..8ac347bb9 --- /dev/null +++ b/qdrant_client/grpc/collections_pb2.pyi @@ -0,0 +1,2605 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _Datatype: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _DatatypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Datatype.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Default: _Datatype.ValueType # 0 + Float32: _Datatype.ValueType # 1 + Uint8: _Datatype.ValueType # 2 + Float16: _Datatype.ValueType # 3 + +class Datatype(_Datatype, metaclass=_DatatypeEnumTypeWrapper): ... + +Default: Datatype.ValueType # 0 +Float32: Datatype.ValueType # 1 +Uint8: Datatype.ValueType # 2 +Float16: Datatype.ValueType # 3 +global___Datatype = Datatype + +class _Modifier: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ModifierEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Modifier.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Idf: _Modifier.ValueType # 1 + """Apply Inverse Document Frequency""" + +class Modifier(_Modifier, metaclass=_ModifierEnumTypeWrapper): ... + +Idf: Modifier.ValueType # 1 +"""Apply Inverse Document Frequency""" +global___Modifier = Modifier + +class _MultiVectorComparator: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _MultiVectorComparatorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_MultiVectorComparator.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + MaxSim: _MultiVectorComparator.ValueType # 0 + +class MultiVectorComparator(_MultiVectorComparator, metaclass=_MultiVectorComparatorEnumTypeWrapper): ... + +MaxSim: MultiVectorComparator.ValueType # 0 +global___MultiVectorComparator = MultiVectorComparator + +class _Distance: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _DistanceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Distance.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UnknownDistance: _Distance.ValueType # 0 + Cosine: _Distance.ValueType # 1 + Euclid: _Distance.ValueType # 2 + Dot: _Distance.ValueType # 3 + Manhattan: _Distance.ValueType # 4 + +class Distance(_Distance, metaclass=_DistanceEnumTypeWrapper): ... + +UnknownDistance: Distance.ValueType # 0 +Cosine: Distance.ValueType # 1 +Euclid: Distance.ValueType # 2 +Dot: Distance.ValueType # 3 +Manhattan: Distance.ValueType # 4 +global___Distance = Distance + +class _CollectionStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _CollectionStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CollectionStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UnknownCollectionStatus: _CollectionStatus.ValueType # 0 + Green: _CollectionStatus.ValueType # 1 + """All segments are ready""" + Yellow: _CollectionStatus.ValueType # 2 + """Optimization in process""" + Red: _CollectionStatus.ValueType # 3 + """Something went wrong""" + Grey: _CollectionStatus.ValueType # 4 + """Optimization is pending""" + +class CollectionStatus(_CollectionStatus, metaclass=_CollectionStatusEnumTypeWrapper): ... + +UnknownCollectionStatus: CollectionStatus.ValueType # 0 +Green: CollectionStatus.ValueType # 1 +"""All segments are ready""" +Yellow: CollectionStatus.ValueType # 2 +"""Optimization in process""" +Red: CollectionStatus.ValueType # 3 +"""Something went wrong""" +Grey: CollectionStatus.ValueType # 4 +"""Optimization is pending""" +global___CollectionStatus = CollectionStatus + +class _PayloadSchemaType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _PayloadSchemaTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PayloadSchemaType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UnknownType: _PayloadSchemaType.ValueType # 0 + Keyword: _PayloadSchemaType.ValueType # 1 + Integer: _PayloadSchemaType.ValueType # 2 + Float: _PayloadSchemaType.ValueType # 3 + Geo: _PayloadSchemaType.ValueType # 4 + Text: _PayloadSchemaType.ValueType # 5 + Bool: _PayloadSchemaType.ValueType # 6 + Datetime: _PayloadSchemaType.ValueType # 7 + Uuid: _PayloadSchemaType.ValueType # 8 + +class PayloadSchemaType(_PayloadSchemaType, metaclass=_PayloadSchemaTypeEnumTypeWrapper): ... + +UnknownType: PayloadSchemaType.ValueType # 0 +Keyword: PayloadSchemaType.ValueType # 1 +Integer: PayloadSchemaType.ValueType # 2 +Float: PayloadSchemaType.ValueType # 3 +Geo: PayloadSchemaType.ValueType # 4 +Text: PayloadSchemaType.ValueType # 5 +Bool: PayloadSchemaType.ValueType # 6 +Datetime: PayloadSchemaType.ValueType # 7 +Uuid: PayloadSchemaType.ValueType # 8 +global___PayloadSchemaType = PayloadSchemaType + +class _QuantizationType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _QuantizationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_QuantizationType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UnknownQuantization: _QuantizationType.ValueType # 0 + Int8: _QuantizationType.ValueType # 1 + +class QuantizationType(_QuantizationType, metaclass=_QuantizationTypeEnumTypeWrapper): ... + +UnknownQuantization: QuantizationType.ValueType # 0 +Int8: QuantizationType.ValueType # 1 +global___QuantizationType = QuantizationType + +class _CompressionRatio: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _CompressionRatioEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CompressionRatio.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + x4: _CompressionRatio.ValueType # 0 + x8: _CompressionRatio.ValueType # 1 + x16: _CompressionRatio.ValueType # 2 + x32: _CompressionRatio.ValueType # 3 + x64: _CompressionRatio.ValueType # 4 + +class CompressionRatio(_CompressionRatio, metaclass=_CompressionRatioEnumTypeWrapper): ... + +x4: CompressionRatio.ValueType # 0 +x8: CompressionRatio.ValueType # 1 +x16: CompressionRatio.ValueType # 2 +x32: CompressionRatio.ValueType # 3 +x64: CompressionRatio.ValueType # 4 +global___CompressionRatio = CompressionRatio + +class _ShardingMethod: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ShardingMethodEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ShardingMethod.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Auto: _ShardingMethod.ValueType # 0 + """Auto-sharding based on record ids""" + Custom: _ShardingMethod.ValueType # 1 + """Shard by user-defined key""" + +class ShardingMethod(_ShardingMethod, metaclass=_ShardingMethodEnumTypeWrapper): ... + +Auto: ShardingMethod.ValueType # 0 +"""Auto-sharding based on record ids""" +Custom: ShardingMethod.ValueType # 1 +"""Shard by user-defined key""" +global___ShardingMethod = ShardingMethod + +class _TokenizerType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _TokenizerTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TokenizerType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Unknown: _TokenizerType.ValueType # 0 + Prefix: _TokenizerType.ValueType # 1 + Whitespace: _TokenizerType.ValueType # 2 + Word: _TokenizerType.ValueType # 3 + Multilingual: _TokenizerType.ValueType # 4 + +class TokenizerType(_TokenizerType, metaclass=_TokenizerTypeEnumTypeWrapper): ... + +Unknown: TokenizerType.ValueType # 0 +Prefix: TokenizerType.ValueType # 1 +Whitespace: TokenizerType.ValueType # 2 +Word: TokenizerType.ValueType # 3 +Multilingual: TokenizerType.ValueType # 4 +global___TokenizerType = TokenizerType + +class _ReplicaState: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ReplicaStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ReplicaState.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Active: _ReplicaState.ValueType # 0 + """Active and sound""" + Dead: _ReplicaState.ValueType # 1 + """Failed for some reason""" + Partial: _ReplicaState.ValueType # 2 + """The shard is partially loaded and is currently receiving data from other shards""" + Initializing: _ReplicaState.ValueType # 3 + """Collection is being created""" + Listener: _ReplicaState.ValueType # 4 + """A shard which receives data, but is not used for search; Useful for backup shards""" + PartialSnapshot: _ReplicaState.ValueType # 5 + """Deprecated: snapshot shard transfer is in progress; Updates should not be sent to (and are ignored by) the shard""" + Recovery: _ReplicaState.ValueType # 6 + """Shard is undergoing recovered by an external node; Normally rejects updates, accepts updates if force is true""" + Resharding: _ReplicaState.ValueType # 7 + """Points are being migrated to this shard as part of resharding""" + +class ReplicaState(_ReplicaState, metaclass=_ReplicaStateEnumTypeWrapper): ... + +Active: ReplicaState.ValueType # 0 +"""Active and sound""" +Dead: ReplicaState.ValueType # 1 +"""Failed for some reason""" +Partial: ReplicaState.ValueType # 2 +"""The shard is partially loaded and is currently receiving data from other shards""" +Initializing: ReplicaState.ValueType # 3 +"""Collection is being created""" +Listener: ReplicaState.ValueType # 4 +"""A shard which receives data, but is not used for search; Useful for backup shards""" +PartialSnapshot: ReplicaState.ValueType # 5 +"""Deprecated: snapshot shard transfer is in progress; Updates should not be sent to (and are ignored by) the shard""" +Recovery: ReplicaState.ValueType # 6 +"""Shard is undergoing recovered by an external node; Normally rejects updates, accepts updates if force is true""" +Resharding: ReplicaState.ValueType # 7 +"""Points are being migrated to this shard as part of resharding""" +global___ReplicaState = ReplicaState + +class _ShardTransferMethod: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ShardTransferMethodEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ShardTransferMethod.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + StreamRecords: _ShardTransferMethod.ValueType # 0 + """Stream shard records in batches""" + Snapshot: _ShardTransferMethod.ValueType # 1 + """Snapshot the shard and recover it on the target peer""" + WalDelta: _ShardTransferMethod.ValueType # 2 + """Resolve WAL delta between peers and transfer the difference""" + ReshardingStreamRecords: _ShardTransferMethod.ValueType # 3 + """Stream shard records in batches for resharding""" + +class ShardTransferMethod(_ShardTransferMethod, metaclass=_ShardTransferMethodEnumTypeWrapper): ... + +StreamRecords: ShardTransferMethod.ValueType # 0 +"""Stream shard records in batches""" +Snapshot: ShardTransferMethod.ValueType # 1 +"""Snapshot the shard and recover it on the target peer""" +WalDelta: ShardTransferMethod.ValueType # 2 +"""Resolve WAL delta between peers and transfer the difference""" +ReshardingStreamRecords: ShardTransferMethod.ValueType # 3 +"""Stream shard records in batches for resharding""" +global___ShardTransferMethod = ShardTransferMethod + +@typing.final +class VectorParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SIZE_FIELD_NUMBER: builtins.int + DISTANCE_FIELD_NUMBER: builtins.int + HNSW_CONFIG_FIELD_NUMBER: builtins.int + QUANTIZATION_CONFIG_FIELD_NUMBER: builtins.int + ON_DISK_FIELD_NUMBER: builtins.int + DATATYPE_FIELD_NUMBER: builtins.int + MULTIVECTOR_CONFIG_FIELD_NUMBER: builtins.int + size: builtins.int + """Size of the vectors""" + distance: global___Distance.ValueType + """Distance function used for comparing vectors""" + on_disk: builtins.bool + """If true - serve vectors from disk. If set to false, the vectors will be loaded in RAM.""" + datatype: global___Datatype.ValueType + """Data type of the vectors""" + @property + def hnsw_config(self) -> global___HnswConfigDiff: + """Configuration of vector HNSW graph. If omitted - the collection configuration will be used""" + + @property + def quantization_config(self) -> global___QuantizationConfig: + """Configuration of vector quantization config. If omitted - the collection configuration will be used""" + + @property + def multivector_config(self) -> global___MultiVectorConfig: + """Configuration for multi-vector search""" + + def __init__( + self, + *, + size: builtins.int = ..., + distance: global___Distance.ValueType = ..., + hnsw_config: global___HnswConfigDiff | None = ..., + quantization_config: global___QuantizationConfig | None = ..., + on_disk: builtins.bool | None = ..., + datatype: global___Datatype.ValueType | None = ..., + multivector_config: global___MultiVectorConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_datatype", b"_datatype", "_hnsw_config", b"_hnsw_config", "_multivector_config", b"_multivector_config", "_on_disk", b"_on_disk", "_quantization_config", b"_quantization_config", "datatype", b"datatype", "hnsw_config", b"hnsw_config", "multivector_config", b"multivector_config", "on_disk", b"on_disk", "quantization_config", b"quantization_config"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_datatype", b"_datatype", "_hnsw_config", b"_hnsw_config", "_multivector_config", b"_multivector_config", "_on_disk", b"_on_disk", "_quantization_config", b"_quantization_config", "datatype", b"datatype", "distance", b"distance", "hnsw_config", b"hnsw_config", "multivector_config", b"multivector_config", "on_disk", b"on_disk", "quantization_config", b"quantization_config", "size", b"size"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_datatype", b"_datatype"]) -> typing.Literal["datatype"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_hnsw_config", b"_hnsw_config"]) -> typing.Literal["hnsw_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_multivector_config", b"_multivector_config"]) -> typing.Literal["multivector_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk", b"_on_disk"]) -> typing.Literal["on_disk"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_quantization_config", b"_quantization_config"]) -> typing.Literal["quantization_config"] | None: ... + +global___VectorParams = VectorParams + +@typing.final +class VectorParamsDiff(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HNSW_CONFIG_FIELD_NUMBER: builtins.int + QUANTIZATION_CONFIG_FIELD_NUMBER: builtins.int + ON_DISK_FIELD_NUMBER: builtins.int + on_disk: builtins.bool + """If true - serve vectors from disk. If set to false, the vectors will be loaded in RAM.""" + @property + def hnsw_config(self) -> global___HnswConfigDiff: + """Update params for HNSW index. If empty object - it will be unset""" + + @property + def quantization_config(self) -> global___QuantizationConfigDiff: + """Update quantization params. If none - it is left unchanged.""" + + def __init__( + self, + *, + hnsw_config: global___HnswConfigDiff | None = ..., + quantization_config: global___QuantizationConfigDiff | None = ..., + on_disk: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_hnsw_config", b"_hnsw_config", "_on_disk", b"_on_disk", "_quantization_config", b"_quantization_config", "hnsw_config", b"hnsw_config", "on_disk", b"on_disk", "quantization_config", b"quantization_config"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_hnsw_config", b"_hnsw_config", "_on_disk", b"_on_disk", "_quantization_config", b"_quantization_config", "hnsw_config", b"hnsw_config", "on_disk", b"on_disk", "quantization_config", b"quantization_config"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_hnsw_config", b"_hnsw_config"]) -> typing.Literal["hnsw_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk", b"_on_disk"]) -> typing.Literal["on_disk"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_quantization_config", b"_quantization_config"]) -> typing.Literal["quantization_config"] | None: ... + +global___VectorParamsDiff = VectorParamsDiff + +@typing.final +class VectorParamsMap(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MapEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___VectorParams: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___VectorParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + MAP_FIELD_NUMBER: builtins.int + @property + def map(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___VectorParams]: ... + def __init__( + self, + *, + map: collections.abc.Mapping[builtins.str, global___VectorParams] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["map", b"map"]) -> None: ... + +global___VectorParamsMap = VectorParamsMap + +@typing.final +class VectorParamsDiffMap(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MapEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___VectorParamsDiff: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___VectorParamsDiff | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + MAP_FIELD_NUMBER: builtins.int + @property + def map(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___VectorParamsDiff]: ... + def __init__( + self, + *, + map: collections.abc.Mapping[builtins.str, global___VectorParamsDiff] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["map", b"map"]) -> None: ... + +global___VectorParamsDiffMap = VectorParamsDiffMap + +@typing.final +class VectorsConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + PARAMS_MAP_FIELD_NUMBER: builtins.int + @property + def params(self) -> global___VectorParams: ... + @property + def params_map(self) -> global___VectorParamsMap: ... + def __init__( + self, + *, + params: global___VectorParams | None = ..., + params_map: global___VectorParamsMap | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["config", b"config", "params", b"params", "params_map", b"params_map"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["config", b"config", "params", b"params", "params_map", b"params_map"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["config", b"config"]) -> typing.Literal["params", "params_map"] | None: ... + +global___VectorsConfig = VectorsConfig + +@typing.final +class VectorsConfigDiff(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + PARAMS_MAP_FIELD_NUMBER: builtins.int + @property + def params(self) -> global___VectorParamsDiff: ... + @property + def params_map(self) -> global___VectorParamsDiffMap: ... + def __init__( + self, + *, + params: global___VectorParamsDiff | None = ..., + params_map: global___VectorParamsDiffMap | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["config", b"config", "params", b"params", "params_map", b"params_map"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["config", b"config", "params", b"params", "params_map", b"params_map"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["config", b"config"]) -> typing.Literal["params", "params_map"] | None: ... + +global___VectorsConfigDiff = VectorsConfigDiff + +@typing.final +class SparseVectorParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INDEX_FIELD_NUMBER: builtins.int + MODIFIER_FIELD_NUMBER: builtins.int + modifier: global___Modifier.ValueType + """If set - apply modifier to the vector values""" + @property + def index(self) -> global___SparseIndexConfig: + """Configuration of sparse index""" + + def __init__( + self, + *, + index: global___SparseIndexConfig | None = ..., + modifier: global___Modifier.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_index", b"_index", "_modifier", b"_modifier", "index", b"index", "modifier", b"modifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_index", b"_index", "_modifier", b"_modifier", "index", b"index", "modifier", b"modifier"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_index", b"_index"]) -> typing.Literal["index"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_modifier", b"_modifier"]) -> typing.Literal["modifier"] | None: ... + +global___SparseVectorParams = SparseVectorParams + +@typing.final +class SparseVectorConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MapEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___SparseVectorParams: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___SparseVectorParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + MAP_FIELD_NUMBER: builtins.int + @property + def map(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___SparseVectorParams]: ... + def __init__( + self, + *, + map: collections.abc.Mapping[builtins.str, global___SparseVectorParams] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["map", b"map"]) -> None: ... + +global___SparseVectorConfig = SparseVectorConfig + +@typing.final +class MultiVectorConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPARATOR_FIELD_NUMBER: builtins.int + comparator: global___MultiVectorComparator.ValueType + """Comparator for multi-vector search""" + def __init__( + self, + *, + comparator: global___MultiVectorComparator.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["comparator", b"comparator"]) -> None: ... + +global___MultiVectorConfig = MultiVectorConfig + +@typing.final +class GetCollectionInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + def __init__( + self, + *, + collection_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["collection_name", b"collection_name"]) -> None: ... + +global___GetCollectionInfoRequest = GetCollectionInfoRequest + +@typing.final +class CollectionExistsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + collection_name: builtins.str + def __init__( + self, + *, + collection_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["collection_name", b"collection_name"]) -> None: ... + +global___CollectionExistsRequest = CollectionExistsRequest + +@typing.final +class CollectionExists(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXISTS_FIELD_NUMBER: builtins.int + exists: builtins.bool + def __init__( + self, + *, + exists: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["exists", b"exists"]) -> None: ... + +global___CollectionExists = CollectionExists + +@typing.final +class CollectionExistsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> global___CollectionExists: ... + def __init__( + self, + *, + result: global___CollectionExists | None = ..., + time: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___CollectionExistsResponse = CollectionExistsResponse + +@typing.final +class ListCollectionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ListCollectionsRequest = ListCollectionsRequest + +@typing.final +class CollectionDescription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + name: builtins.str + """Name of the collection""" + def __init__( + self, + *, + name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... + +global___CollectionDescription = CollectionDescription + +@typing.final +class GetCollectionInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> global___CollectionInfo: ... + def __init__( + self, + *, + result: global___CollectionInfo | None = ..., + time: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___GetCollectionInfoResponse = GetCollectionInfoResponse + +@typing.final +class ListCollectionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTIONS_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def collections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CollectionDescription]: ... + def __init__( + self, + *, + collections: collections.abc.Iterable[global___CollectionDescription] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["collections", b"collections", "time", b"time"]) -> None: ... + +global___ListCollectionsResponse = ListCollectionsResponse + +@typing.final +class OptimizerStatus(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OK_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + ok: builtins.bool + error: builtins.str + def __init__( + self, + *, + ok: builtins.bool = ..., + error: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "ok", b"ok"]) -> None: ... + +global___OptimizerStatus = OptimizerStatus + +@typing.final +class HnswConfigDiff(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + M_FIELD_NUMBER: builtins.int + EF_CONSTRUCT_FIELD_NUMBER: builtins.int + FULL_SCAN_THRESHOLD_FIELD_NUMBER: builtins.int + MAX_INDEXING_THREADS_FIELD_NUMBER: builtins.int + ON_DISK_FIELD_NUMBER: builtins.int + PAYLOAD_M_FIELD_NUMBER: builtins.int + m: builtins.int + """ + Number of edges per node in the index graph. Larger the value - more accurate the search, more space required. + """ + ef_construct: builtins.int + """ + Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index. + """ + full_scan_threshold: builtins.int + """ + Minimal size (in KiloBytes) of vectors for additional payload-based indexing. + If the payload chunk is smaller than `full_scan_threshold` additional indexing won't be used - + in this case full-scan search should be preferred by query planner and additional indexing is not required. + Note: 1 Kb = 1 vector of size 256 + """ + max_indexing_threads: builtins.int + """ + Number of parallel threads used for background index building. + If 0 - automatically select from 8 to 16. + Best to keep between 8 and 16 to prevent likelihood of building broken/inefficient HNSW graphs. + On small CPUs, less threads are used. + """ + on_disk: builtins.bool + """ + Store HNSW index on disk. If set to false, the index will be stored in RAM. + """ + payload_m: builtins.int + """ + Number of additional payload-aware links per node in the index graph. If not set - regular M parameter will be used. + """ + def __init__( + self, + *, + m: builtins.int | None = ..., + ef_construct: builtins.int | None = ..., + full_scan_threshold: builtins.int | None = ..., + max_indexing_threads: builtins.int | None = ..., + on_disk: builtins.bool | None = ..., + payload_m: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ef_construct", b"_ef_construct", "_full_scan_threshold", b"_full_scan_threshold", "_m", b"_m", "_max_indexing_threads", b"_max_indexing_threads", "_on_disk", b"_on_disk", "_payload_m", b"_payload_m", "ef_construct", b"ef_construct", "full_scan_threshold", b"full_scan_threshold", "m", b"m", "max_indexing_threads", b"max_indexing_threads", "on_disk", b"on_disk", "payload_m", b"payload_m"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ef_construct", b"_ef_construct", "_full_scan_threshold", b"_full_scan_threshold", "_m", b"_m", "_max_indexing_threads", b"_max_indexing_threads", "_on_disk", b"_on_disk", "_payload_m", b"_payload_m", "ef_construct", b"ef_construct", "full_scan_threshold", b"full_scan_threshold", "m", b"m", "max_indexing_threads", b"max_indexing_threads", "on_disk", b"on_disk", "payload_m", b"payload_m"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ef_construct", b"_ef_construct"]) -> typing.Literal["ef_construct"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_full_scan_threshold", b"_full_scan_threshold"]) -> typing.Literal["full_scan_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_m", b"_m"]) -> typing.Literal["m"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_max_indexing_threads", b"_max_indexing_threads"]) -> typing.Literal["max_indexing_threads"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk", b"_on_disk"]) -> typing.Literal["on_disk"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_payload_m", b"_payload_m"]) -> typing.Literal["payload_m"] | None: ... + +global___HnswConfigDiff = HnswConfigDiff + +@typing.final +class SparseIndexConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FULL_SCAN_THRESHOLD_FIELD_NUMBER: builtins.int + ON_DISK_FIELD_NUMBER: builtins.int + DATATYPE_FIELD_NUMBER: builtins.int + full_scan_threshold: builtins.int + """ + Prefer a full scan search upto (excluding) this number of vectors. + Note: this is number of vectors, not KiloBytes. + """ + on_disk: builtins.bool + """ + Store inverted index on disk. If set to false, the index will be stored in RAM. + """ + datatype: global___Datatype.ValueType + """ + Datatype used to store weights in the index. + """ + def __init__( + self, + *, + full_scan_threshold: builtins.int | None = ..., + on_disk: builtins.bool | None = ..., + datatype: global___Datatype.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_datatype", b"_datatype", "_full_scan_threshold", b"_full_scan_threshold", "_on_disk", b"_on_disk", "datatype", b"datatype", "full_scan_threshold", b"full_scan_threshold", "on_disk", b"on_disk"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_datatype", b"_datatype", "_full_scan_threshold", b"_full_scan_threshold", "_on_disk", b"_on_disk", "datatype", b"datatype", "full_scan_threshold", b"full_scan_threshold", "on_disk", b"on_disk"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_datatype", b"_datatype"]) -> typing.Literal["datatype"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_full_scan_threshold", b"_full_scan_threshold"]) -> typing.Literal["full_scan_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk", b"_on_disk"]) -> typing.Literal["on_disk"] | None: ... + +global___SparseIndexConfig = SparseIndexConfig + +@typing.final +class WalConfigDiff(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WAL_CAPACITY_MB_FIELD_NUMBER: builtins.int + WAL_SEGMENTS_AHEAD_FIELD_NUMBER: builtins.int + wal_capacity_mb: builtins.int + """Size of a single WAL block file""" + wal_segments_ahead: builtins.int + """Number of segments to create in advance""" + def __init__( + self, + *, + wal_capacity_mb: builtins.int | None = ..., + wal_segments_ahead: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_wal_capacity_mb", b"_wal_capacity_mb", "_wal_segments_ahead", b"_wal_segments_ahead", "wal_capacity_mb", b"wal_capacity_mb", "wal_segments_ahead", b"wal_segments_ahead"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_wal_capacity_mb", b"_wal_capacity_mb", "_wal_segments_ahead", b"_wal_segments_ahead", "wal_capacity_mb", b"wal_capacity_mb", "wal_segments_ahead", b"wal_segments_ahead"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wal_capacity_mb", b"_wal_capacity_mb"]) -> typing.Literal["wal_capacity_mb"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wal_segments_ahead", b"_wal_segments_ahead"]) -> typing.Literal["wal_segments_ahead"] | None: ... + +global___WalConfigDiff = WalConfigDiff + +@typing.final +class OptimizersConfigDiff(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DELETED_THRESHOLD_FIELD_NUMBER: builtins.int + VACUUM_MIN_VECTOR_NUMBER_FIELD_NUMBER: builtins.int + DEFAULT_SEGMENT_NUMBER_FIELD_NUMBER: builtins.int + MAX_SEGMENT_SIZE_FIELD_NUMBER: builtins.int + MEMMAP_THRESHOLD_FIELD_NUMBER: builtins.int + INDEXING_THRESHOLD_FIELD_NUMBER: builtins.int + FLUSH_INTERVAL_SEC_FIELD_NUMBER: builtins.int + MAX_OPTIMIZATION_THREADS_FIELD_NUMBER: builtins.int + deleted_threshold: builtins.float + """ + The minimal fraction of deleted vectors in a segment, required to perform segment optimization + """ + vacuum_min_vector_number: builtins.int + """ + The minimal number of vectors in a segment, required to perform segment optimization + """ + default_segment_number: builtins.int + """ + Target amount of segments the optimizer will try to keep. + Real amount of segments may vary depending on multiple parameters: + + - Amount of stored points. + - Current write RPS. + + It is recommended to select the default number of segments as a factor of the number of search threads, + so that each segment would be handled evenly by one of the threads. + """ + max_segment_size: builtins.int + """ + Do not create segments larger this size (in kilobytes). + Large segments might require disproportionately long indexation times, + therefore it makes sense to limit the size of segments. + + If indexing speed is more important - make this parameter lower. + If search speed is more important - make this parameter higher. + Note: 1Kb = 1 vector of size 256 + If not set, will be automatically selected considering the number of available CPUs. + """ + memmap_threshold: builtins.int + """ + Maximum size (in kilobytes) of vectors to store in-memory per segment. + Segments larger than this threshold will be stored as read-only memmaped file. + + Memmap storage is disabled by default, to enable it, set this threshold to a reasonable value. + + To disable memmap storage, set this to `0`. + + Note: 1Kb = 1 vector of size 256 + """ + indexing_threshold: builtins.int + """ + Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing + + Default value is 20,000, based on . + + To disable vector indexing, set to `0`. + + Note: 1kB = 1 vector of size 256. + """ + flush_interval_sec: builtins.int + """ + Interval between forced flushes. + """ + max_optimization_threads: builtins.int + """ + Max number of threads (jobs) for running optimizations per shard. + Note: each optimization job will also use `max_indexing_threads` threads by itself for index building. + If null - have no limit and choose dynamically to saturate CPU. + If 0 - no optimization threads, optimizations will be disabled. + """ + def __init__( + self, + *, + deleted_threshold: builtins.float | None = ..., + vacuum_min_vector_number: builtins.int | None = ..., + default_segment_number: builtins.int | None = ..., + max_segment_size: builtins.int | None = ..., + memmap_threshold: builtins.int | None = ..., + indexing_threshold: builtins.int | None = ..., + flush_interval_sec: builtins.int | None = ..., + max_optimization_threads: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_default_segment_number", b"_default_segment_number", "_deleted_threshold", b"_deleted_threshold", "_flush_interval_sec", b"_flush_interval_sec", "_indexing_threshold", b"_indexing_threshold", "_max_optimization_threads", b"_max_optimization_threads", "_max_segment_size", b"_max_segment_size", "_memmap_threshold", b"_memmap_threshold", "_vacuum_min_vector_number", b"_vacuum_min_vector_number", "default_segment_number", b"default_segment_number", "deleted_threshold", b"deleted_threshold", "flush_interval_sec", b"flush_interval_sec", "indexing_threshold", b"indexing_threshold", "max_optimization_threads", b"max_optimization_threads", "max_segment_size", b"max_segment_size", "memmap_threshold", b"memmap_threshold", "vacuum_min_vector_number", b"vacuum_min_vector_number"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_default_segment_number", b"_default_segment_number", "_deleted_threshold", b"_deleted_threshold", "_flush_interval_sec", b"_flush_interval_sec", "_indexing_threshold", b"_indexing_threshold", "_max_optimization_threads", b"_max_optimization_threads", "_max_segment_size", b"_max_segment_size", "_memmap_threshold", b"_memmap_threshold", "_vacuum_min_vector_number", b"_vacuum_min_vector_number", "default_segment_number", b"default_segment_number", "deleted_threshold", b"deleted_threshold", "flush_interval_sec", b"flush_interval_sec", "indexing_threshold", b"indexing_threshold", "max_optimization_threads", b"max_optimization_threads", "max_segment_size", b"max_segment_size", "memmap_threshold", b"memmap_threshold", "vacuum_min_vector_number", b"vacuum_min_vector_number"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_default_segment_number", b"_default_segment_number"]) -> typing.Literal["default_segment_number"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_deleted_threshold", b"_deleted_threshold"]) -> typing.Literal["deleted_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_flush_interval_sec", b"_flush_interval_sec"]) -> typing.Literal["flush_interval_sec"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_indexing_threshold", b"_indexing_threshold"]) -> typing.Literal["indexing_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_max_optimization_threads", b"_max_optimization_threads"]) -> typing.Literal["max_optimization_threads"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_max_segment_size", b"_max_segment_size"]) -> typing.Literal["max_segment_size"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_memmap_threshold", b"_memmap_threshold"]) -> typing.Literal["memmap_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vacuum_min_vector_number", b"_vacuum_min_vector_number"]) -> typing.Literal["vacuum_min_vector_number"] | None: ... + +global___OptimizersConfigDiff = OptimizersConfigDiff + +@typing.final +class ScalarQuantization(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + QUANTILE_FIELD_NUMBER: builtins.int + ALWAYS_RAM_FIELD_NUMBER: builtins.int + type: global___QuantizationType.ValueType + """Type of quantization""" + quantile: builtins.float + """Number of bits to use for quantization""" + always_ram: builtins.bool + """If true - quantized vectors always will be stored in RAM, ignoring the config of main storage""" + def __init__( + self, + *, + type: global___QuantizationType.ValueType = ..., + quantile: builtins.float | None = ..., + always_ram: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_always_ram", b"_always_ram", "_quantile", b"_quantile", "always_ram", b"always_ram", "quantile", b"quantile"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_always_ram", b"_always_ram", "_quantile", b"_quantile", "always_ram", b"always_ram", "quantile", b"quantile", "type", b"type"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_always_ram", b"_always_ram"]) -> typing.Literal["always_ram"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_quantile", b"_quantile"]) -> typing.Literal["quantile"] | None: ... + +global___ScalarQuantization = ScalarQuantization + +@typing.final +class ProductQuantization(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPRESSION_FIELD_NUMBER: builtins.int + ALWAYS_RAM_FIELD_NUMBER: builtins.int + compression: global___CompressionRatio.ValueType + """Compression ratio""" + always_ram: builtins.bool + """If true - quantized vectors always will be stored in RAM, ignoring the config of main storage""" + def __init__( + self, + *, + compression: global___CompressionRatio.ValueType = ..., + always_ram: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_always_ram", b"_always_ram", "always_ram", b"always_ram"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_always_ram", b"_always_ram", "always_ram", b"always_ram", "compression", b"compression"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_always_ram", b"_always_ram"]) -> typing.Literal["always_ram"] | None: ... + +global___ProductQuantization = ProductQuantization + +@typing.final +class BinaryQuantization(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ALWAYS_RAM_FIELD_NUMBER: builtins.int + always_ram: builtins.bool + """If true - quantized vectors always will be stored in RAM, ignoring the config of main storage""" + def __init__( + self, + *, + always_ram: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_always_ram", b"_always_ram", "always_ram", b"always_ram"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_always_ram", b"_always_ram", "always_ram", b"always_ram"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_always_ram", b"_always_ram"]) -> typing.Literal["always_ram"] | None: ... + +global___BinaryQuantization = BinaryQuantization + +@typing.final +class QuantizationConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCALAR_FIELD_NUMBER: builtins.int + PRODUCT_FIELD_NUMBER: builtins.int + BINARY_FIELD_NUMBER: builtins.int + @property + def scalar(self) -> global___ScalarQuantization: ... + @property + def product(self) -> global___ProductQuantization: ... + @property + def binary(self) -> global___BinaryQuantization: ... + def __init__( + self, + *, + scalar: global___ScalarQuantization | None = ..., + product: global___ProductQuantization | None = ..., + binary: global___BinaryQuantization | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["binary", b"binary", "product", b"product", "quantization", b"quantization", "scalar", b"scalar"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["binary", b"binary", "product", b"product", "quantization", b"quantization", "scalar", b"scalar"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["quantization", b"quantization"]) -> typing.Literal["scalar", "product", "binary"] | None: ... + +global___QuantizationConfig = QuantizationConfig + +@typing.final +class Disabled(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___Disabled = Disabled + +@typing.final +class QuantizationConfigDiff(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SCALAR_FIELD_NUMBER: builtins.int + PRODUCT_FIELD_NUMBER: builtins.int + DISABLED_FIELD_NUMBER: builtins.int + BINARY_FIELD_NUMBER: builtins.int + @property + def scalar(self) -> global___ScalarQuantization: ... + @property + def product(self) -> global___ProductQuantization: ... + @property + def disabled(self) -> global___Disabled: ... + @property + def binary(self) -> global___BinaryQuantization: ... + def __init__( + self, + *, + scalar: global___ScalarQuantization | None = ..., + product: global___ProductQuantization | None = ..., + disabled: global___Disabled | None = ..., + binary: global___BinaryQuantization | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["binary", b"binary", "disabled", b"disabled", "product", b"product", "quantization", b"quantization", "scalar", b"scalar"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["binary", b"binary", "disabled", b"disabled", "product", b"product", "quantization", b"quantization", "scalar", b"scalar"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["quantization", b"quantization"]) -> typing.Literal["scalar", "product", "disabled", "binary"] | None: ... + +global___QuantizationConfigDiff = QuantizationConfigDiff + +@typing.final +class StrictModeConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENABLED_FIELD_NUMBER: builtins.int + MAX_QUERY_LIMIT_FIELD_NUMBER: builtins.int + MAX_TIMEOUT_FIELD_NUMBER: builtins.int + UNINDEXED_FILTERING_RETRIEVE_FIELD_NUMBER: builtins.int + UNINDEXED_FILTERING_UPDATE_FIELD_NUMBER: builtins.int + SEARCH_MAX_HNSW_EF_FIELD_NUMBER: builtins.int + SEARCH_ALLOW_EXACT_FIELD_NUMBER: builtins.int + SEARCH_MAX_OVERSAMPLING_FIELD_NUMBER: builtins.int + enabled: builtins.bool + max_query_limit: builtins.int + max_timeout: builtins.int + unindexed_filtering_retrieve: builtins.bool + unindexed_filtering_update: builtins.bool + search_max_hnsw_ef: builtins.int + search_allow_exact: builtins.bool + search_max_oversampling: builtins.float + def __init__( + self, + *, + enabled: builtins.bool | None = ..., + max_query_limit: builtins.int | None = ..., + max_timeout: builtins.int | None = ..., + unindexed_filtering_retrieve: builtins.bool | None = ..., + unindexed_filtering_update: builtins.bool | None = ..., + search_max_hnsw_ef: builtins.int | None = ..., + search_allow_exact: builtins.bool | None = ..., + search_max_oversampling: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_enabled", b"_enabled", "_max_query_limit", b"_max_query_limit", "_max_timeout", b"_max_timeout", "_search_allow_exact", b"_search_allow_exact", "_search_max_hnsw_ef", b"_search_max_hnsw_ef", "_search_max_oversampling", b"_search_max_oversampling", "_unindexed_filtering_retrieve", b"_unindexed_filtering_retrieve", "_unindexed_filtering_update", b"_unindexed_filtering_update", "enabled", b"enabled", "max_query_limit", b"max_query_limit", "max_timeout", b"max_timeout", "search_allow_exact", b"search_allow_exact", "search_max_hnsw_ef", b"search_max_hnsw_ef", "search_max_oversampling", b"search_max_oversampling", "unindexed_filtering_retrieve", b"unindexed_filtering_retrieve", "unindexed_filtering_update", b"unindexed_filtering_update"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_enabled", b"_enabled", "_max_query_limit", b"_max_query_limit", "_max_timeout", b"_max_timeout", "_search_allow_exact", b"_search_allow_exact", "_search_max_hnsw_ef", b"_search_max_hnsw_ef", "_search_max_oversampling", b"_search_max_oversampling", "_unindexed_filtering_retrieve", b"_unindexed_filtering_retrieve", "_unindexed_filtering_update", b"_unindexed_filtering_update", "enabled", b"enabled", "max_query_limit", b"max_query_limit", "max_timeout", b"max_timeout", "search_allow_exact", b"search_allow_exact", "search_max_hnsw_ef", b"search_max_hnsw_ef", "search_max_oversampling", b"search_max_oversampling", "unindexed_filtering_retrieve", b"unindexed_filtering_retrieve", "unindexed_filtering_update", b"unindexed_filtering_update"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_enabled", b"_enabled"]) -> typing.Literal["enabled"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_max_query_limit", b"_max_query_limit"]) -> typing.Literal["max_query_limit"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_max_timeout", b"_max_timeout"]) -> typing.Literal["max_timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_search_allow_exact", b"_search_allow_exact"]) -> typing.Literal["search_allow_exact"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_search_max_hnsw_ef", b"_search_max_hnsw_ef"]) -> typing.Literal["search_max_hnsw_ef"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_search_max_oversampling", b"_search_max_oversampling"]) -> typing.Literal["search_max_oversampling"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_unindexed_filtering_retrieve", b"_unindexed_filtering_retrieve"]) -> typing.Literal["unindexed_filtering_retrieve"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_unindexed_filtering_update", b"_unindexed_filtering_update"]) -> typing.Literal["unindexed_filtering_update"] | None: ... + +global___StrictModeConfig = StrictModeConfig + +@typing.final +class CreateCollection(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + HNSW_CONFIG_FIELD_NUMBER: builtins.int + WAL_CONFIG_FIELD_NUMBER: builtins.int + OPTIMIZERS_CONFIG_FIELD_NUMBER: builtins.int + SHARD_NUMBER_FIELD_NUMBER: builtins.int + ON_DISK_PAYLOAD_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + VECTORS_CONFIG_FIELD_NUMBER: builtins.int + REPLICATION_FACTOR_FIELD_NUMBER: builtins.int + WRITE_CONSISTENCY_FACTOR_FIELD_NUMBER: builtins.int + INIT_FROM_COLLECTION_FIELD_NUMBER: builtins.int + QUANTIZATION_CONFIG_FIELD_NUMBER: builtins.int + SHARDING_METHOD_FIELD_NUMBER: builtins.int + SPARSE_VECTORS_CONFIG_FIELD_NUMBER: builtins.int + STRICT_MODE_CONFIG_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + shard_number: builtins.int + """Number of shards in the collection, default is 1 for standalone, otherwise equal to the number of nodes. Minimum is 1""" + on_disk_payload: builtins.bool + """If true - point's payload will not be stored in memory""" + timeout: builtins.int + """Wait timeout for operation commit in seconds, if not specified - default value will be supplied""" + replication_factor: builtins.int + """Number of replicas of each shard that network tries to maintain, default = 1""" + write_consistency_factor: builtins.int + """How many replicas should apply the operation for us to consider it successful, default = 1""" + init_from_collection: builtins.str + """Specify name of the other collection to copy data from""" + sharding_method: global___ShardingMethod.ValueType + """Sharding method""" + @property + def hnsw_config(self) -> global___HnswConfigDiff: + """Configuration of vector index""" + + @property + def wal_config(self) -> global___WalConfigDiff: + """Configuration of the Write-Ahead-Log""" + + @property + def optimizers_config(self) -> global___OptimizersConfigDiff: + """Configuration of the optimizers""" + + @property + def vectors_config(self) -> global___VectorsConfig: + """Configuration for vectors""" + + @property + def quantization_config(self) -> global___QuantizationConfig: + """Quantization configuration of vector""" + + @property + def sparse_vectors_config(self) -> global___SparseVectorConfig: + """Configuration for sparse vectors""" + + @property + def strict_mode_config(self) -> global___StrictModeConfig: + """Configuration for strict mode""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + hnsw_config: global___HnswConfigDiff | None = ..., + wal_config: global___WalConfigDiff | None = ..., + optimizers_config: global___OptimizersConfigDiff | None = ..., + shard_number: builtins.int | None = ..., + on_disk_payload: builtins.bool | None = ..., + timeout: builtins.int | None = ..., + vectors_config: global___VectorsConfig | None = ..., + replication_factor: builtins.int | None = ..., + write_consistency_factor: builtins.int | None = ..., + init_from_collection: builtins.str | None = ..., + quantization_config: global___QuantizationConfig | None = ..., + sharding_method: global___ShardingMethod.ValueType | None = ..., + sparse_vectors_config: global___SparseVectorConfig | None = ..., + strict_mode_config: global___StrictModeConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_hnsw_config", b"_hnsw_config", "_init_from_collection", b"_init_from_collection", "_on_disk_payload", b"_on_disk_payload", "_optimizers_config", b"_optimizers_config", "_quantization_config", b"_quantization_config", "_replication_factor", b"_replication_factor", "_shard_number", b"_shard_number", "_sharding_method", b"_sharding_method", "_sparse_vectors_config", b"_sparse_vectors_config", "_strict_mode_config", b"_strict_mode_config", "_timeout", b"_timeout", "_vectors_config", b"_vectors_config", "_wal_config", b"_wal_config", "_write_consistency_factor", b"_write_consistency_factor", "hnsw_config", b"hnsw_config", "init_from_collection", b"init_from_collection", "on_disk_payload", b"on_disk_payload", "optimizers_config", b"optimizers_config", "quantization_config", b"quantization_config", "replication_factor", b"replication_factor", "shard_number", b"shard_number", "sharding_method", b"sharding_method", "sparse_vectors_config", b"sparse_vectors_config", "strict_mode_config", b"strict_mode_config", "timeout", b"timeout", "vectors_config", b"vectors_config", "wal_config", b"wal_config", "write_consistency_factor", b"write_consistency_factor"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_hnsw_config", b"_hnsw_config", "_init_from_collection", b"_init_from_collection", "_on_disk_payload", b"_on_disk_payload", "_optimizers_config", b"_optimizers_config", "_quantization_config", b"_quantization_config", "_replication_factor", b"_replication_factor", "_shard_number", b"_shard_number", "_sharding_method", b"_sharding_method", "_sparse_vectors_config", b"_sparse_vectors_config", "_strict_mode_config", b"_strict_mode_config", "_timeout", b"_timeout", "_vectors_config", b"_vectors_config", "_wal_config", b"_wal_config", "_write_consistency_factor", b"_write_consistency_factor", "collection_name", b"collection_name", "hnsw_config", b"hnsw_config", "init_from_collection", b"init_from_collection", "on_disk_payload", b"on_disk_payload", "optimizers_config", b"optimizers_config", "quantization_config", b"quantization_config", "replication_factor", b"replication_factor", "shard_number", b"shard_number", "sharding_method", b"sharding_method", "sparse_vectors_config", b"sparse_vectors_config", "strict_mode_config", b"strict_mode_config", "timeout", b"timeout", "vectors_config", b"vectors_config", "wal_config", b"wal_config", "write_consistency_factor", b"write_consistency_factor"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_hnsw_config", b"_hnsw_config"]) -> typing.Literal["hnsw_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_init_from_collection", b"_init_from_collection"]) -> typing.Literal["init_from_collection"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk_payload", b"_on_disk_payload"]) -> typing.Literal["on_disk_payload"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_optimizers_config", b"_optimizers_config"]) -> typing.Literal["optimizers_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_quantization_config", b"_quantization_config"]) -> typing.Literal["quantization_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_replication_factor", b"_replication_factor"]) -> typing.Literal["replication_factor"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_number", b"_shard_number"]) -> typing.Literal["shard_number"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_sharding_method", b"_sharding_method"]) -> typing.Literal["sharding_method"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_sparse_vectors_config", b"_sparse_vectors_config"]) -> typing.Literal["sparse_vectors_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_strict_mode_config", b"_strict_mode_config"]) -> typing.Literal["strict_mode_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vectors_config", b"_vectors_config"]) -> typing.Literal["vectors_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wal_config", b"_wal_config"]) -> typing.Literal["wal_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_write_consistency_factor", b"_write_consistency_factor"]) -> typing.Literal["write_consistency_factor"] | None: ... + +global___CreateCollection = CreateCollection + +@typing.final +class UpdateCollection(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + OPTIMIZERS_CONFIG_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + HNSW_CONFIG_FIELD_NUMBER: builtins.int + VECTORS_CONFIG_FIELD_NUMBER: builtins.int + QUANTIZATION_CONFIG_FIELD_NUMBER: builtins.int + SPARSE_VECTORS_CONFIG_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + timeout: builtins.int + """Wait timeout for operation commit in seconds if blocking, if not specified - default value will be supplied""" + @property + def optimizers_config(self) -> global___OptimizersConfigDiff: + """New configuration parameters for the collection. This operation is blocking, it will only proceed once all current optimizations are complete""" + + @property + def params(self) -> global___CollectionParamsDiff: + """New configuration parameters for the collection""" + + @property + def hnsw_config(self) -> global___HnswConfigDiff: + """New HNSW parameters for the collection index""" + + @property + def vectors_config(self) -> global___VectorsConfigDiff: + """New vector parameters""" + + @property + def quantization_config(self) -> global___QuantizationConfigDiff: + """Quantization configuration of vector""" + + @property + def sparse_vectors_config(self) -> global___SparseVectorConfig: + """New sparse vector parameters""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + optimizers_config: global___OptimizersConfigDiff | None = ..., + timeout: builtins.int | None = ..., + params: global___CollectionParamsDiff | None = ..., + hnsw_config: global___HnswConfigDiff | None = ..., + vectors_config: global___VectorsConfigDiff | None = ..., + quantization_config: global___QuantizationConfigDiff | None = ..., + sparse_vectors_config: global___SparseVectorConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_hnsw_config", b"_hnsw_config", "_optimizers_config", b"_optimizers_config", "_params", b"_params", "_quantization_config", b"_quantization_config", "_sparse_vectors_config", b"_sparse_vectors_config", "_timeout", b"_timeout", "_vectors_config", b"_vectors_config", "hnsw_config", b"hnsw_config", "optimizers_config", b"optimizers_config", "params", b"params", "quantization_config", b"quantization_config", "sparse_vectors_config", b"sparse_vectors_config", "timeout", b"timeout", "vectors_config", b"vectors_config"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_hnsw_config", b"_hnsw_config", "_optimizers_config", b"_optimizers_config", "_params", b"_params", "_quantization_config", b"_quantization_config", "_sparse_vectors_config", b"_sparse_vectors_config", "_timeout", b"_timeout", "_vectors_config", b"_vectors_config", "collection_name", b"collection_name", "hnsw_config", b"hnsw_config", "optimizers_config", b"optimizers_config", "params", b"params", "quantization_config", b"quantization_config", "sparse_vectors_config", b"sparse_vectors_config", "timeout", b"timeout", "vectors_config", b"vectors_config"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_hnsw_config", b"_hnsw_config"]) -> typing.Literal["hnsw_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_optimizers_config", b"_optimizers_config"]) -> typing.Literal["optimizers_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_params", b"_params"]) -> typing.Literal["params"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_quantization_config", b"_quantization_config"]) -> typing.Literal["quantization_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_sparse_vectors_config", b"_sparse_vectors_config"]) -> typing.Literal["sparse_vectors_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vectors_config", b"_vectors_config"]) -> typing.Literal["vectors_config"] | None: ... + +global___UpdateCollection = UpdateCollection + +@typing.final +class DeleteCollection(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + timeout: builtins.int + """Wait timeout for operation commit in seconds, if not specified - default value will be supplied""" + def __init__( + self, + *, + collection_name: builtins.str = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_timeout", b"_timeout", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_timeout", b"_timeout", "collection_name", b"collection_name", "timeout", b"timeout"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___DeleteCollection = DeleteCollection + +@typing.final +class CollectionOperationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + result: builtins.bool + """if operation made changes""" + time: builtins.float + """Time spent to process""" + def __init__( + self, + *, + result: builtins.bool = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___CollectionOperationResponse = CollectionOperationResponse + +@typing.final +class CollectionParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_NUMBER_FIELD_NUMBER: builtins.int + ON_DISK_PAYLOAD_FIELD_NUMBER: builtins.int + VECTORS_CONFIG_FIELD_NUMBER: builtins.int + REPLICATION_FACTOR_FIELD_NUMBER: builtins.int + WRITE_CONSISTENCY_FACTOR_FIELD_NUMBER: builtins.int + READ_FAN_OUT_FACTOR_FIELD_NUMBER: builtins.int + SHARDING_METHOD_FIELD_NUMBER: builtins.int + SPARSE_VECTORS_CONFIG_FIELD_NUMBER: builtins.int + shard_number: builtins.int + """Number of shards in collection""" + on_disk_payload: builtins.bool + """If true - point's payload will not be stored in memory""" + replication_factor: builtins.int + """Number of replicas of each shard that network tries to maintain""" + write_consistency_factor: builtins.int + """How many replicas should apply the operation for us to consider it successful""" + read_fan_out_factor: builtins.int + """Fan-out every read request to these many additional remote nodes (and return first available response)""" + sharding_method: global___ShardingMethod.ValueType + """Sharding method""" + @property + def vectors_config(self) -> global___VectorsConfig: + """Configuration for vectors""" + + @property + def sparse_vectors_config(self) -> global___SparseVectorConfig: + """Configuration for sparse vectors""" + + def __init__( + self, + *, + shard_number: builtins.int = ..., + on_disk_payload: builtins.bool = ..., + vectors_config: global___VectorsConfig | None = ..., + replication_factor: builtins.int | None = ..., + write_consistency_factor: builtins.int | None = ..., + read_fan_out_factor: builtins.int | None = ..., + sharding_method: global___ShardingMethod.ValueType | None = ..., + sparse_vectors_config: global___SparseVectorConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_read_fan_out_factor", b"_read_fan_out_factor", "_replication_factor", b"_replication_factor", "_sharding_method", b"_sharding_method", "_sparse_vectors_config", b"_sparse_vectors_config", "_vectors_config", b"_vectors_config", "_write_consistency_factor", b"_write_consistency_factor", "read_fan_out_factor", b"read_fan_out_factor", "replication_factor", b"replication_factor", "sharding_method", b"sharding_method", "sparse_vectors_config", b"sparse_vectors_config", "vectors_config", b"vectors_config", "write_consistency_factor", b"write_consistency_factor"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_read_fan_out_factor", b"_read_fan_out_factor", "_replication_factor", b"_replication_factor", "_sharding_method", b"_sharding_method", "_sparse_vectors_config", b"_sparse_vectors_config", "_vectors_config", b"_vectors_config", "_write_consistency_factor", b"_write_consistency_factor", "on_disk_payload", b"on_disk_payload", "read_fan_out_factor", b"read_fan_out_factor", "replication_factor", b"replication_factor", "shard_number", b"shard_number", "sharding_method", b"sharding_method", "sparse_vectors_config", b"sparse_vectors_config", "vectors_config", b"vectors_config", "write_consistency_factor", b"write_consistency_factor"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_fan_out_factor", b"_read_fan_out_factor"]) -> typing.Literal["read_fan_out_factor"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_replication_factor", b"_replication_factor"]) -> typing.Literal["replication_factor"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_sharding_method", b"_sharding_method"]) -> typing.Literal["sharding_method"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_sparse_vectors_config", b"_sparse_vectors_config"]) -> typing.Literal["sparse_vectors_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vectors_config", b"_vectors_config"]) -> typing.Literal["vectors_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_write_consistency_factor", b"_write_consistency_factor"]) -> typing.Literal["write_consistency_factor"] | None: ... + +global___CollectionParams = CollectionParams + +@typing.final +class CollectionParamsDiff(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REPLICATION_FACTOR_FIELD_NUMBER: builtins.int + WRITE_CONSISTENCY_FACTOR_FIELD_NUMBER: builtins.int + ON_DISK_PAYLOAD_FIELD_NUMBER: builtins.int + READ_FAN_OUT_FACTOR_FIELD_NUMBER: builtins.int + replication_factor: builtins.int + """Number of replicas of each shard that network tries to maintain""" + write_consistency_factor: builtins.int + """How many replicas should apply the operation for us to consider it successful""" + on_disk_payload: builtins.bool + """If true - point's payload will not be stored in memory""" + read_fan_out_factor: builtins.int + """Fan-out every read request to these many additional remote nodes (and return first available response)""" + def __init__( + self, + *, + replication_factor: builtins.int | None = ..., + write_consistency_factor: builtins.int | None = ..., + on_disk_payload: builtins.bool | None = ..., + read_fan_out_factor: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_on_disk_payload", b"_on_disk_payload", "_read_fan_out_factor", b"_read_fan_out_factor", "_replication_factor", b"_replication_factor", "_write_consistency_factor", b"_write_consistency_factor", "on_disk_payload", b"on_disk_payload", "read_fan_out_factor", b"read_fan_out_factor", "replication_factor", b"replication_factor", "write_consistency_factor", b"write_consistency_factor"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_on_disk_payload", b"_on_disk_payload", "_read_fan_out_factor", b"_read_fan_out_factor", "_replication_factor", b"_replication_factor", "_write_consistency_factor", b"_write_consistency_factor", "on_disk_payload", b"on_disk_payload", "read_fan_out_factor", b"read_fan_out_factor", "replication_factor", b"replication_factor", "write_consistency_factor", b"write_consistency_factor"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk_payload", b"_on_disk_payload"]) -> typing.Literal["on_disk_payload"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_fan_out_factor", b"_read_fan_out_factor"]) -> typing.Literal["read_fan_out_factor"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_replication_factor", b"_replication_factor"]) -> typing.Literal["replication_factor"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_write_consistency_factor", b"_write_consistency_factor"]) -> typing.Literal["write_consistency_factor"] | None: ... + +global___CollectionParamsDiff = CollectionParamsDiff + +@typing.final +class CollectionConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARAMS_FIELD_NUMBER: builtins.int + HNSW_CONFIG_FIELD_NUMBER: builtins.int + OPTIMIZER_CONFIG_FIELD_NUMBER: builtins.int + WAL_CONFIG_FIELD_NUMBER: builtins.int + QUANTIZATION_CONFIG_FIELD_NUMBER: builtins.int + STRICT_MODE_CONFIG_FIELD_NUMBER: builtins.int + @property + def params(self) -> global___CollectionParams: + """Collection parameters""" + + @property + def hnsw_config(self) -> global___HnswConfigDiff: + """Configuration of vector index""" + + @property + def optimizer_config(self) -> global___OptimizersConfigDiff: + """Configuration of the optimizers""" + + @property + def wal_config(self) -> global___WalConfigDiff: + """Configuration of the Write-Ahead-Log""" + + @property + def quantization_config(self) -> global___QuantizationConfig: + """Configuration of the vector quantization""" + + @property + def strict_mode_config(self) -> global___StrictModeConfig: + """Configuration of strict mode.""" + + def __init__( + self, + *, + params: global___CollectionParams | None = ..., + hnsw_config: global___HnswConfigDiff | None = ..., + optimizer_config: global___OptimizersConfigDiff | None = ..., + wal_config: global___WalConfigDiff | None = ..., + quantization_config: global___QuantizationConfig | None = ..., + strict_mode_config: global___StrictModeConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_quantization_config", b"_quantization_config", "_strict_mode_config", b"_strict_mode_config", "hnsw_config", b"hnsw_config", "optimizer_config", b"optimizer_config", "params", b"params", "quantization_config", b"quantization_config", "strict_mode_config", b"strict_mode_config", "wal_config", b"wal_config"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_quantization_config", b"_quantization_config", "_strict_mode_config", b"_strict_mode_config", "hnsw_config", b"hnsw_config", "optimizer_config", b"optimizer_config", "params", b"params", "quantization_config", b"quantization_config", "strict_mode_config", b"strict_mode_config", "wal_config", b"wal_config"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_quantization_config", b"_quantization_config"]) -> typing.Literal["quantization_config"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_strict_mode_config", b"_strict_mode_config"]) -> typing.Literal["strict_mode_config"] | None: ... + +global___CollectionConfig = CollectionConfig + +@typing.final +class KeywordIndexParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IS_TENANT_FIELD_NUMBER: builtins.int + ON_DISK_FIELD_NUMBER: builtins.int + is_tenant: builtins.bool + """If true - used for tenant optimization.""" + on_disk: builtins.bool + """If true - store index on disk.""" + def __init__( + self, + *, + is_tenant: builtins.bool | None = ..., + on_disk: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_is_tenant", b"_is_tenant", "_on_disk", b"_on_disk", "is_tenant", b"is_tenant", "on_disk", b"on_disk"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_is_tenant", b"_is_tenant", "_on_disk", b"_on_disk", "is_tenant", b"is_tenant", "on_disk", b"on_disk"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_is_tenant", b"_is_tenant"]) -> typing.Literal["is_tenant"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk", b"_on_disk"]) -> typing.Literal["on_disk"] | None: ... + +global___KeywordIndexParams = KeywordIndexParams + +@typing.final +class IntegerIndexParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LOOKUP_FIELD_NUMBER: builtins.int + RANGE_FIELD_NUMBER: builtins.int + IS_PRINCIPAL_FIELD_NUMBER: builtins.int + ON_DISK_FIELD_NUMBER: builtins.int + lookup: builtins.bool + """If true - support direct lookups.""" + range: builtins.bool + """If true - support ranges filters.""" + is_principal: builtins.bool + """If true - use this key to organize storage of the collection data. This option assumes that this key will be used in majority of filtered requests.""" + on_disk: builtins.bool + """If true - store index on disk.""" + def __init__( + self, + *, + lookup: builtins.bool | None = ..., + range: builtins.bool | None = ..., + is_principal: builtins.bool | None = ..., + on_disk: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_is_principal", b"_is_principal", "_lookup", b"_lookup", "_on_disk", b"_on_disk", "_range", b"_range", "is_principal", b"is_principal", "lookup", b"lookup", "on_disk", b"on_disk", "range", b"range"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_is_principal", b"_is_principal", "_lookup", b"_lookup", "_on_disk", b"_on_disk", "_range", b"_range", "is_principal", b"is_principal", "lookup", b"lookup", "on_disk", b"on_disk", "range", b"range"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_is_principal", b"_is_principal"]) -> typing.Literal["is_principal"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lookup", b"_lookup"]) -> typing.Literal["lookup"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk", b"_on_disk"]) -> typing.Literal["on_disk"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_range", b"_range"]) -> typing.Literal["range"] | None: ... + +global___IntegerIndexParams = IntegerIndexParams + +@typing.final +class FloatIndexParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ON_DISK_FIELD_NUMBER: builtins.int + IS_PRINCIPAL_FIELD_NUMBER: builtins.int + on_disk: builtins.bool + """If true - store index on disk.""" + is_principal: builtins.bool + """If true - use this key to organize storage of the collection data. This option assumes that this key will be used in majority of filtered requests.""" + def __init__( + self, + *, + on_disk: builtins.bool | None = ..., + is_principal: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_is_principal", b"_is_principal", "_on_disk", b"_on_disk", "is_principal", b"is_principal", "on_disk", b"on_disk"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_is_principal", b"_is_principal", "_on_disk", b"_on_disk", "is_principal", b"is_principal", "on_disk", b"on_disk"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_is_principal", b"_is_principal"]) -> typing.Literal["is_principal"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk", b"_on_disk"]) -> typing.Literal["on_disk"] | None: ... + +global___FloatIndexParams = FloatIndexParams + +@typing.final +class GeoIndexParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___GeoIndexParams = GeoIndexParams + +@typing.final +class TextIndexParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOKENIZER_FIELD_NUMBER: builtins.int + LOWERCASE_FIELD_NUMBER: builtins.int + MIN_TOKEN_LEN_FIELD_NUMBER: builtins.int + MAX_TOKEN_LEN_FIELD_NUMBER: builtins.int + tokenizer: global___TokenizerType.ValueType + """Tokenizer type""" + lowercase: builtins.bool + """If true - all tokens will be lowercase""" + min_token_len: builtins.int + """Minimal token length""" + max_token_len: builtins.int + """Maximal token length""" + def __init__( + self, + *, + tokenizer: global___TokenizerType.ValueType = ..., + lowercase: builtins.bool | None = ..., + min_token_len: builtins.int | None = ..., + max_token_len: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_lowercase", b"_lowercase", "_max_token_len", b"_max_token_len", "_min_token_len", b"_min_token_len", "lowercase", b"lowercase", "max_token_len", b"max_token_len", "min_token_len", b"min_token_len"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_lowercase", b"_lowercase", "_max_token_len", b"_max_token_len", "_min_token_len", b"_min_token_len", "lowercase", b"lowercase", "max_token_len", b"max_token_len", "min_token_len", b"min_token_len", "tokenizer", b"tokenizer"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lowercase", b"_lowercase"]) -> typing.Literal["lowercase"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_max_token_len", b"_max_token_len"]) -> typing.Literal["max_token_len"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_min_token_len", b"_min_token_len"]) -> typing.Literal["min_token_len"] | None: ... + +global___TextIndexParams = TextIndexParams + +@typing.final +class BoolIndexParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___BoolIndexParams = BoolIndexParams + +@typing.final +class DatetimeIndexParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ON_DISK_FIELD_NUMBER: builtins.int + IS_PRINCIPAL_FIELD_NUMBER: builtins.int + on_disk: builtins.bool + """If true - store index on disk.""" + is_principal: builtins.bool + """If true - use this key to organize storage of the collection data. This option assumes that this key will be used in majority of filtered requests.""" + def __init__( + self, + *, + on_disk: builtins.bool | None = ..., + is_principal: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_is_principal", b"_is_principal", "_on_disk", b"_on_disk", "is_principal", b"is_principal", "on_disk", b"on_disk"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_is_principal", b"_is_principal", "_on_disk", b"_on_disk", "is_principal", b"is_principal", "on_disk", b"on_disk"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_is_principal", b"_is_principal"]) -> typing.Literal["is_principal"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk", b"_on_disk"]) -> typing.Literal["on_disk"] | None: ... + +global___DatetimeIndexParams = DatetimeIndexParams + +@typing.final +class UuidIndexParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IS_TENANT_FIELD_NUMBER: builtins.int + ON_DISK_FIELD_NUMBER: builtins.int + is_tenant: builtins.bool + """If true - used for tenant optimization.""" + on_disk: builtins.bool + """If true - store index on disk.""" + def __init__( + self, + *, + is_tenant: builtins.bool | None = ..., + on_disk: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_is_tenant", b"_is_tenant", "_on_disk", b"_on_disk", "is_tenant", b"is_tenant", "on_disk", b"on_disk"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_is_tenant", b"_is_tenant", "_on_disk", b"_on_disk", "is_tenant", b"is_tenant", "on_disk", b"on_disk"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_is_tenant", b"_is_tenant"]) -> typing.Literal["is_tenant"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_on_disk", b"_on_disk"]) -> typing.Literal["on_disk"] | None: ... + +global___UuidIndexParams = UuidIndexParams + +@typing.final +class PayloadIndexParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEYWORD_INDEX_PARAMS_FIELD_NUMBER: builtins.int + INTEGER_INDEX_PARAMS_FIELD_NUMBER: builtins.int + FLOAT_INDEX_PARAMS_FIELD_NUMBER: builtins.int + GEO_INDEX_PARAMS_FIELD_NUMBER: builtins.int + TEXT_INDEX_PARAMS_FIELD_NUMBER: builtins.int + BOOL_INDEX_PARAMS_FIELD_NUMBER: builtins.int + DATETIME_INDEX_PARAMS_FIELD_NUMBER: builtins.int + UUID_INDEX_PARAMS_FIELD_NUMBER: builtins.int + @property + def keyword_index_params(self) -> global___KeywordIndexParams: + """Parameters for keyword index""" + + @property + def integer_index_params(self) -> global___IntegerIndexParams: + """Parameters for integer index""" + + @property + def float_index_params(self) -> global___FloatIndexParams: + """Parameters for float index""" + + @property + def geo_index_params(self) -> global___GeoIndexParams: + """Parameters for geo index""" + + @property + def text_index_params(self) -> global___TextIndexParams: + """Parameters for text index""" + + @property + def bool_index_params(self) -> global___BoolIndexParams: + """Parameters for bool index""" + + @property + def datetime_index_params(self) -> global___DatetimeIndexParams: + """Parameters for datetime index""" + + @property + def uuid_index_params(self) -> global___UuidIndexParams: + """Parameters for uuid index""" + + def __init__( + self, + *, + keyword_index_params: global___KeywordIndexParams | None = ..., + integer_index_params: global___IntegerIndexParams | None = ..., + float_index_params: global___FloatIndexParams | None = ..., + geo_index_params: global___GeoIndexParams | None = ..., + text_index_params: global___TextIndexParams | None = ..., + bool_index_params: global___BoolIndexParams | None = ..., + datetime_index_params: global___DatetimeIndexParams | None = ..., + uuid_index_params: global___UuidIndexParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["bool_index_params", b"bool_index_params", "datetime_index_params", b"datetime_index_params", "float_index_params", b"float_index_params", "geo_index_params", b"geo_index_params", "index_params", b"index_params", "integer_index_params", b"integer_index_params", "keyword_index_params", b"keyword_index_params", "text_index_params", b"text_index_params", "uuid_index_params", b"uuid_index_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["bool_index_params", b"bool_index_params", "datetime_index_params", b"datetime_index_params", "float_index_params", b"float_index_params", "geo_index_params", b"geo_index_params", "index_params", b"index_params", "integer_index_params", b"integer_index_params", "keyword_index_params", b"keyword_index_params", "text_index_params", b"text_index_params", "uuid_index_params", b"uuid_index_params"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["index_params", b"index_params"]) -> typing.Literal["keyword_index_params", "integer_index_params", "float_index_params", "geo_index_params", "text_index_params", "bool_index_params", "datetime_index_params", "uuid_index_params"] | None: ... + +global___PayloadIndexParams = PayloadIndexParams + +@typing.final +class PayloadSchemaInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_TYPE_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + POINTS_FIELD_NUMBER: builtins.int + data_type: global___PayloadSchemaType.ValueType + """Field data type""" + points: builtins.int + """Number of points indexed within this field indexed""" + @property + def params(self) -> global___PayloadIndexParams: + """Field index parameters""" + + def __init__( + self, + *, + data_type: global___PayloadSchemaType.ValueType = ..., + params: global___PayloadIndexParams | None = ..., + points: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_params", b"_params", "_points", b"_points", "params", b"params", "points", b"points"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_params", b"_params", "_points", b"_points", "data_type", b"data_type", "params", b"params", "points", b"points"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_params", b"_params"]) -> typing.Literal["params"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_points", b"_points"]) -> typing.Literal["points"] | None: ... + +global___PayloadSchemaInfo = PayloadSchemaInfo + +@typing.final +class CollectionInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class PayloadSchemaEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___PayloadSchemaInfo: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___PayloadSchemaInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + STATUS_FIELD_NUMBER: builtins.int + OPTIMIZER_STATUS_FIELD_NUMBER: builtins.int + VECTORS_COUNT_FIELD_NUMBER: builtins.int + SEGMENTS_COUNT_FIELD_NUMBER: builtins.int + CONFIG_FIELD_NUMBER: builtins.int + PAYLOAD_SCHEMA_FIELD_NUMBER: builtins.int + POINTS_COUNT_FIELD_NUMBER: builtins.int + INDEXED_VECTORS_COUNT_FIELD_NUMBER: builtins.int + status: global___CollectionStatus.ValueType + """operating condition of the collection""" + vectors_count: builtins.int + """Approximate number of vectors in the collection""" + segments_count: builtins.int + """Number of independent segments""" + points_count: builtins.int + """Approximate number of points in the collection""" + indexed_vectors_count: builtins.int + """Approximate number of indexed vectors in the collection.""" + @property + def optimizer_status(self) -> global___OptimizerStatus: + """status of collection optimizers""" + + @property + def config(self) -> global___CollectionConfig: + """Configuration""" + + @property + def payload_schema(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___PayloadSchemaInfo]: + """Collection data types""" + + def __init__( + self, + *, + status: global___CollectionStatus.ValueType = ..., + optimizer_status: global___OptimizerStatus | None = ..., + vectors_count: builtins.int | None = ..., + segments_count: builtins.int = ..., + config: global___CollectionConfig | None = ..., + payload_schema: collections.abc.Mapping[builtins.str, global___PayloadSchemaInfo] | None = ..., + points_count: builtins.int | None = ..., + indexed_vectors_count: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_indexed_vectors_count", b"_indexed_vectors_count", "_points_count", b"_points_count", "_vectors_count", b"_vectors_count", "config", b"config", "indexed_vectors_count", b"indexed_vectors_count", "optimizer_status", b"optimizer_status", "points_count", b"points_count", "vectors_count", b"vectors_count"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_indexed_vectors_count", b"_indexed_vectors_count", "_points_count", b"_points_count", "_vectors_count", b"_vectors_count", "config", b"config", "indexed_vectors_count", b"indexed_vectors_count", "optimizer_status", b"optimizer_status", "payload_schema", b"payload_schema", "points_count", b"points_count", "segments_count", b"segments_count", "status", b"status", "vectors_count", b"vectors_count"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_indexed_vectors_count", b"_indexed_vectors_count"]) -> typing.Literal["indexed_vectors_count"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_points_count", b"_points_count"]) -> typing.Literal["points_count"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vectors_count", b"_vectors_count"]) -> typing.Literal["vectors_count"] | None: ... + +global___CollectionInfo = CollectionInfo + +@typing.final +class ChangeAliases(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTIONS_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + timeout: builtins.int + """Wait timeout for operation commit in seconds, if not specified - default value will be supplied""" + @property + def actions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AliasOperations]: + """List of actions""" + + def __init__( + self, + *, + actions: collections.abc.Iterable[global___AliasOperations] | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_timeout", b"_timeout", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_timeout", b"_timeout", "actions", b"actions", "timeout", b"timeout"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___ChangeAliases = ChangeAliases + +@typing.final +class AliasOperations(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREATE_ALIAS_FIELD_NUMBER: builtins.int + RENAME_ALIAS_FIELD_NUMBER: builtins.int + DELETE_ALIAS_FIELD_NUMBER: builtins.int + @property + def create_alias(self) -> global___CreateAlias: ... + @property + def rename_alias(self) -> global___RenameAlias: ... + @property + def delete_alias(self) -> global___DeleteAlias: ... + def __init__( + self, + *, + create_alias: global___CreateAlias | None = ..., + rename_alias: global___RenameAlias | None = ..., + delete_alias: global___DeleteAlias | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["action", b"action", "create_alias", b"create_alias", "delete_alias", b"delete_alias", "rename_alias", b"rename_alias"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["action", b"action", "create_alias", b"create_alias", "delete_alias", b"delete_alias", "rename_alias", b"rename_alias"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["action", b"action"]) -> typing.Literal["create_alias", "rename_alias", "delete_alias"] | None: ... + +global___AliasOperations = AliasOperations + +@typing.final +class CreateAlias(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + ALIAS_NAME_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + alias_name: builtins.str + """New name of the alias""" + def __init__( + self, + *, + collection_name: builtins.str = ..., + alias_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["alias_name", b"alias_name", "collection_name", b"collection_name"]) -> None: ... + +global___CreateAlias = CreateAlias + +@typing.final +class RenameAlias(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OLD_ALIAS_NAME_FIELD_NUMBER: builtins.int + NEW_ALIAS_NAME_FIELD_NUMBER: builtins.int + old_alias_name: builtins.str + """Name of the alias to rename""" + new_alias_name: builtins.str + """Name of the alias""" + def __init__( + self, + *, + old_alias_name: builtins.str = ..., + new_alias_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["new_alias_name", b"new_alias_name", "old_alias_name", b"old_alias_name"]) -> None: ... + +global___RenameAlias = RenameAlias + +@typing.final +class DeleteAlias(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ALIAS_NAME_FIELD_NUMBER: builtins.int + alias_name: builtins.str + """Name of the alias""" + def __init__( + self, + *, + alias_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["alias_name", b"alias_name"]) -> None: ... + +global___DeleteAlias = DeleteAlias + +@typing.final +class ListAliasesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ListAliasesRequest = ListAliasesRequest + +@typing.final +class ListCollectionAliasesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + def __init__( + self, + *, + collection_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["collection_name", b"collection_name"]) -> None: ... + +global___ListCollectionAliasesRequest = ListCollectionAliasesRequest + +@typing.final +class AliasDescription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ALIAS_NAME_FIELD_NUMBER: builtins.int + COLLECTION_NAME_FIELD_NUMBER: builtins.int + alias_name: builtins.str + """Name of the alias""" + collection_name: builtins.str + """Name of the collection""" + def __init__( + self, + *, + alias_name: builtins.str = ..., + collection_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["alias_name", b"alias_name", "collection_name", b"collection_name"]) -> None: ... + +global___AliasDescription = AliasDescription + +@typing.final +class ListAliasesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ALIASES_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def aliases(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AliasDescription]: ... + def __init__( + self, + *, + aliases: collections.abc.Iterable[global___AliasDescription] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["aliases", b"aliases", "time", b"time"]) -> None: ... + +global___ListAliasesResponse = ListAliasesResponse + +@typing.final +class CollectionClusterInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + def __init__( + self, + *, + collection_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["collection_name", b"collection_name"]) -> None: ... + +global___CollectionClusterInfoRequest = CollectionClusterInfoRequest + +@typing.final +class ShardKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEYWORD_FIELD_NUMBER: builtins.int + NUMBER_FIELD_NUMBER: builtins.int + keyword: builtins.str + """String key""" + number: builtins.int + """Number key""" + def __init__( + self, + *, + keyword: builtins.str = ..., + number: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "keyword", b"keyword", "number", b"number"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "keyword", b"keyword", "number", b"number"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["key", b"key"]) -> typing.Literal["keyword", "number"] | None: ... + +global___ShardKey = ShardKey + +@typing.final +class LocalShardInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_ID_FIELD_NUMBER: builtins.int + POINTS_COUNT_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + SHARD_KEY_FIELD_NUMBER: builtins.int + shard_id: builtins.int + """Local shard id""" + points_count: builtins.int + """Number of points in the shard""" + state: global___ReplicaState.ValueType + """Is replica active""" + @property + def shard_key(self) -> global___ShardKey: + """User-defined shard key""" + + def __init__( + self, + *, + shard_id: builtins.int = ..., + points_count: builtins.int = ..., + state: global___ReplicaState.ValueType = ..., + shard_key: global___ShardKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_shard_key", b"_shard_key", "shard_key", b"shard_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_shard_key", b"_shard_key", "points_count", b"points_count", "shard_id", b"shard_id", "shard_key", b"shard_key", "state", b"state"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_shard_key", b"_shard_key"]) -> typing.Literal["shard_key"] | None: ... + +global___LocalShardInfo = LocalShardInfo + +@typing.final +class RemoteShardInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_ID_FIELD_NUMBER: builtins.int + PEER_ID_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + SHARD_KEY_FIELD_NUMBER: builtins.int + shard_id: builtins.int + """Local shard id""" + peer_id: builtins.int + """Remote peer id""" + state: global___ReplicaState.ValueType + """Is replica active""" + @property + def shard_key(self) -> global___ShardKey: + """User-defined shard key""" + + def __init__( + self, + *, + shard_id: builtins.int = ..., + peer_id: builtins.int = ..., + state: global___ReplicaState.ValueType = ..., + shard_key: global___ShardKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_shard_key", b"_shard_key", "shard_key", b"shard_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_shard_key", b"_shard_key", "peer_id", b"peer_id", "shard_id", b"shard_id", "shard_key", b"shard_key", "state", b"state"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_shard_key", b"_shard_key"]) -> typing.Literal["shard_key"] | None: ... + +global___RemoteShardInfo = RemoteShardInfo + +@typing.final +class ShardTransferInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_ID_FIELD_NUMBER: builtins.int + TO_SHARD_ID_FIELD_NUMBER: builtins.int + FROM_FIELD_NUMBER: builtins.int + TO_FIELD_NUMBER: builtins.int + SYNC_FIELD_NUMBER: builtins.int + shard_id: builtins.int + """Local shard id""" + to_shard_id: builtins.int + to: builtins.int + sync: builtins.bool + """If `true` transfer is a synchronization of a replicas; If `false` transfer is a moving of a shard from one peer to another""" + def __init__( + self, + *, + shard_id: builtins.int = ..., + to_shard_id: builtins.int | None = ..., + to: builtins.int = ..., + sync: builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_to_shard_id", b"_to_shard_id", "to_shard_id", b"to_shard_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_to_shard_id", b"_to_shard_id", "from", b"from", "shard_id", b"shard_id", "sync", b"sync", "to", b"to", "to_shard_id", b"to_shard_id"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_to_shard_id", b"_to_shard_id"]) -> typing.Literal["to_shard_id"] | None: ... + +global___ShardTransferInfo = ShardTransferInfo + +@typing.final +class ReshardingInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_ID_FIELD_NUMBER: builtins.int + PEER_ID_FIELD_NUMBER: builtins.int + SHARD_KEY_FIELD_NUMBER: builtins.int + shard_id: builtins.int + peer_id: builtins.int + @property + def shard_key(self) -> global___ShardKey: ... + def __init__( + self, + *, + shard_id: builtins.int = ..., + peer_id: builtins.int = ..., + shard_key: global___ShardKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_shard_key", b"_shard_key", "shard_key", b"shard_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_shard_key", b"_shard_key", "peer_id", b"peer_id", "shard_id", b"shard_id", "shard_key", b"shard_key"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_shard_key", b"_shard_key"]) -> typing.Literal["shard_key"] | None: ... + +global___ReshardingInfo = ReshardingInfo + +@typing.final +class CollectionClusterInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PEER_ID_FIELD_NUMBER: builtins.int + SHARD_COUNT_FIELD_NUMBER: builtins.int + LOCAL_SHARDS_FIELD_NUMBER: builtins.int + REMOTE_SHARDS_FIELD_NUMBER: builtins.int + SHARD_TRANSFERS_FIELD_NUMBER: builtins.int + peer_id: builtins.int + """ID of this peer""" + shard_count: builtins.int + """Total number of shards""" + @property + def local_shards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LocalShardInfo]: + """Local shards""" + + @property + def remote_shards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RemoteShardInfo]: + """Remote shards""" + + @property + def shard_transfers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShardTransferInfo]: + """Shard transfers""" + + def __init__( + self, + *, + peer_id: builtins.int = ..., + shard_count: builtins.int = ..., + local_shards: collections.abc.Iterable[global___LocalShardInfo] | None = ..., + remote_shards: collections.abc.Iterable[global___RemoteShardInfo] | None = ..., + shard_transfers: collections.abc.Iterable[global___ShardTransferInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["local_shards", b"local_shards", "peer_id", b"peer_id", "remote_shards", b"remote_shards", "shard_count", b"shard_count", "shard_transfers", b"shard_transfers"]) -> None: ... + +global___CollectionClusterInfoResponse = CollectionClusterInfoResponse + +@typing.final +class MoveShard(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_ID_FIELD_NUMBER: builtins.int + TO_SHARD_ID_FIELD_NUMBER: builtins.int + FROM_PEER_ID_FIELD_NUMBER: builtins.int + TO_PEER_ID_FIELD_NUMBER: builtins.int + METHOD_FIELD_NUMBER: builtins.int + shard_id: builtins.int + """Local shard id""" + to_shard_id: builtins.int + from_peer_id: builtins.int + to_peer_id: builtins.int + method: global___ShardTransferMethod.ValueType + def __init__( + self, + *, + shard_id: builtins.int = ..., + to_shard_id: builtins.int | None = ..., + from_peer_id: builtins.int = ..., + to_peer_id: builtins.int = ..., + method: global___ShardTransferMethod.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_method", b"_method", "_to_shard_id", b"_to_shard_id", "method", b"method", "to_shard_id", b"to_shard_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_method", b"_method", "_to_shard_id", b"_to_shard_id", "from_peer_id", b"from_peer_id", "method", b"method", "shard_id", b"shard_id", "to_peer_id", b"to_peer_id", "to_shard_id", b"to_shard_id"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_method", b"_method"]) -> typing.Literal["method"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_to_shard_id", b"_to_shard_id"]) -> typing.Literal["to_shard_id"] | None: ... + +global___MoveShard = MoveShard + +@typing.final +class ReplicateShard(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_ID_FIELD_NUMBER: builtins.int + TO_SHARD_ID_FIELD_NUMBER: builtins.int + FROM_PEER_ID_FIELD_NUMBER: builtins.int + TO_PEER_ID_FIELD_NUMBER: builtins.int + METHOD_FIELD_NUMBER: builtins.int + shard_id: builtins.int + """Local shard id""" + to_shard_id: builtins.int + from_peer_id: builtins.int + to_peer_id: builtins.int + method: global___ShardTransferMethod.ValueType + def __init__( + self, + *, + shard_id: builtins.int = ..., + to_shard_id: builtins.int | None = ..., + from_peer_id: builtins.int = ..., + to_peer_id: builtins.int = ..., + method: global___ShardTransferMethod.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_method", b"_method", "_to_shard_id", b"_to_shard_id", "method", b"method", "to_shard_id", b"to_shard_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_method", b"_method", "_to_shard_id", b"_to_shard_id", "from_peer_id", b"from_peer_id", "method", b"method", "shard_id", b"shard_id", "to_peer_id", b"to_peer_id", "to_shard_id", b"to_shard_id"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_method", b"_method"]) -> typing.Literal["method"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_to_shard_id", b"_to_shard_id"]) -> typing.Literal["to_shard_id"] | None: ... + +global___ReplicateShard = ReplicateShard + +@typing.final +class AbortShardTransfer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_ID_FIELD_NUMBER: builtins.int + TO_SHARD_ID_FIELD_NUMBER: builtins.int + FROM_PEER_ID_FIELD_NUMBER: builtins.int + TO_PEER_ID_FIELD_NUMBER: builtins.int + shard_id: builtins.int + """Local shard id""" + to_shard_id: builtins.int + from_peer_id: builtins.int + to_peer_id: builtins.int + def __init__( + self, + *, + shard_id: builtins.int = ..., + to_shard_id: builtins.int | None = ..., + from_peer_id: builtins.int = ..., + to_peer_id: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_to_shard_id", b"_to_shard_id", "to_shard_id", b"to_shard_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_to_shard_id", b"_to_shard_id", "from_peer_id", b"from_peer_id", "shard_id", b"shard_id", "to_peer_id", b"to_peer_id", "to_shard_id", b"to_shard_id"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_to_shard_id", b"_to_shard_id"]) -> typing.Literal["to_shard_id"] | None: ... + +global___AbortShardTransfer = AbortShardTransfer + +@typing.final +class RestartTransfer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_ID_FIELD_NUMBER: builtins.int + TO_SHARD_ID_FIELD_NUMBER: builtins.int + FROM_PEER_ID_FIELD_NUMBER: builtins.int + TO_PEER_ID_FIELD_NUMBER: builtins.int + METHOD_FIELD_NUMBER: builtins.int + shard_id: builtins.int + """Local shard id""" + to_shard_id: builtins.int + from_peer_id: builtins.int + to_peer_id: builtins.int + method: global___ShardTransferMethod.ValueType + def __init__( + self, + *, + shard_id: builtins.int = ..., + to_shard_id: builtins.int | None = ..., + from_peer_id: builtins.int = ..., + to_peer_id: builtins.int = ..., + method: global___ShardTransferMethod.ValueType = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_to_shard_id", b"_to_shard_id", "to_shard_id", b"to_shard_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_to_shard_id", b"_to_shard_id", "from_peer_id", b"from_peer_id", "method", b"method", "shard_id", b"shard_id", "to_peer_id", b"to_peer_id", "to_shard_id", b"to_shard_id"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_to_shard_id", b"_to_shard_id"]) -> typing.Literal["to_shard_id"] | None: ... + +global___RestartTransfer = RestartTransfer + +@typing.final +class Replica(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_ID_FIELD_NUMBER: builtins.int + PEER_ID_FIELD_NUMBER: builtins.int + shard_id: builtins.int + peer_id: builtins.int + def __init__( + self, + *, + shard_id: builtins.int = ..., + peer_id: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["peer_id", b"peer_id", "shard_id", b"shard_id"]) -> None: ... + +global___Replica = Replica + +@typing.final +class CreateShardKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_KEY_FIELD_NUMBER: builtins.int + SHARDS_NUMBER_FIELD_NUMBER: builtins.int + REPLICATION_FACTOR_FIELD_NUMBER: builtins.int + PLACEMENT_FIELD_NUMBER: builtins.int + shards_number: builtins.int + """Number of shards to create per shard key""" + replication_factor: builtins.int + """Number of replicas of each shard to create""" + @property + def shard_key(self) -> global___ShardKey: + """User-defined shard key""" + + @property + def placement(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: + """List of peer ids, allowed to create shards. If empty - all peers are allowed""" + + def __init__( + self, + *, + shard_key: global___ShardKey | None = ..., + shards_number: builtins.int | None = ..., + replication_factor: builtins.int | None = ..., + placement: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_replication_factor", b"_replication_factor", "_shards_number", b"_shards_number", "replication_factor", b"replication_factor", "shard_key", b"shard_key", "shards_number", b"shards_number"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_replication_factor", b"_replication_factor", "_shards_number", b"_shards_number", "placement", b"placement", "replication_factor", b"replication_factor", "shard_key", b"shard_key", "shards_number", b"shards_number"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_replication_factor", b"_replication_factor"]) -> typing.Literal["replication_factor"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shards_number", b"_shards_number"]) -> typing.Literal["shards_number"] | None: ... + +global___CreateShardKey = CreateShardKey + +@typing.final +class DeleteShardKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_KEY_FIELD_NUMBER: builtins.int + @property + def shard_key(self) -> global___ShardKey: + """Shard key to delete""" + + def __init__( + self, + *, + shard_key: global___ShardKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["shard_key", b"shard_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["shard_key", b"shard_key"]) -> None: ... + +global___DeleteShardKey = DeleteShardKey + +@typing.final +class UpdateCollectionClusterSetupRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + MOVE_SHARD_FIELD_NUMBER: builtins.int + REPLICATE_SHARD_FIELD_NUMBER: builtins.int + ABORT_TRANSFER_FIELD_NUMBER: builtins.int + DROP_REPLICA_FIELD_NUMBER: builtins.int + CREATE_SHARD_KEY_FIELD_NUMBER: builtins.int + DELETE_SHARD_KEY_FIELD_NUMBER: builtins.int + RESTART_TRANSFER_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + timeout: builtins.int + """Wait timeout for operation commit in seconds, if not specified - default value will be supplied""" + @property + def move_shard(self) -> global___MoveShard: ... + @property + def replicate_shard(self) -> global___ReplicateShard: ... + @property + def abort_transfer(self) -> global___AbortShardTransfer: ... + @property + def drop_replica(self) -> global___Replica: ... + @property + def create_shard_key(self) -> global___CreateShardKey: ... + @property + def delete_shard_key(self) -> global___DeleteShardKey: ... + @property + def restart_transfer(self) -> global___RestartTransfer: ... + def __init__( + self, + *, + collection_name: builtins.str = ..., + move_shard: global___MoveShard | None = ..., + replicate_shard: global___ReplicateShard | None = ..., + abort_transfer: global___AbortShardTransfer | None = ..., + drop_replica: global___Replica | None = ..., + create_shard_key: global___CreateShardKey | None = ..., + delete_shard_key: global___DeleteShardKey | None = ..., + restart_transfer: global___RestartTransfer | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_timeout", b"_timeout", "abort_transfer", b"abort_transfer", "create_shard_key", b"create_shard_key", "delete_shard_key", b"delete_shard_key", "drop_replica", b"drop_replica", "move_shard", b"move_shard", "operation", b"operation", "replicate_shard", b"replicate_shard", "restart_transfer", b"restart_transfer", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_timeout", b"_timeout", "abort_transfer", b"abort_transfer", "collection_name", b"collection_name", "create_shard_key", b"create_shard_key", "delete_shard_key", b"delete_shard_key", "drop_replica", b"drop_replica", "move_shard", b"move_shard", "operation", b"operation", "replicate_shard", b"replicate_shard", "restart_transfer", b"restart_transfer", "timeout", b"timeout"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["operation", b"operation"]) -> typing.Literal["move_shard", "replicate_shard", "abort_transfer", "drop_replica", "create_shard_key", "delete_shard_key", "restart_transfer"] | None: ... + +global___UpdateCollectionClusterSetupRequest = UpdateCollectionClusterSetupRequest + +@typing.final +class UpdateCollectionClusterSetupResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + result: builtins.bool + def __init__( + self, + *, + result: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result"]) -> None: ... + +global___UpdateCollectionClusterSetupResponse = UpdateCollectionClusterSetupResponse + +@typing.final +class CreateShardKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + REQUEST_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + timeout: builtins.int + """Wait timeout for operation commit in seconds, if not specified - default value will be supplied""" + @property + def request(self) -> global___CreateShardKey: + """Request to create shard key""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + request: global___CreateShardKey | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_timeout", b"_timeout", "request", b"request", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_timeout", b"_timeout", "collection_name", b"collection_name", "request", b"request", "timeout", b"timeout"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___CreateShardKeyRequest = CreateShardKeyRequest + +@typing.final +class DeleteShardKeyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + REQUEST_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + timeout: builtins.int + """Wait timeout for operation commit in seconds, if not specified - default value will be supplied""" + @property + def request(self) -> global___DeleteShardKey: + """Request to delete shard key""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + request: global___DeleteShardKey | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_timeout", b"_timeout", "request", b"request", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_timeout", b"_timeout", "collection_name", b"collection_name", "request", b"request", "timeout", b"timeout"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___DeleteShardKeyRequest = DeleteShardKeyRequest + +@typing.final +class CreateShardKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + result: builtins.bool + def __init__( + self, + *, + result: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result"]) -> None: ... + +global___CreateShardKeyResponse = CreateShardKeyResponse + +@typing.final +class DeleteShardKeyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + result: builtins.bool + def __init__( + self, + *, + result: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result"]) -> None: ... + +global___DeleteShardKeyResponse = DeleteShardKeyResponse diff --git a/qdrant_client/grpc/collections_service_pb2.pyi b/qdrant_client/grpc/collections_service_pb2.pyi new file mode 100644 index 000000000..dd854e288 --- /dev/null +++ b/qdrant_client/grpc/collections_service_pb2.pyi @@ -0,0 +1,8 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import google.protobuf.descriptor + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/qdrant_client/grpc/json_with_int_pb2.pyi b/qdrant_client/grpc/json_with_int_pb2.pyi new file mode 100644 index 000000000..6d2f04603 --- /dev/null +++ b/qdrant_client/grpc/json_with_int_pb2.pyi @@ -0,0 +1,163 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Fork of the google.protobuf.Value with explicit support for integer values""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _NullValue: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _NullValueEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_NullValue.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + NULL_VALUE: _NullValue.ValueType # 0 + """Null value.""" + +class NullValue(_NullValue, metaclass=_NullValueEnumTypeWrapper): + """`NullValue` is a singleton enumeration to represent the null value for the + `Value` type union. + + The JSON representation for `NullValue` is JSON `null`. + """ + +NULL_VALUE: NullValue.ValueType # 0 +"""Null value.""" +global___NullValue = NullValue + +@typing.final +class Struct(google.protobuf.message.Message): + """`Struct` represents a structured data value, consisting of fields + which map to dynamically typed values. In some languages, `Struct` + might be supported by a native representation. For example, in + scripting languages like JS a struct is represented as an + object. The details of that representation are described together + with the proto support for the language. + + The JSON representation for `Struct` is a JSON object. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class FieldsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___Value: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + FIELDS_FIELD_NUMBER: builtins.int + @property + def fields(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Value]: + """Unordered map of dynamically typed values.""" + + def __init__( + self, + *, + fields: collections.abc.Mapping[builtins.str, global___Value] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["fields", b"fields"]) -> None: ... + +global___Struct = Struct + +@typing.final +class Value(google.protobuf.message.Message): + """`Value` represents a dynamically typed value which can be either + null, a number, a string, a boolean, a recursive struct value, or a + list of values. A producer of value is expected to set one of those + variants, absence of any variant indicates an error. + + The JSON representation for `Value` is a JSON value. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NULL_VALUE_FIELD_NUMBER: builtins.int + DOUBLE_VALUE_FIELD_NUMBER: builtins.int + INTEGER_VALUE_FIELD_NUMBER: builtins.int + STRING_VALUE_FIELD_NUMBER: builtins.int + BOOL_VALUE_FIELD_NUMBER: builtins.int + STRUCT_VALUE_FIELD_NUMBER: builtins.int + LIST_VALUE_FIELD_NUMBER: builtins.int + null_value: global___NullValue.ValueType + """Represents a null value.""" + double_value: builtins.float + """Represents a double value.""" + integer_value: builtins.int + """Represents an integer value""" + string_value: builtins.str + """Represents a string value.""" + bool_value: builtins.bool + """Represents a boolean value.""" + @property + def struct_value(self) -> global___Struct: + """Represents a structured value.""" + + @property + def list_value(self) -> global___ListValue: + """Represents a repeated `Value`.""" + + def __init__( + self, + *, + null_value: global___NullValue.ValueType = ..., + double_value: builtins.float = ..., + integer_value: builtins.int = ..., + string_value: builtins.str = ..., + bool_value: builtins.bool = ..., + struct_value: global___Struct | None = ..., + list_value: global___ListValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["bool_value", b"bool_value", "double_value", b"double_value", "integer_value", b"integer_value", "kind", b"kind", "list_value", b"list_value", "null_value", b"null_value", "string_value", b"string_value", "struct_value", b"struct_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["bool_value", b"bool_value", "double_value", b"double_value", "integer_value", b"integer_value", "kind", b"kind", "list_value", b"list_value", "null_value", b"null_value", "string_value", b"string_value", "struct_value", b"struct_value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["kind", b"kind"]) -> typing.Literal["null_value", "double_value", "integer_value", "string_value", "bool_value", "struct_value", "list_value"] | None: ... + +global___Value = Value + +@typing.final +class ListValue(google.protobuf.message.Message): + """`ListValue` is a wrapper around a repeated field of values. + + The JSON representation for `ListValue` is a JSON array. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Value]: + """Repeated field of dynamically typed values.""" + + def __init__( + self, + *, + values: collections.abc.Iterable[global___Value] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + +global___ListValue = ListValue diff --git a/qdrant_client/grpc/points_pb2.pyi b/qdrant_client/grpc/points_pb2.pyi new file mode 100644 index 000000000..ce3ebcc01 --- /dev/null +++ b/qdrant_client/grpc/points_pb2.pyi @@ -0,0 +1,4421 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import collections.abc +import collections_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import json_with_int_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _WriteOrderingType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _WriteOrderingTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_WriteOrderingType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Weak: _WriteOrderingType.ValueType # 0 + """Write operations may be reordered, works faster, default""" + Medium: _WriteOrderingType.ValueType # 1 + """Write operations go through dynamically selected leader, may be inconsistent for a short period of time in case of leader change""" + Strong: _WriteOrderingType.ValueType # 2 + """Write operations go through the permanent leader, consistent, but may be unavailable if leader is down""" + +class WriteOrderingType(_WriteOrderingType, metaclass=_WriteOrderingTypeEnumTypeWrapper): ... + +Weak: WriteOrderingType.ValueType # 0 +"""Write operations may be reordered, works faster, default""" +Medium: WriteOrderingType.ValueType # 1 +"""Write operations go through dynamically selected leader, may be inconsistent for a short period of time in case of leader change""" +Strong: WriteOrderingType.ValueType # 2 +"""Write operations go through the permanent leader, consistent, but may be unavailable if leader is down""" +global___WriteOrderingType = WriteOrderingType + +class _ReadConsistencyType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ReadConsistencyTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ReadConsistencyType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + All: _ReadConsistencyType.ValueType # 0 + """Send request to all nodes and return points which are present on all of them""" + Majority: _ReadConsistencyType.ValueType # 1 + """Send requests to all nodes and return points which are present on majority of them""" + Quorum: _ReadConsistencyType.ValueType # 2 + """Send requests to half + 1 nodes, return points which are present on all of them""" + +class ReadConsistencyType(_ReadConsistencyType, metaclass=_ReadConsistencyTypeEnumTypeWrapper): ... + +All: ReadConsistencyType.ValueType # 0 +"""Send request to all nodes and return points which are present on all of them""" +Majority: ReadConsistencyType.ValueType # 1 +"""Send requests to all nodes and return points which are present on majority of them""" +Quorum: ReadConsistencyType.ValueType # 2 +"""Send requests to half + 1 nodes, return points which are present on all of them""" +global___ReadConsistencyType = ReadConsistencyType + +class _FieldType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _FieldTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FieldType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + FieldTypeKeyword: _FieldType.ValueType # 0 + FieldTypeInteger: _FieldType.ValueType # 1 + FieldTypeFloat: _FieldType.ValueType # 2 + FieldTypeGeo: _FieldType.ValueType # 3 + FieldTypeText: _FieldType.ValueType # 4 + FieldTypeBool: _FieldType.ValueType # 5 + FieldTypeDatetime: _FieldType.ValueType # 6 + FieldTypeUuid: _FieldType.ValueType # 7 + +class FieldType(_FieldType, metaclass=_FieldTypeEnumTypeWrapper): ... + +FieldTypeKeyword: FieldType.ValueType # 0 +FieldTypeInteger: FieldType.ValueType # 1 +FieldTypeFloat: FieldType.ValueType # 2 +FieldTypeGeo: FieldType.ValueType # 3 +FieldTypeText: FieldType.ValueType # 4 +FieldTypeBool: FieldType.ValueType # 5 +FieldTypeDatetime: FieldType.ValueType # 6 +FieldTypeUuid: FieldType.ValueType # 7 +global___FieldType = FieldType + +class _Direction: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _DirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Direction.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Asc: _Direction.ValueType # 0 + Desc: _Direction.ValueType # 1 + +class Direction(_Direction, metaclass=_DirectionEnumTypeWrapper): ... + +Asc: Direction.ValueType # 0 +Desc: Direction.ValueType # 1 +global___Direction = Direction + +class _RecommendStrategy: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _RecommendStrategyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RecommendStrategy.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + AverageVector: _RecommendStrategy.ValueType # 0 + """Average positive and negative vectors and create a single query with the formula + `query = avg_pos + avg_pos - avg_neg`. Then performs normal search. + """ + BestScore: _RecommendStrategy.ValueType # 1 + """Uses custom search objective. Each candidate is compared against all + examples, its score is then chosen from the `max(max_pos_score, max_neg_score)`. + If the `max_neg_score` is chosen then it is squared and negated. + """ + +class RecommendStrategy(_RecommendStrategy, metaclass=_RecommendStrategyEnumTypeWrapper): + """How to use positive and negative vectors to find the results, default is `AverageVector`.""" + +AverageVector: RecommendStrategy.ValueType # 0 +"""Average positive and negative vectors and create a single query with the formula +`query = avg_pos + avg_pos - avg_neg`. Then performs normal search. +""" +BestScore: RecommendStrategy.ValueType # 1 +"""Uses custom search objective. Each candidate is compared against all +examples, its score is then chosen from the `max(max_pos_score, max_neg_score)`. +If the `max_neg_score` is chosen then it is squared and negated. +""" +global___RecommendStrategy = RecommendStrategy + +class _Fusion: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _FusionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Fusion.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + RRF: _Fusion.ValueType # 0 + """Reciprocal Rank Fusion""" + DBSF: _Fusion.ValueType # 1 + """Distribution-Based Score Fusion""" + +class Fusion(_Fusion, metaclass=_FusionEnumTypeWrapper): ... + +RRF: Fusion.ValueType # 0 +"""Reciprocal Rank Fusion""" +DBSF: Fusion.ValueType # 1 +"""Distribution-Based Score Fusion""" +global___Fusion = Fusion + +class _Sample: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _SampleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Sample.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Random: _Sample.ValueType # 0 + +class Sample(_Sample, metaclass=_SampleEnumTypeWrapper): + """Sample points from the collection + + Available sampling methods: + + * `random` - Random sampling + """ + +Random: Sample.ValueType # 0 +global___Sample = Sample + +class _UpdateStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _UpdateStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_UpdateStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UnknownUpdateStatus: _UpdateStatus.ValueType # 0 + Acknowledged: _UpdateStatus.ValueType # 1 + """Update is received, but not processed yet""" + Completed: _UpdateStatus.ValueType # 2 + """Update is applied and ready for search""" + ClockRejected: _UpdateStatus.ValueType # 3 + """Internal: update is rejected due to an outdated clock""" + +class UpdateStatus(_UpdateStatus, metaclass=_UpdateStatusEnumTypeWrapper): ... + +UnknownUpdateStatus: UpdateStatus.ValueType # 0 +Acknowledged: UpdateStatus.ValueType # 1 +"""Update is received, but not processed yet""" +Completed: UpdateStatus.ValueType # 2 +"""Update is applied and ready for search""" +ClockRejected: UpdateStatus.ValueType # 3 +"""Internal: update is rejected due to an outdated clock""" +global___UpdateStatus = UpdateStatus + +@typing.final +class WriteOrdering(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + type: global___WriteOrderingType.ValueType + """Write ordering guarantees""" + def __init__( + self, + *, + type: global___WriteOrderingType.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... + +global___WriteOrdering = WriteOrdering + +@typing.final +class ReadConsistency(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + FACTOR_FIELD_NUMBER: builtins.int + type: global___ReadConsistencyType.ValueType + """Common read consistency configurations""" + factor: builtins.int + """Send request to a specified number of nodes, and return points which are present on all of them""" + def __init__( + self, + *, + type: global___ReadConsistencyType.ValueType = ..., + factor: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["factor", b"factor", "type", b"type", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["factor", b"factor", "type", b"type", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["type", "factor"] | None: ... + +global___ReadConsistency = ReadConsistency + +@typing.final +class PointId(google.protobuf.message.Message): + """--------------------------------------------- + ------------- Point Id Requests ------------- + --------------------------------------------- + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NUM_FIELD_NUMBER: builtins.int + UUID_FIELD_NUMBER: builtins.int + num: builtins.int + """Numerical ID of the point""" + uuid: builtins.str + """UUID""" + def __init__( + self, + *, + num: builtins.int = ..., + uuid: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["num", b"num", "point_id_options", b"point_id_options", "uuid", b"uuid"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["num", b"num", "point_id_options", b"point_id_options", "uuid", b"uuid"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["point_id_options", b"point_id_options"]) -> typing.Literal["num", "uuid"] | None: ... + +global___PointId = PointId + +@typing.final +class SparseIndices(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + @property + def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__( + self, + *, + data: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ... + +global___SparseIndices = SparseIndices + +@typing.final +class Vector(google.protobuf.message.Message): + """Legacy vector format, which determines the vector type by the configuration of its fields.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + INDICES_FIELD_NUMBER: builtins.int + VECTORS_COUNT_FIELD_NUMBER: builtins.int + vectors_count: builtins.int + """Number of vectors per multi vector""" + @property + def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: + """Vector data (flatten for multi vectors)""" + + @property + def indices(self) -> global___SparseIndices: + """Sparse indices for sparse vectors""" + + def __init__( + self, + *, + data: collections.abc.Iterable[builtins.float] | None = ..., + indices: global___SparseIndices | None = ..., + vectors_count: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_indices", b"_indices", "_vectors_count", b"_vectors_count", "indices", b"indices", "vectors_count", b"vectors_count"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_indices", b"_indices", "_vectors_count", b"_vectors_count", "data", b"data", "indices", b"indices", "vectors_count", b"vectors_count"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_indices", b"_indices"]) -> typing.Literal["indices"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vectors_count", b"_vectors_count"]) -> typing.Literal["vectors_count"] | None: ... + +global___Vector = Vector + +@typing.final +class DenseVector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + @property + def data(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + def __init__( + self, + *, + data: collections.abc.Iterable[builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ... + +global___DenseVector = DenseVector + +@typing.final +class SparseVector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + INDICES_FIELD_NUMBER: builtins.int + @property + def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + @property + def indices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__( + self, + *, + values: collections.abc.Iterable[builtins.float] | None = ..., + indices: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["indices", b"indices", "values", b"values"]) -> None: ... + +global___SparseVector = SparseVector + +@typing.final +class MultiDenseVector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VECTORS_FIELD_NUMBER: builtins.int + @property + def vectors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DenseVector]: ... + def __init__( + self, + *, + vectors: collections.abc.Iterable[global___DenseVector] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["vectors", b"vectors"]) -> None: ... + +global___MultiDenseVector = MultiDenseVector + +@typing.final +class VectorInput(google.protobuf.message.Message): + """Vector type to be used in queries. Ids will be substituted with their corresponding vectors from the collection.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + DENSE_FIELD_NUMBER: builtins.int + SPARSE_FIELD_NUMBER: builtins.int + MULTI_DENSE_FIELD_NUMBER: builtins.int + @property + def id(self) -> global___PointId: ... + @property + def dense(self) -> global___DenseVector: ... + @property + def sparse(self) -> global___SparseVector: ... + @property + def multi_dense(self) -> global___MultiDenseVector: ... + def __init__( + self, + *, + id: global___PointId | None = ..., + dense: global___DenseVector | None = ..., + sparse: global___SparseVector | None = ..., + multi_dense: global___MultiDenseVector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["dense", b"dense", "id", b"id", "multi_dense", b"multi_dense", "sparse", b"sparse", "variant", b"variant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["dense", b"dense", "id", b"id", "multi_dense", b"multi_dense", "sparse", b"sparse", "variant", b"variant"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["variant", b"variant"]) -> typing.Literal["id", "dense", "sparse", "multi_dense"] | None: ... + +global___VectorInput = VectorInput + +@typing.final +class ShardKeySelector(google.protobuf.message.Message): + """--------------------------------------------- + ----------------- ShardKeySelector ---------- + --------------------------------------------- + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHARD_KEYS_FIELD_NUMBER: builtins.int + @property + def shard_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[collections_pb2.ShardKey]: + """List of shard keys which should be used in the request""" + + def __init__( + self, + *, + shard_keys: collections.abc.Iterable[collections_pb2.ShardKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["shard_keys", b"shard_keys"]) -> None: ... + +global___ShardKeySelector = ShardKeySelector + +@typing.final +class UpsertPoints(google.protobuf.message.Message): + """--------------------------------------------- + ---------------- RPC Requests --------------- + --------------------------------------------- + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + POINTS_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + @property + def points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointStruct]: ... + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + points: collections.abc.Iterable[global___PointStruct] | None = ..., + ordering: global___WriteOrdering | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "ordering", b"ordering", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "collection_name", b"collection_name", "ordering", b"ordering", "points", b"points", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___UpsertPoints = UpsertPoints + +@typing.final +class DeletePoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + POINTS_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + @property + def points(self) -> global___PointsSelector: + """Affected points""" + + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + points: global___PointsSelector | None = ..., + ordering: global___WriteOrdering | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "ordering", b"ordering", "points", b"points", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "collection_name", b"collection_name", "ordering", b"ordering", "points", b"points", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___DeletePoints = DeletePoints + +@typing.final +class GetPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + IDS_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def ids(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointId]: + """List of points to retrieve""" + + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include or not""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include into response""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + ids: collections.abc.Iterable[global___PointId] | None = ..., + with_payload: global___WithPayloadSelector | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + read_consistency: global___ReadConsistency | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_with_vectors", b"_with_vectors", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_with_vectors", b"_with_vectors", "collection_name", b"collection_name", "ids", b"ids", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___GetPoints = GetPoints + +@typing.final +class UpdatePointVectors(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + POINTS_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + @property + def points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointVectors]: + """List of points and vectors to update""" + + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + points: collections.abc.Iterable[global___PointVectors] | None = ..., + ordering: global___WriteOrdering | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "ordering", b"ordering", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "collection_name", b"collection_name", "ordering", b"ordering", "points", b"points", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___UpdatePointVectors = UpdatePointVectors + +@typing.final +class PointVectors(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + VECTORS_FIELD_NUMBER: builtins.int + @property + def id(self) -> global___PointId: + """ID to update vectors for""" + + @property + def vectors(self) -> global___Vectors: + """Named vectors to update, leave others intact""" + + def __init__( + self, + *, + id: global___PointId | None = ..., + vectors: global___Vectors | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id", "vectors", b"vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["id", b"id", "vectors", b"vectors"]) -> None: ... + +global___PointVectors = PointVectors + +@typing.final +class DeletePointVectors(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + POINTS_SELECTOR_FIELD_NUMBER: builtins.int + VECTORS_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + @property + def points_selector(self) -> global___PointsSelector: + """Affected points""" + + @property + def vectors(self) -> global___VectorsSelector: + """List of vector names to delete""" + + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + points_selector: global___PointsSelector | None = ..., + vectors: global___VectorsSelector | None = ..., + ordering: global___WriteOrdering | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "ordering", b"ordering", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector", "vectors", b"vectors", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "collection_name", b"collection_name", "ordering", b"ordering", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector", "vectors", b"vectors", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___DeletePointVectors = DeletePointVectors + +@typing.final +class SetPayloadPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class PayloadEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> json_with_int_pb2.Value: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: json_with_int_pb2.Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + POINTS_SELECTOR_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + key: builtins.str + """Option for indicate property of payload""" + @property + def payload(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, json_with_int_pb2.Value]: + """New payload values""" + + @property + def points_selector(self) -> global___PointsSelector: + """Affected points""" + + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + payload: collections.abc.Mapping[builtins.str, json_with_int_pb2.Value] | None = ..., + points_selector: global___PointsSelector | None = ..., + ordering: global___WriteOrdering | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + key: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_key", b"_key", "_ordering", b"_ordering", "_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "key", b"key", "ordering", b"ordering", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_key", b"_key", "_ordering", b"_ordering", "_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "collection_name", b"collection_name", "key", b"key", "ordering", b"ordering", "payload", b"payload", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_key", b"_key"]) -> typing.Literal["key"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_points_selector", b"_points_selector"]) -> typing.Literal["points_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___SetPayloadPoints = SetPayloadPoints + +@typing.final +class DeletePayloadPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + KEYS_FIELD_NUMBER: builtins.int + POINTS_SELECTOR_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + @property + def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """List of keys to delete""" + + @property + def points_selector(self) -> global___PointsSelector: + """Affected points""" + + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + keys: collections.abc.Iterable[builtins.str] | None = ..., + points_selector: global___PointsSelector | None = ..., + ordering: global___WriteOrdering | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ordering", b"_ordering", "_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "ordering", b"ordering", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ordering", b"_ordering", "_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "collection_name", b"collection_name", "keys", b"keys", "ordering", b"ordering", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_points_selector", b"_points_selector"]) -> typing.Literal["points_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___DeletePayloadPoints = DeletePayloadPoints + +@typing.final +class ClearPayloadPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + POINTS_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + @property + def points(self) -> global___PointsSelector: + """Affected points""" + + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + points: global___PointsSelector | None = ..., + ordering: global___WriteOrdering | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "ordering", b"ordering", "points", b"points", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ordering", b"_ordering", "_shard_key_selector", b"_shard_key_selector", "_wait", b"_wait", "collection_name", b"collection_name", "ordering", b"ordering", "points", b"points", "shard_key_selector", b"shard_key_selector", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___ClearPayloadPoints = ClearPayloadPoints + +@typing.final +class CreateFieldIndexCollection(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + FIELD_NAME_FIELD_NUMBER: builtins.int + FIELD_TYPE_FIELD_NUMBER: builtins.int + FIELD_INDEX_PARAMS_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + field_name: builtins.str + """Field name to index""" + field_type: global___FieldType.ValueType + """Field type.""" + @property + def field_index_params(self) -> collections_pb2.PayloadIndexParams: + """Payload index params.""" + + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + field_name: builtins.str = ..., + field_type: global___FieldType.ValueType | None = ..., + field_index_params: collections_pb2.PayloadIndexParams | None = ..., + ordering: global___WriteOrdering | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_field_index_params", b"_field_index_params", "_field_type", b"_field_type", "_ordering", b"_ordering", "_wait", b"_wait", "field_index_params", b"field_index_params", "field_type", b"field_type", "ordering", b"ordering", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_field_index_params", b"_field_index_params", "_field_type", b"_field_type", "_ordering", b"_ordering", "_wait", b"_wait", "collection_name", b"collection_name", "field_index_params", b"field_index_params", "field_name", b"field_name", "field_type", b"field_type", "ordering", b"ordering", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_field_index_params", b"_field_index_params"]) -> typing.Literal["field_index_params"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_field_type", b"_field_type"]) -> typing.Literal["field_type"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___CreateFieldIndexCollection = CreateFieldIndexCollection + +@typing.final +class DeleteFieldIndexCollection(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + FIELD_NAME_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + field_name: builtins.str + """Field name to delete""" + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + field_name: builtins.str = ..., + ordering: global___WriteOrdering | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ordering", b"_ordering", "_wait", b"_wait", "ordering", b"ordering", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ordering", b"_ordering", "_wait", b"_wait", "collection_name", b"collection_name", "field_name", b"field_name", "ordering", b"ordering", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___DeleteFieldIndexCollection = DeleteFieldIndexCollection + +@typing.final +class PayloadIncludeSelector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FIELDS_FIELD_NUMBER: builtins.int + @property + def fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """List of payload keys to include into result""" + + def __init__( + self, + *, + fields: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["fields", b"fields"]) -> None: ... + +global___PayloadIncludeSelector = PayloadIncludeSelector + +@typing.final +class PayloadExcludeSelector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FIELDS_FIELD_NUMBER: builtins.int + @property + def fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """List of payload keys to exclude from the result""" + + def __init__( + self, + *, + fields: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["fields", b"fields"]) -> None: ... + +global___PayloadExcludeSelector = PayloadExcludeSelector + +@typing.final +class WithPayloadSelector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENABLE_FIELD_NUMBER: builtins.int + INCLUDE_FIELD_NUMBER: builtins.int + EXCLUDE_FIELD_NUMBER: builtins.int + enable: builtins.bool + """If `true` - return all payload, if `false` - none""" + @property + def include(self) -> global___PayloadIncludeSelector: ... + @property + def exclude(self) -> global___PayloadExcludeSelector: ... + def __init__( + self, + *, + enable: builtins.bool = ..., + include: global___PayloadIncludeSelector | None = ..., + exclude: global___PayloadExcludeSelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["enable", b"enable", "exclude", b"exclude", "include", b"include", "selector_options", b"selector_options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["enable", b"enable", "exclude", b"exclude", "include", b"include", "selector_options", b"selector_options"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["selector_options", b"selector_options"]) -> typing.Literal["enable", "include", "exclude"] | None: ... + +global___WithPayloadSelector = WithPayloadSelector + +@typing.final +class NamedVectors(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class VectorsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___Vector: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___Vector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + VECTORS_FIELD_NUMBER: builtins.int + @property + def vectors(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Vector]: ... + def __init__( + self, + *, + vectors: collections.abc.Mapping[builtins.str, global___Vector] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["vectors", b"vectors"]) -> None: ... + +global___NamedVectors = NamedVectors + +@typing.final +class Vectors(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VECTOR_FIELD_NUMBER: builtins.int + VECTORS_FIELD_NUMBER: builtins.int + @property + def vector(self) -> global___Vector: ... + @property + def vectors(self) -> global___NamedVectors: ... + def __init__( + self, + *, + vector: global___Vector | None = ..., + vectors: global___NamedVectors | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["vector", b"vector", "vectors", b"vectors", "vectors_options", b"vectors_options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["vector", b"vector", "vectors", b"vectors", "vectors_options", b"vectors_options"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["vectors_options", b"vectors_options"]) -> typing.Literal["vector", "vectors"] | None: ... + +global___Vectors = Vectors + +@typing.final +class VectorsSelector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMES_FIELD_NUMBER: builtins.int + @property + def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """List of vectors to include into result""" + + def __init__( + self, + *, + names: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["names", b"names"]) -> None: ... + +global___VectorsSelector = VectorsSelector + +@typing.final +class WithVectorsSelector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENABLE_FIELD_NUMBER: builtins.int + INCLUDE_FIELD_NUMBER: builtins.int + enable: builtins.bool + """If `true` - return all vectors, if `false` - none""" + @property + def include(self) -> global___VectorsSelector: + """List of payload keys to include into result""" + + def __init__( + self, + *, + enable: builtins.bool = ..., + include: global___VectorsSelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["enable", b"enable", "include", b"include", "selector_options", b"selector_options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["enable", b"enable", "include", b"include", "selector_options", b"selector_options"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["selector_options", b"selector_options"]) -> typing.Literal["enable", "include"] | None: ... + +global___WithVectorsSelector = WithVectorsSelector + +@typing.final +class QuantizationSearchParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IGNORE_FIELD_NUMBER: builtins.int + RESCORE_FIELD_NUMBER: builtins.int + OVERSAMPLING_FIELD_NUMBER: builtins.int + ignore: builtins.bool + """ + If set to true, search will ignore quantized vector data + """ + rescore: builtins.bool + """ + If true, use original vectors to re-score top-k results. If ignored, qdrant decides automatically does rescore enabled or not. + """ + oversampling: builtins.float + """ + Oversampling factor for quantization. + + Defines how many extra vectors should be pre-selected using quantized index, + and then re-scored using original vectors. + + For example, if `oversampling` is 2.4 and `limit` is 100, then 240 vectors will be pre-selected using quantized index, + and then top-100 will be returned after re-scoring. + """ + def __init__( + self, + *, + ignore: builtins.bool | None = ..., + rescore: builtins.bool | None = ..., + oversampling: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ignore", b"_ignore", "_oversampling", b"_oversampling", "_rescore", b"_rescore", "ignore", b"ignore", "oversampling", b"oversampling", "rescore", b"rescore"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ignore", b"_ignore", "_oversampling", b"_oversampling", "_rescore", b"_rescore", "ignore", b"ignore", "oversampling", b"oversampling", "rescore", b"rescore"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ignore", b"_ignore"]) -> typing.Literal["ignore"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_oversampling", b"_oversampling"]) -> typing.Literal["oversampling"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_rescore", b"_rescore"]) -> typing.Literal["rescore"] | None: ... + +global___QuantizationSearchParams = QuantizationSearchParams + +@typing.final +class SearchParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HNSW_EF_FIELD_NUMBER: builtins.int + EXACT_FIELD_NUMBER: builtins.int + QUANTIZATION_FIELD_NUMBER: builtins.int + INDEXED_ONLY_FIELD_NUMBER: builtins.int + hnsw_ef: builtins.int + """ + Params relevant to HNSW index. Size of the beam in a beam-search. + Larger the value - more accurate the result, more time required for search. + """ + exact: builtins.bool + """ + Search without approximation. If set to true, search may run long but with exact results. + """ + indexed_only: builtins.bool + """ + If enabled, the engine will only perform search among indexed or small segments. + Using this option prevents slow searches in case of delayed index, but does not + guarantee that all uploaded vectors will be included in search results + """ + @property + def quantization(self) -> global___QuantizationSearchParams: + """ + If set to true, search will ignore quantized vector data + """ + + def __init__( + self, + *, + hnsw_ef: builtins.int | None = ..., + exact: builtins.bool | None = ..., + quantization: global___QuantizationSearchParams | None = ..., + indexed_only: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_exact", b"_exact", "_hnsw_ef", b"_hnsw_ef", "_indexed_only", b"_indexed_only", "_quantization", b"_quantization", "exact", b"exact", "hnsw_ef", b"hnsw_ef", "indexed_only", b"indexed_only", "quantization", b"quantization"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_exact", b"_exact", "_hnsw_ef", b"_hnsw_ef", "_indexed_only", b"_indexed_only", "_quantization", b"_quantization", "exact", b"exact", "hnsw_ef", b"hnsw_ef", "indexed_only", b"indexed_only", "quantization", b"quantization"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_exact", b"_exact"]) -> typing.Literal["exact"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_hnsw_ef", b"_hnsw_ef"]) -> typing.Literal["hnsw_ef"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_indexed_only", b"_indexed_only"]) -> typing.Literal["indexed_only"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_quantization", b"_quantization"]) -> typing.Literal["quantization"] | None: ... + +global___SearchParams = SearchParams + +@typing.final +class SearchPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + VECTOR_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + SCORE_THRESHOLD_FIELD_NUMBER: builtins.int + OFFSET_FIELD_NUMBER: builtins.int + VECTOR_NAME_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + SPARSE_INDICES_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + limit: builtins.int + """Max number of result""" + score_threshold: builtins.float + """If provided - cut off results with worse scores""" + offset: builtins.int + """Offset of the result""" + vector_name: builtins.str + """Which vector to use for search, if not specified - use default vector""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def vector(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: + """vector""" + + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions""" + + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include or not""" + + @property + def params(self) -> global___SearchParams: + """Search config""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include into response""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + @property + def sparse_indices(self) -> global___SparseIndices: ... + def __init__( + self, + *, + collection_name: builtins.str = ..., + vector: collections.abc.Iterable[builtins.float] | None = ..., + filter: global___Filter | None = ..., + limit: builtins.int = ..., + with_payload: global___WithPayloadSelector | None = ..., + params: global___SearchParams | None = ..., + score_threshold: builtins.float | None = ..., + offset: builtins.int | None = ..., + vector_name: builtins.str | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + read_consistency: global___ReadConsistency | None = ..., + timeout: builtins.int | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + sparse_indices: global___SparseIndices | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_offset", b"_offset", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_sparse_indices", b"_sparse_indices", "_timeout", b"_timeout", "_vector_name", b"_vector_name", "_with_vectors", b"_with_vectors", "filter", b"filter", "offset", b"offset", "params", b"params", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "sparse_indices", b"sparse_indices", "timeout", b"timeout", "vector_name", b"vector_name", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_offset", b"_offset", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_sparse_indices", b"_sparse_indices", "_timeout", b"_timeout", "_vector_name", b"_vector_name", "_with_vectors", b"_with_vectors", "collection_name", b"collection_name", "filter", b"filter", "limit", b"limit", "offset", b"offset", "params", b"params", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "sparse_indices", b"sparse_indices", "timeout", b"timeout", "vector", b"vector", "vector_name", b"vector_name", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_offset", b"_offset"]) -> typing.Literal["offset"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_score_threshold", b"_score_threshold"]) -> typing.Literal["score_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_sparse_indices", b"_sparse_indices"]) -> typing.Literal["sparse_indices"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vector_name", b"_vector_name"]) -> typing.Literal["vector_name"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___SearchPoints = SearchPoints + +@typing.final +class SearchBatchPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + SEARCH_POINTS_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def search_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SearchPoints]: ... + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + search_points: collections.abc.Iterable[global___SearchPoints] | None = ..., + read_consistency: global___ReadConsistency | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_timeout", b"_timeout", "read_consistency", b"read_consistency", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_timeout", b"_timeout", "collection_name", b"collection_name", "read_consistency", b"read_consistency", "search_points", b"search_points", "timeout", b"timeout"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___SearchBatchPoints = SearchBatchPoints + +@typing.final +class WithLookup(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + collection: builtins.str + """Name of the collection to use for points lookup""" + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include (or not)""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include (or not)""" + + def __init__( + self, + *, + collection: builtins.str = ..., + with_payload: global___WithPayloadSelector | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_with_payload", b"_with_payload", "_with_vectors", b"_with_vectors", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_with_payload", b"_with_payload", "_with_vectors", b"_with_vectors", "collection", b"collection", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_payload", b"_with_payload"]) -> typing.Literal["with_payload"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___WithLookup = WithLookup + +@typing.final +class SearchPointGroups(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + VECTOR_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + SCORE_THRESHOLD_FIELD_NUMBER: builtins.int + VECTOR_NAME_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + GROUP_BY_FIELD_NUMBER: builtins.int + GROUP_SIZE_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + WITH_LOOKUP_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + SPARSE_INDICES_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + limit: builtins.int + """Max number of result""" + score_threshold: builtins.float + """If provided - cut off results with worse scores""" + vector_name: builtins.str + """Which vector to use for search, if not specified - use default vector""" + group_by: builtins.str + """Payload field to group by, must be a string or number field. If there are multiple values for the field, all of them will be used. One point can be in multiple groups.""" + group_size: builtins.int + """Maximum amount of points to return per group""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def vector(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: + """Vector to compare against""" + + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions""" + + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include or not""" + + @property + def params(self) -> global___SearchParams: + """Search config""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include into response""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def with_lookup(self) -> global___WithLookup: + """Options for specifying how to use the group id to lookup points in another collection""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + @property + def sparse_indices(self) -> global___SparseIndices: ... + def __init__( + self, + *, + collection_name: builtins.str = ..., + vector: collections.abc.Iterable[builtins.float] | None = ..., + filter: global___Filter | None = ..., + limit: builtins.int = ..., + with_payload: global___WithPayloadSelector | None = ..., + params: global___SearchParams | None = ..., + score_threshold: builtins.float | None = ..., + vector_name: builtins.str | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + group_by: builtins.str = ..., + group_size: builtins.int = ..., + read_consistency: global___ReadConsistency | None = ..., + with_lookup: global___WithLookup | None = ..., + timeout: builtins.int | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + sparse_indices: global___SparseIndices | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_sparse_indices", b"_sparse_indices", "_timeout", b"_timeout", "_vector_name", b"_vector_name", "_with_lookup", b"_with_lookup", "_with_vectors", b"_with_vectors", "filter", b"filter", "params", b"params", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "sparse_indices", b"sparse_indices", "timeout", b"timeout", "vector_name", b"vector_name", "with_lookup", b"with_lookup", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_sparse_indices", b"_sparse_indices", "_timeout", b"_timeout", "_vector_name", b"_vector_name", "_with_lookup", b"_with_lookup", "_with_vectors", b"_with_vectors", "collection_name", b"collection_name", "filter", b"filter", "group_by", b"group_by", "group_size", b"group_size", "limit", b"limit", "params", b"params", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "sparse_indices", b"sparse_indices", "timeout", b"timeout", "vector", b"vector", "vector_name", b"vector_name", "with_lookup", b"with_lookup", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_score_threshold", b"_score_threshold"]) -> typing.Literal["score_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_sparse_indices", b"_sparse_indices"]) -> typing.Literal["sparse_indices"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vector_name", b"_vector_name"]) -> typing.Literal["vector_name"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_lookup", b"_with_lookup"]) -> typing.Literal["with_lookup"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___SearchPointGroups = SearchPointGroups + +@typing.final +class StartFrom(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FLOAT_FIELD_NUMBER: builtins.int + INTEGER_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + DATETIME_FIELD_NUMBER: builtins.int + float: builtins.float + integer: builtins.int + datetime: builtins.str + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + float: builtins.float = ..., + integer: builtins.int = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + datetime: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["datetime", b"datetime", "float", b"float", "integer", b"integer", "timestamp", b"timestamp", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["datetime", b"datetime", "float", b"float", "integer", b"integer", "timestamp", b"timestamp", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["float", "integer", "timestamp", "datetime"] | None: ... + +global___StartFrom = StartFrom + +@typing.final +class OrderBy(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + DIRECTION_FIELD_NUMBER: builtins.int + START_FROM_FIELD_NUMBER: builtins.int + key: builtins.str + """Payload key to order by""" + direction: global___Direction.ValueType + """Ascending or descending order""" + @property + def start_from(self) -> global___StartFrom: + """Start from this value""" + + def __init__( + self, + *, + key: builtins.str = ..., + direction: global___Direction.ValueType | None = ..., + start_from: global___StartFrom | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_direction", b"_direction", "_start_from", b"_start_from", "direction", b"direction", "start_from", b"start_from"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_direction", b"_direction", "_start_from", b"_start_from", "direction", b"direction", "key", b"key", "start_from", b"start_from"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_direction", b"_direction"]) -> typing.Literal["direction"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_start_from", b"_start_from"]) -> typing.Literal["start_from"] | None: ... + +global___OrderBy = OrderBy + +@typing.final +class ScrollPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + OFFSET_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + limit: builtins.int + """Max number of result""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions""" + + @property + def offset(self) -> global___PointId: + """Start with this ID""" + + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include or not""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include into response""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + @property + def order_by(self) -> global___OrderBy: + """Order the records by a payload field""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + filter: global___Filter | None = ..., + offset: global___PointId | None = ..., + limit: builtins.int | None = ..., + with_payload: global___WithPayloadSelector | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + read_consistency: global___ReadConsistency | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + order_by: global___OrderBy | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_limit", b"_limit", "_offset", b"_offset", "_order_by", b"_order_by", "_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_with_vectors", b"_with_vectors", "filter", b"filter", "limit", b"limit", "offset", b"offset", "order_by", b"order_by", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_limit", b"_limit", "_offset", b"_offset", "_order_by", b"_order_by", "_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_with_vectors", b"_with_vectors", "collection_name", b"collection_name", "filter", b"filter", "limit", b"limit", "offset", b"offset", "order_by", b"order_by", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_limit", b"_limit"]) -> typing.Literal["limit"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_offset", b"_offset"]) -> typing.Literal["offset"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_order_by", b"_order_by"]) -> typing.Literal["order_by"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___ScrollPoints = ScrollPoints + +@typing.final +class LookupLocation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + VECTOR_NAME_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + vector_name: builtins.str + """Which vector to use for search, if not specified - use default vector""" + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + vector_name: builtins.str | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "_vector_name", b"_vector_name", "shard_key_selector", b"shard_key_selector", "vector_name", b"vector_name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "_vector_name", b"_vector_name", "collection_name", b"collection_name", "shard_key_selector", b"shard_key_selector", "vector_name", b"vector_name"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vector_name", b"_vector_name"]) -> typing.Literal["vector_name"] | None: ... + +global___LookupLocation = LookupLocation + +@typing.final +class RecommendPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + POSITIVE_FIELD_NUMBER: builtins.int + NEGATIVE_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + SCORE_THRESHOLD_FIELD_NUMBER: builtins.int + OFFSET_FIELD_NUMBER: builtins.int + USING_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + LOOKUP_FROM_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + STRATEGY_FIELD_NUMBER: builtins.int + POSITIVE_VECTORS_FIELD_NUMBER: builtins.int + NEGATIVE_VECTORS_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + limit: builtins.int + """Max number of result""" + score_threshold: builtins.float + """If provided - cut off results with worse scores""" + offset: builtins.int + """Offset of the result""" + using: builtins.str + """Define which vector to use for recommendation, if not specified - default vector""" + strategy: global___RecommendStrategy.ValueType + """How to use the example vectors to find the results""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def positive(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointId]: + """Look for vectors closest to the vectors from these points""" + + @property + def negative(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointId]: + """Try to avoid vectors like the vector from these points""" + + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions""" + + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include or not""" + + @property + def params(self) -> global___SearchParams: + """Search config""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include into response""" + + @property + def lookup_from(self) -> global___LookupLocation: + """Name of the collection to use for points lookup, if not specified - use current collection""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def positive_vectors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Vector]: + """Look for vectors closest to those""" + + @property + def negative_vectors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Vector]: + """Try to avoid vectors like this""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + positive: collections.abc.Iterable[global___PointId] | None = ..., + negative: collections.abc.Iterable[global___PointId] | None = ..., + filter: global___Filter | None = ..., + limit: builtins.int = ..., + with_payload: global___WithPayloadSelector | None = ..., + params: global___SearchParams | None = ..., + score_threshold: builtins.float | None = ..., + offset: builtins.int | None = ..., + using: builtins.str | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + lookup_from: global___LookupLocation | None = ..., + read_consistency: global___ReadConsistency | None = ..., + strategy: global___RecommendStrategy.ValueType | None = ..., + positive_vectors: collections.abc.Iterable[global___Vector] | None = ..., + negative_vectors: collections.abc.Iterable[global___Vector] | None = ..., + timeout: builtins.int | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_lookup_from", b"_lookup_from", "_offset", b"_offset", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_strategy", b"_strategy", "_timeout", b"_timeout", "_using", b"_using", "_with_vectors", b"_with_vectors", "filter", b"filter", "lookup_from", b"lookup_from", "offset", b"offset", "params", b"params", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "strategy", b"strategy", "timeout", b"timeout", "using", b"using", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_lookup_from", b"_lookup_from", "_offset", b"_offset", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_strategy", b"_strategy", "_timeout", b"_timeout", "_using", b"_using", "_with_vectors", b"_with_vectors", "collection_name", b"collection_name", "filter", b"filter", "limit", b"limit", "lookup_from", b"lookup_from", "negative", b"negative", "negative_vectors", b"negative_vectors", "offset", b"offset", "params", b"params", "positive", b"positive", "positive_vectors", b"positive_vectors", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "strategy", b"strategy", "timeout", b"timeout", "using", b"using", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lookup_from", b"_lookup_from"]) -> typing.Literal["lookup_from"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_offset", b"_offset"]) -> typing.Literal["offset"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_score_threshold", b"_score_threshold"]) -> typing.Literal["score_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_strategy", b"_strategy"]) -> typing.Literal["strategy"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_using", b"_using"]) -> typing.Literal["using"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___RecommendPoints = RecommendPoints + +@typing.final +class RecommendBatchPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + RECOMMEND_POINTS_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def recommend_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RecommendPoints]: ... + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + recommend_points: collections.abc.Iterable[global___RecommendPoints] | None = ..., + read_consistency: global___ReadConsistency | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_timeout", b"_timeout", "read_consistency", b"read_consistency", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_timeout", b"_timeout", "collection_name", b"collection_name", "read_consistency", b"read_consistency", "recommend_points", b"recommend_points", "timeout", b"timeout"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___RecommendBatchPoints = RecommendBatchPoints + +@typing.final +class RecommendPointGroups(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + POSITIVE_FIELD_NUMBER: builtins.int + NEGATIVE_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + SCORE_THRESHOLD_FIELD_NUMBER: builtins.int + USING_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + LOOKUP_FROM_FIELD_NUMBER: builtins.int + GROUP_BY_FIELD_NUMBER: builtins.int + GROUP_SIZE_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + WITH_LOOKUP_FIELD_NUMBER: builtins.int + STRATEGY_FIELD_NUMBER: builtins.int + POSITIVE_VECTORS_FIELD_NUMBER: builtins.int + NEGATIVE_VECTORS_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + limit: builtins.int + """Max number of groups in result""" + score_threshold: builtins.float + """If provided - cut off results with worse scores""" + using: builtins.str + """Define which vector to use for recommendation, if not specified - default vector""" + group_by: builtins.str + """Payload field to group by, must be a string or number field. If there are multiple values for the field, all of them will be used. One point can be in multiple groups.""" + group_size: builtins.int + """Maximum amount of points to return per group""" + strategy: global___RecommendStrategy.ValueType + """How to use the example vectors to find the results""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def positive(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointId]: + """Look for vectors closest to the vectors from these points""" + + @property + def negative(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointId]: + """Try to avoid vectors like the vector from these points""" + + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions""" + + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include or not""" + + @property + def params(self) -> global___SearchParams: + """Search config""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include into response""" + + @property + def lookup_from(self) -> global___LookupLocation: + """Name of the collection to use for points lookup, if not specified - use current collection""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def with_lookup(self) -> global___WithLookup: + """Options for specifying how to use the group id to lookup points in another collection""" + + @property + def positive_vectors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Vector]: + """Look for vectors closest to those""" + + @property + def negative_vectors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Vector]: + """Try to avoid vectors like this""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + positive: collections.abc.Iterable[global___PointId] | None = ..., + negative: collections.abc.Iterable[global___PointId] | None = ..., + filter: global___Filter | None = ..., + limit: builtins.int = ..., + with_payload: global___WithPayloadSelector | None = ..., + params: global___SearchParams | None = ..., + score_threshold: builtins.float | None = ..., + using: builtins.str | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + lookup_from: global___LookupLocation | None = ..., + group_by: builtins.str = ..., + group_size: builtins.int = ..., + read_consistency: global___ReadConsistency | None = ..., + with_lookup: global___WithLookup | None = ..., + strategy: global___RecommendStrategy.ValueType | None = ..., + positive_vectors: collections.abc.Iterable[global___Vector] | None = ..., + negative_vectors: collections.abc.Iterable[global___Vector] | None = ..., + timeout: builtins.int | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_lookup_from", b"_lookup_from", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_strategy", b"_strategy", "_timeout", b"_timeout", "_using", b"_using", "_with_lookup", b"_with_lookup", "_with_vectors", b"_with_vectors", "filter", b"filter", "lookup_from", b"lookup_from", "params", b"params", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "strategy", b"strategy", "timeout", b"timeout", "using", b"using", "with_lookup", b"with_lookup", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_lookup_from", b"_lookup_from", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_strategy", b"_strategy", "_timeout", b"_timeout", "_using", b"_using", "_with_lookup", b"_with_lookup", "_with_vectors", b"_with_vectors", "collection_name", b"collection_name", "filter", b"filter", "group_by", b"group_by", "group_size", b"group_size", "limit", b"limit", "lookup_from", b"lookup_from", "negative", b"negative", "negative_vectors", b"negative_vectors", "params", b"params", "positive", b"positive", "positive_vectors", b"positive_vectors", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "strategy", b"strategy", "timeout", b"timeout", "using", b"using", "with_lookup", b"with_lookup", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lookup_from", b"_lookup_from"]) -> typing.Literal["lookup_from"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_score_threshold", b"_score_threshold"]) -> typing.Literal["score_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_strategy", b"_strategy"]) -> typing.Literal["strategy"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_using", b"_using"]) -> typing.Literal["using"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_lookup", b"_with_lookup"]) -> typing.Literal["with_lookup"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___RecommendPointGroups = RecommendPointGroups + +@typing.final +class TargetVector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SINGLE_FIELD_NUMBER: builtins.int + @property + def single(self) -> global___VectorExample: ... + def __init__( + self, + *, + single: global___VectorExample | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["single", b"single", "target", b"target"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["single", b"single", "target", b"target"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["target", b"target"]) -> typing.Literal["single"] | None: ... + +global___TargetVector = TargetVector + +@typing.final +class VectorExample(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + VECTOR_FIELD_NUMBER: builtins.int + @property + def id(self) -> global___PointId: ... + @property + def vector(self) -> global___Vector: ... + def __init__( + self, + *, + id: global___PointId | None = ..., + vector: global___Vector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["example", b"example", "id", b"id", "vector", b"vector"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["example", b"example", "id", b"id", "vector", b"vector"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["example", b"example"]) -> typing.Literal["id", "vector"] | None: ... + +global___VectorExample = VectorExample + +@typing.final +class ContextExamplePair(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POSITIVE_FIELD_NUMBER: builtins.int + NEGATIVE_FIELD_NUMBER: builtins.int + @property + def positive(self) -> global___VectorExample: ... + @property + def negative(self) -> global___VectorExample: ... + def __init__( + self, + *, + positive: global___VectorExample | None = ..., + negative: global___VectorExample | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["negative", b"negative", "positive", b"positive"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["negative", b"negative", "positive", b"positive"]) -> None: ... + +global___ContextExamplePair = ContextExamplePair + +@typing.final +class DiscoverPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + TARGET_FIELD_NUMBER: builtins.int + CONTEXT_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + OFFSET_FIELD_NUMBER: builtins.int + USING_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + LOOKUP_FROM_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + limit: builtins.int + """Max number of result""" + offset: builtins.int + """Offset of the result""" + using: builtins.str + """Define which vector to use for recommendation, if not specified - default vector""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def target(self) -> global___TargetVector: + """Use this as the primary search objective""" + + @property + def context(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ContextExamplePair]: + """Search will be constrained by these pairs of examples""" + + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions""" + + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include or not""" + + @property + def params(self) -> global___SearchParams: + """Search config""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include into response""" + + @property + def lookup_from(self) -> global___LookupLocation: + """Name of the collection to use for points lookup, if not specified - use current collection""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + target: global___TargetVector | None = ..., + context: collections.abc.Iterable[global___ContextExamplePair] | None = ..., + filter: global___Filter | None = ..., + limit: builtins.int = ..., + with_payload: global___WithPayloadSelector | None = ..., + params: global___SearchParams | None = ..., + offset: builtins.int | None = ..., + using: builtins.str | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + lookup_from: global___LookupLocation | None = ..., + read_consistency: global___ReadConsistency | None = ..., + timeout: builtins.int | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_lookup_from", b"_lookup_from", "_offset", b"_offset", "_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_using", b"_using", "_with_vectors", b"_with_vectors", "filter", b"filter", "lookup_from", b"lookup_from", "offset", b"offset", "params", b"params", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "target", b"target", "timeout", b"timeout", "using", b"using", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_lookup_from", b"_lookup_from", "_offset", b"_offset", "_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_using", b"_using", "_with_vectors", b"_with_vectors", "collection_name", b"collection_name", "context", b"context", "filter", b"filter", "limit", b"limit", "lookup_from", b"lookup_from", "offset", b"offset", "params", b"params", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "target", b"target", "timeout", b"timeout", "using", b"using", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lookup_from", b"_lookup_from"]) -> typing.Literal["lookup_from"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_offset", b"_offset"]) -> typing.Literal["offset"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_using", b"_using"]) -> typing.Literal["using"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___DiscoverPoints = DiscoverPoints + +@typing.final +class DiscoverBatchPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + DISCOVER_POINTS_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def discover_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DiscoverPoints]: ... + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + discover_points: collections.abc.Iterable[global___DiscoverPoints] | None = ..., + read_consistency: global___ReadConsistency | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_timeout", b"_timeout", "read_consistency", b"read_consistency", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_timeout", b"_timeout", "collection_name", b"collection_name", "discover_points", b"discover_points", "read_consistency", b"read_consistency", "timeout", b"timeout"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___DiscoverBatchPoints = DiscoverBatchPoints + +@typing.final +class CountPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + EXACT_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + exact: builtins.bool + """If `true` - return exact count, if `false` - return approximate count""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + filter: global___Filter | None = ..., + exact: builtins.bool | None = ..., + read_consistency: global___ReadConsistency | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_exact", b"_exact", "_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "exact", b"exact", "filter", b"filter", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_exact", b"_exact", "_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "collection_name", b"collection_name", "exact", b"exact", "filter", b"filter", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_exact", b"_exact"]) -> typing.Literal["exact"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___CountPoints = CountPoints + +@typing.final +class RecommendInput(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POSITIVE_FIELD_NUMBER: builtins.int + NEGATIVE_FIELD_NUMBER: builtins.int + STRATEGY_FIELD_NUMBER: builtins.int + strategy: global___RecommendStrategy.ValueType + """How to use the provided vectors to find the results""" + @property + def positive(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VectorInput]: + """Look for vectors closest to the vectors from these points""" + + @property + def negative(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VectorInput]: + """Try to avoid vectors like the vector from these points""" + + def __init__( + self, + *, + positive: collections.abc.Iterable[global___VectorInput] | None = ..., + negative: collections.abc.Iterable[global___VectorInput] | None = ..., + strategy: global___RecommendStrategy.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_strategy", b"_strategy", "strategy", b"strategy"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_strategy", b"_strategy", "negative", b"negative", "positive", b"positive", "strategy", b"strategy"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_strategy", b"_strategy"]) -> typing.Literal["strategy"] | None: ... + +global___RecommendInput = RecommendInput + +@typing.final +class ContextInputPair(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POSITIVE_FIELD_NUMBER: builtins.int + NEGATIVE_FIELD_NUMBER: builtins.int + @property + def positive(self) -> global___VectorInput: + """A positive vector""" + + @property + def negative(self) -> global___VectorInput: + """Repel from this vector""" + + def __init__( + self, + *, + positive: global___VectorInput | None = ..., + negative: global___VectorInput | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["negative", b"negative", "positive", b"positive"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["negative", b"negative", "positive", b"positive"]) -> None: ... + +global___ContextInputPair = ContextInputPair + +@typing.final +class DiscoverInput(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TARGET_FIELD_NUMBER: builtins.int + CONTEXT_FIELD_NUMBER: builtins.int + @property + def target(self) -> global___VectorInput: + """Use this as the primary search objective""" + + @property + def context(self) -> global___ContextInput: + """Search space will be constrained by these pairs of vectors""" + + def __init__( + self, + *, + target: global___VectorInput | None = ..., + context: global___ContextInput | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["context", b"context", "target", b"target"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["context", b"context", "target", b"target"]) -> None: ... + +global___DiscoverInput = DiscoverInput + +@typing.final +class ContextInput(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAIRS_FIELD_NUMBER: builtins.int + @property + def pairs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ContextInputPair]: + """Search space will be constrained by these pairs of vectors""" + + def __init__( + self, + *, + pairs: collections.abc.Iterable[global___ContextInputPair] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["pairs", b"pairs"]) -> None: ... + +global___ContextInput = ContextInput + +@typing.final +class Query(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NEAREST_FIELD_NUMBER: builtins.int + RECOMMEND_FIELD_NUMBER: builtins.int + DISCOVER_FIELD_NUMBER: builtins.int + CONTEXT_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + FUSION_FIELD_NUMBER: builtins.int + SAMPLE_FIELD_NUMBER: builtins.int + fusion: global___Fusion.ValueType + """Fuse the results of multiple prefetches.""" + sample: global___Sample.ValueType + """Sample points from the collection.""" + @property + def nearest(self) -> global___VectorInput: + """Find the nearest neighbors to this vector.""" + + @property + def recommend(self) -> global___RecommendInput: + """Use multiple positive and negative vectors to find the results.""" + + @property + def discover(self) -> global___DiscoverInput: + """Search for nearest points, but constrain the search space with context""" + + @property + def context(self) -> global___ContextInput: + """Return points that live in positive areas.""" + + @property + def order_by(self) -> global___OrderBy: + """Order the points by a payload field.""" + + def __init__( + self, + *, + nearest: global___VectorInput | None = ..., + recommend: global___RecommendInput | None = ..., + discover: global___DiscoverInput | None = ..., + context: global___ContextInput | None = ..., + order_by: global___OrderBy | None = ..., + fusion: global___Fusion.ValueType = ..., + sample: global___Sample.ValueType = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["context", b"context", "discover", b"discover", "fusion", b"fusion", "nearest", b"nearest", "order_by", b"order_by", "recommend", b"recommend", "sample", b"sample", "variant", b"variant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["context", b"context", "discover", b"discover", "fusion", b"fusion", "nearest", b"nearest", "order_by", b"order_by", "recommend", b"recommend", "sample", b"sample", "variant", b"variant"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["variant", b"variant"]) -> typing.Literal["nearest", "recommend", "discover", "context", "order_by", "fusion", "sample"] | None: ... + +global___Query = Query + +@typing.final +class PrefetchQuery(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PREFETCH_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int + USING_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + SCORE_THRESHOLD_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + LOOKUP_FROM_FIELD_NUMBER: builtins.int + using: builtins.str + """Define which vector to use for querying. If missing, the default vector is is used.""" + score_threshold: builtins.float + """Return points with scores better than this threshold.""" + limit: builtins.int + """Max number of points. Default is 10""" + @property + def prefetch(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PrefetchQuery]: + """Sub-requests to perform first. If present, the query will be performed on the results of the prefetches.""" + + @property + def query(self) -> global___Query: + """Query to perform. If missing, returns points ordered by their IDs.""" + + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions.""" + + @property + def params(self) -> global___SearchParams: + """Search params for when there is no prefetch.""" + + @property + def lookup_from(self) -> global___LookupLocation: + """The location to use for IDs lookup, if not specified - use the current collection and the 'using' vector""" + + def __init__( + self, + *, + prefetch: collections.abc.Iterable[global___PrefetchQuery] | None = ..., + query: global___Query | None = ..., + using: builtins.str | None = ..., + filter: global___Filter | None = ..., + params: global___SearchParams | None = ..., + score_threshold: builtins.float | None = ..., + limit: builtins.int | None = ..., + lookup_from: global___LookupLocation | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_filter", b"_filter", "_limit", b"_limit", "_lookup_from", b"_lookup_from", "_params", b"_params", "_query", b"_query", "_score_threshold", b"_score_threshold", "_using", b"_using", "filter", b"filter", "limit", b"limit", "lookup_from", b"lookup_from", "params", b"params", "query", b"query", "score_threshold", b"score_threshold", "using", b"using"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_filter", b"_filter", "_limit", b"_limit", "_lookup_from", b"_lookup_from", "_params", b"_params", "_query", b"_query", "_score_threshold", b"_score_threshold", "_using", b"_using", "filter", b"filter", "limit", b"limit", "lookup_from", b"lookup_from", "params", b"params", "prefetch", b"prefetch", "query", b"query", "score_threshold", b"score_threshold", "using", b"using"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_filter", b"_filter"]) -> typing.Literal["filter"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_limit", b"_limit"]) -> typing.Literal["limit"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lookup_from", b"_lookup_from"]) -> typing.Literal["lookup_from"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_params", b"_params"]) -> typing.Literal["params"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_query", b"_query"]) -> typing.Literal["query"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_score_threshold", b"_score_threshold"]) -> typing.Literal["score_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_using", b"_using"]) -> typing.Literal["using"] | None: ... + +global___PrefetchQuery = PrefetchQuery + +@typing.final +class QueryPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + PREFETCH_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int + USING_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + SCORE_THRESHOLD_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + OFFSET_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + LOOKUP_FROM_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + using: builtins.str + """Define which vector to use for querying. If missing, the default vector is used.""" + score_threshold: builtins.float + """Return points with scores better than this threshold.""" + limit: builtins.int + """Max number of points. Default is 10.""" + offset: builtins.int + """Offset of the result. Skip this many points. Default is 0.""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def prefetch(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PrefetchQuery]: + """Sub-requests to perform first. If present, the query will be performed on the results of the prefetches.""" + + @property + def query(self) -> global___Query: + """Query to perform. If missing, returns points ordered by their IDs.""" + + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions.""" + + @property + def params(self) -> global___SearchParams: + """Search params for when there is no prefetch.""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include into the response.""" + + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include or not.""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees.""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards.""" + + @property + def lookup_from(self) -> global___LookupLocation: + """The location to use for IDs lookup, if not specified - use the current collection and the 'using' vector""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + prefetch: collections.abc.Iterable[global___PrefetchQuery] | None = ..., + query: global___Query | None = ..., + using: builtins.str | None = ..., + filter: global___Filter | None = ..., + params: global___SearchParams | None = ..., + score_threshold: builtins.float | None = ..., + limit: builtins.int | None = ..., + offset: builtins.int | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + with_payload: global___WithPayloadSelector | None = ..., + read_consistency: global___ReadConsistency | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + lookup_from: global___LookupLocation | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_filter", b"_filter", "_limit", b"_limit", "_lookup_from", b"_lookup_from", "_offset", b"_offset", "_params", b"_params", "_query", b"_query", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_using", b"_using", "_with_payload", b"_with_payload", "_with_vectors", b"_with_vectors", "filter", b"filter", "limit", b"limit", "lookup_from", b"lookup_from", "offset", b"offset", "params", b"params", "query", b"query", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout", "using", b"using", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_filter", b"_filter", "_limit", b"_limit", "_lookup_from", b"_lookup_from", "_offset", b"_offset", "_params", b"_params", "_query", b"_query", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_using", b"_using", "_with_payload", b"_with_payload", "_with_vectors", b"_with_vectors", "collection_name", b"collection_name", "filter", b"filter", "limit", b"limit", "lookup_from", b"lookup_from", "offset", b"offset", "params", b"params", "prefetch", b"prefetch", "query", b"query", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout", "using", b"using", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_filter", b"_filter"]) -> typing.Literal["filter"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_limit", b"_limit"]) -> typing.Literal["limit"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lookup_from", b"_lookup_from"]) -> typing.Literal["lookup_from"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_offset", b"_offset"]) -> typing.Literal["offset"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_params", b"_params"]) -> typing.Literal["params"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_query", b"_query"]) -> typing.Literal["query"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_score_threshold", b"_score_threshold"]) -> typing.Literal["score_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_using", b"_using"]) -> typing.Literal["using"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_payload", b"_with_payload"]) -> typing.Literal["with_payload"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___QueryPoints = QueryPoints + +@typing.final +class QueryBatchPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + QUERY_POINTS_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + collection_name: builtins.str + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def query_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryPoints]: ... + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + query_points: collections.abc.Iterable[global___QueryPoints] | None = ..., + read_consistency: global___ReadConsistency | None = ..., + timeout: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_timeout", b"_timeout", "read_consistency", b"read_consistency", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_read_consistency", b"_read_consistency", "_timeout", b"_timeout", "collection_name", b"collection_name", "query_points", b"query_points", "read_consistency", b"read_consistency", "timeout", b"timeout"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___QueryBatchPoints = QueryBatchPoints + +@typing.final +class QueryPointGroups(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + PREFETCH_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int + USING_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + SCORE_THRESHOLD_FIELD_NUMBER: builtins.int + WITH_PAYLOAD_FIELD_NUMBER: builtins.int + WITH_VECTORS_FIELD_NUMBER: builtins.int + LOOKUP_FROM_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + GROUP_SIZE_FIELD_NUMBER: builtins.int + GROUP_BY_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + WITH_LOOKUP_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + using: builtins.str + """Define which vector to use for querying. If missing, the default vector is used.""" + score_threshold: builtins.float + """Return points with scores better than this threshold.""" + limit: builtins.int + """Max number of points. Default is 3.""" + group_size: builtins.int + """Maximum amount of points to return per group. Default to 10.""" + group_by: builtins.str + """Payload field to group by, must be a string or number field. If there are multiple values for the field, all of them will be used. One point can be in multiple groups.""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def prefetch(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PrefetchQuery]: + """Sub-requests to perform first. If present, the query will be performed on the results of the prefetches.""" + + @property + def query(self) -> global___Query: + """Query to perform. If missing, returns points ordered by their IDs.""" + + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions.""" + + @property + def params(self) -> global___SearchParams: + """Search params for when there is no prefetch.""" + + @property + def with_payload(self) -> global___WithPayloadSelector: + """Options for specifying which payload to include or not""" + + @property + def with_vectors(self) -> global___WithVectorsSelector: + """Options for specifying which vectors to include into response""" + + @property + def lookup_from(self) -> global___LookupLocation: + """The location to use for IDs lookup, if not specified - use the current collection and the 'using' vector""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def with_lookup(self) -> global___WithLookup: + """Options for specifying how to use the group id to lookup points in another collection""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + prefetch: collections.abc.Iterable[global___PrefetchQuery] | None = ..., + query: global___Query | None = ..., + using: builtins.str | None = ..., + filter: global___Filter | None = ..., + params: global___SearchParams | None = ..., + score_threshold: builtins.float | None = ..., + with_payload: global___WithPayloadSelector | None = ..., + with_vectors: global___WithVectorsSelector | None = ..., + lookup_from: global___LookupLocation | None = ..., + limit: builtins.int | None = ..., + group_size: builtins.int | None = ..., + group_by: builtins.str = ..., + read_consistency: global___ReadConsistency | None = ..., + with_lookup: global___WithLookup | None = ..., + timeout: builtins.int | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_filter", b"_filter", "_group_size", b"_group_size", "_limit", b"_limit", "_lookup_from", b"_lookup_from", "_params", b"_params", "_query", b"_query", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_using", b"_using", "_with_lookup", b"_with_lookup", "_with_vectors", b"_with_vectors", "filter", b"filter", "group_size", b"group_size", "limit", b"limit", "lookup_from", b"lookup_from", "params", b"params", "query", b"query", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout", "using", b"using", "with_lookup", b"with_lookup", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_filter", b"_filter", "_group_size", b"_group_size", "_limit", b"_limit", "_lookup_from", b"_lookup_from", "_params", b"_params", "_query", b"_query", "_read_consistency", b"_read_consistency", "_score_threshold", b"_score_threshold", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "_using", b"_using", "_with_lookup", b"_with_lookup", "_with_vectors", b"_with_vectors", "collection_name", b"collection_name", "filter", b"filter", "group_by", b"group_by", "group_size", b"group_size", "limit", b"limit", "lookup_from", b"lookup_from", "params", b"params", "prefetch", b"prefetch", "query", b"query", "read_consistency", b"read_consistency", "score_threshold", b"score_threshold", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout", "using", b"using", "with_lookup", b"with_lookup", "with_payload", b"with_payload", "with_vectors", b"with_vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_filter", b"_filter"]) -> typing.Literal["filter"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_group_size", b"_group_size"]) -> typing.Literal["group_size"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_limit", b"_limit"]) -> typing.Literal["limit"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lookup_from", b"_lookup_from"]) -> typing.Literal["lookup_from"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_params", b"_params"]) -> typing.Literal["params"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_query", b"_query"]) -> typing.Literal["query"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_score_threshold", b"_score_threshold"]) -> typing.Literal["score_threshold"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_using", b"_using"]) -> typing.Literal["using"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_lookup", b"_with_lookup"]) -> typing.Literal["with_lookup"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_with_vectors", b"_with_vectors"]) -> typing.Literal["with_vectors"] | None: ... + +global___QueryPointGroups = QueryPointGroups + +@typing.final +class FacetCounts(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + EXACT_FIELD_NUMBER: builtins.int + TIMEOUT_FIELD_NUMBER: builtins.int + READ_CONSISTENCY_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + key: builtins.str + """Payload key of the facet""" + limit: builtins.int + """Max number of facets. Default is 10.""" + exact: builtins.bool + """If true, return exact counts, slower but useful for debugging purposes. Default is false.""" + timeout: builtins.int + """If set, overrides global timeout setting for this request. Unit is seconds.""" + @property + def filter(self) -> global___Filter: + """Filter conditions - return only those points that satisfy the specified conditions.""" + + @property + def read_consistency(self) -> global___ReadConsistency: + """Options for specifying read consistency guarantees""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Specify in which shards to look for the points, if not specified - look in all shards""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + key: builtins.str = ..., + filter: global___Filter | None = ..., + limit: builtins.int | None = ..., + exact: builtins.bool | None = ..., + timeout: builtins.int | None = ..., + read_consistency: global___ReadConsistency | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_exact", b"_exact", "_filter", b"_filter", "_limit", b"_limit", "_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "exact", b"exact", "filter", b"filter", "limit", b"limit", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_exact", b"_exact", "_filter", b"_filter", "_limit", b"_limit", "_read_consistency", b"_read_consistency", "_shard_key_selector", b"_shard_key_selector", "_timeout", b"_timeout", "collection_name", b"collection_name", "exact", b"exact", "filter", b"filter", "key", b"key", "limit", b"limit", "read_consistency", b"read_consistency", "shard_key_selector", b"shard_key_selector", "timeout", b"timeout"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_exact", b"_exact"]) -> typing.Literal["exact"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_filter", b"_filter"]) -> typing.Literal["filter"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_limit", b"_limit"]) -> typing.Literal["limit"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_read_consistency", b"_read_consistency"]) -> typing.Literal["read_consistency"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_timeout", b"_timeout"]) -> typing.Literal["timeout"] | None: ... + +global___FacetCounts = FacetCounts + +@typing.final +class FacetValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STRING_VALUE_FIELD_NUMBER: builtins.int + INTEGER_VALUE_FIELD_NUMBER: builtins.int + string_value: builtins.str + """String value from the facet""" + integer_value: builtins.int + """Integer value from the facet""" + def __init__( + self, + *, + string_value: builtins.str = ..., + integer_value: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["integer_value", b"integer_value", "string_value", b"string_value", "variant", b"variant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["integer_value", b"integer_value", "string_value", b"string_value", "variant", b"variant"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["variant", b"variant"]) -> typing.Literal["string_value", "integer_value"] | None: ... + +global___FacetValue = FacetValue + +@typing.final +class FacetHit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUE_FIELD_NUMBER: builtins.int + COUNT_FIELD_NUMBER: builtins.int + count: builtins.int + """Number of points with this value""" + @property + def value(self) -> global___FacetValue: + """Value from the facet""" + + def __init__( + self, + *, + value: global___FacetValue | None = ..., + count: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "value", b"value"]) -> None: ... + +global___FacetHit = FacetHit + +@typing.final +class PointsUpdateOperation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class PointStructList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POINTS_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + @property + def points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointStruct]: ... + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + points: collections.abc.Iterable[global___PointStruct] | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "shard_key_selector", b"shard_key_selector"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "points", b"points", "shard_key_selector", b"shard_key_selector"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + + @typing.final + class SetPayload(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class PayloadEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> json_with_int_pb2.Value: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: json_with_int_pb2.Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + PAYLOAD_FIELD_NUMBER: builtins.int + POINTS_SELECTOR_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + key: builtins.str + """Option for indicate property of payload""" + @property + def payload(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, json_with_int_pb2.Value]: ... + @property + def points_selector(self) -> global___PointsSelector: + """Affected points""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + payload: collections.abc.Mapping[builtins.str, json_with_int_pb2.Value] | None = ..., + points_selector: global___PointsSelector | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + key: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_key", b"_key", "_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "key", b"key", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_key", b"_key", "_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "key", b"key", "payload", b"payload", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_key", b"_key"]) -> typing.Literal["key"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_points_selector", b"_points_selector"]) -> typing.Literal["points_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + + @typing.final + class OverwritePayload(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class PayloadEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> json_with_int_pb2.Value: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: json_with_int_pb2.Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + PAYLOAD_FIELD_NUMBER: builtins.int + POINTS_SELECTOR_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + key: builtins.str + """Option for indicate property of payload""" + @property + def payload(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, json_with_int_pb2.Value]: ... + @property + def points_selector(self) -> global___PointsSelector: + """Affected points""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + payload: collections.abc.Mapping[builtins.str, json_with_int_pb2.Value] | None = ..., + points_selector: global___PointsSelector | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + key: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_key", b"_key", "_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "key", b"key", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_key", b"_key", "_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "key", b"key", "payload", b"payload", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_key", b"_key"]) -> typing.Literal["key"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_points_selector", b"_points_selector"]) -> typing.Literal["points_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + + @typing.final + class DeletePayload(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEYS_FIELD_NUMBER: builtins.int + POINTS_SELECTOR_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + @property + def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + @property + def points_selector(self) -> global___PointsSelector: + """Affected points""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + keys: collections.abc.Iterable[builtins.str] | None = ..., + points_selector: global___PointsSelector | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_points_selector", b"_points_selector", "_shard_key_selector", b"_shard_key_selector", "keys", b"keys", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_points_selector", b"_points_selector"]) -> typing.Literal["points_selector"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + + @typing.final + class UpdateVectors(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POINTS_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + @property + def points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointVectors]: + """List of points and vectors to update""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + points: collections.abc.Iterable[global___PointVectors] | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "shard_key_selector", b"shard_key_selector"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "points", b"points", "shard_key_selector", b"shard_key_selector"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + + @typing.final + class DeleteVectors(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POINTS_SELECTOR_FIELD_NUMBER: builtins.int + VECTORS_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + @property + def points_selector(self) -> global___PointsSelector: + """Affected points""" + + @property + def vectors(self) -> global___VectorsSelector: + """List of vector names to delete""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + points_selector: global___PointsSelector | None = ..., + vectors: global___VectorsSelector | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector", "vectors", b"vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "points_selector", b"points_selector", "shard_key_selector", b"shard_key_selector", "vectors", b"vectors"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + + @typing.final + class DeletePoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POINTS_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + @property + def points(self) -> global___PointsSelector: + """Affected points""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + points: global___PointsSelector | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "points", b"points", "shard_key_selector", b"shard_key_selector"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "points", b"points", "shard_key_selector", b"shard_key_selector"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + + @typing.final + class ClearPayload(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POINTS_FIELD_NUMBER: builtins.int + SHARD_KEY_SELECTOR_FIELD_NUMBER: builtins.int + @property + def points(self) -> global___PointsSelector: + """Affected points""" + + @property + def shard_key_selector(self) -> global___ShardKeySelector: + """Option for custom sharding to specify used shard keys""" + + def __init__( + self, + *, + points: global___PointsSelector | None = ..., + shard_key_selector: global___ShardKeySelector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "points", b"points", "shard_key_selector", b"shard_key_selector"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_shard_key_selector", b"_shard_key_selector", "points", b"points", "shard_key_selector", b"shard_key_selector"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_shard_key_selector", b"_shard_key_selector"]) -> typing.Literal["shard_key_selector"] | None: ... + + UPSERT_FIELD_NUMBER: builtins.int + DELETE_DEPRECATED_FIELD_NUMBER: builtins.int + SET_PAYLOAD_FIELD_NUMBER: builtins.int + OVERWRITE_PAYLOAD_FIELD_NUMBER: builtins.int + DELETE_PAYLOAD_FIELD_NUMBER: builtins.int + CLEAR_PAYLOAD_DEPRECATED_FIELD_NUMBER: builtins.int + UPDATE_VECTORS_FIELD_NUMBER: builtins.int + DELETE_VECTORS_FIELD_NUMBER: builtins.int + DELETE_POINTS_FIELD_NUMBER: builtins.int + CLEAR_PAYLOAD_FIELD_NUMBER: builtins.int + @property + def upsert(self) -> global___PointsUpdateOperation.PointStructList: ... + @property + def delete_deprecated(self) -> global___PointsSelector: ... + @property + def set_payload(self) -> global___PointsUpdateOperation.SetPayload: ... + @property + def overwrite_payload(self) -> global___PointsUpdateOperation.OverwritePayload: ... + @property + def delete_payload(self) -> global___PointsUpdateOperation.DeletePayload: ... + @property + def clear_payload_deprecated(self) -> global___PointsSelector: ... + @property + def update_vectors(self) -> global___PointsUpdateOperation.UpdateVectors: ... + @property + def delete_vectors(self) -> global___PointsUpdateOperation.DeleteVectors: ... + @property + def delete_points(self) -> global___PointsUpdateOperation.DeletePoints: ... + @property + def clear_payload(self) -> global___PointsUpdateOperation.ClearPayload: ... + def __init__( + self, + *, + upsert: global___PointsUpdateOperation.PointStructList | None = ..., + delete_deprecated: global___PointsSelector | None = ..., + set_payload: global___PointsUpdateOperation.SetPayload | None = ..., + overwrite_payload: global___PointsUpdateOperation.OverwritePayload | None = ..., + delete_payload: global___PointsUpdateOperation.DeletePayload | None = ..., + clear_payload_deprecated: global___PointsSelector | None = ..., + update_vectors: global___PointsUpdateOperation.UpdateVectors | None = ..., + delete_vectors: global___PointsUpdateOperation.DeleteVectors | None = ..., + delete_points: global___PointsUpdateOperation.DeletePoints | None = ..., + clear_payload: global___PointsUpdateOperation.ClearPayload | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["clear_payload", b"clear_payload", "clear_payload_deprecated", b"clear_payload_deprecated", "delete_deprecated", b"delete_deprecated", "delete_payload", b"delete_payload", "delete_points", b"delete_points", "delete_vectors", b"delete_vectors", "operation", b"operation", "overwrite_payload", b"overwrite_payload", "set_payload", b"set_payload", "update_vectors", b"update_vectors", "upsert", b"upsert"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["clear_payload", b"clear_payload", "clear_payload_deprecated", b"clear_payload_deprecated", "delete_deprecated", b"delete_deprecated", "delete_payload", b"delete_payload", "delete_points", b"delete_points", "delete_vectors", b"delete_vectors", "operation", b"operation", "overwrite_payload", b"overwrite_payload", "set_payload", b"set_payload", "update_vectors", b"update_vectors", "upsert", b"upsert"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["operation", b"operation"]) -> typing.Literal["upsert", "delete_deprecated", "set_payload", "overwrite_payload", "delete_payload", "clear_payload_deprecated", "update_vectors", "delete_vectors", "delete_points", "clear_payload"] | None: ... + +global___PointsUpdateOperation = PointsUpdateOperation + +@typing.final +class UpdateBatchPoints(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + WAIT_FIELD_NUMBER: builtins.int + OPERATIONS_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """name of the collection""" + wait: builtins.bool + """Wait until the changes have been applied?""" + @property + def operations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointsUpdateOperation]: ... + @property + def ordering(self) -> global___WriteOrdering: + """Write ordering guarantees""" + + def __init__( + self, + *, + collection_name: builtins.str = ..., + wait: builtins.bool | None = ..., + operations: collections.abc.Iterable[global___PointsUpdateOperation] | None = ..., + ordering: global___WriteOrdering | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_ordering", b"_ordering", "_wait", b"_wait", "ordering", b"ordering", "wait", b"wait"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_ordering", b"_ordering", "_wait", b"_wait", "collection_name", b"collection_name", "operations", b"operations", "ordering", b"ordering", "wait", b"wait"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_ordering", b"_ordering"]) -> typing.Literal["ordering"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_wait", b"_wait"]) -> typing.Literal["wait"] | None: ... + +global___UpdateBatchPoints = UpdateBatchPoints + +@typing.final +class PointsOperationResponse(google.protobuf.message.Message): + """--------------------------------------------- + ---------------- RPC Response --------------- + --------------------------------------------- + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> global___UpdateResult: ... + def __init__( + self, + *, + result: global___UpdateResult | None = ..., + time: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___PointsOperationResponse = PointsOperationResponse + +@typing.final +class UpdateResult(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPERATION_ID_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + operation_id: builtins.int + """Number of operation""" + status: global___UpdateStatus.ValueType + """Operation status""" + def __init__( + self, + *, + operation_id: builtins.int | None = ..., + status: global___UpdateStatus.ValueType = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_operation_id", b"_operation_id", "operation_id", b"operation_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_operation_id", b"_operation_id", "operation_id", b"operation_id", "status", b"status"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_operation_id", b"_operation_id"]) -> typing.Literal["operation_id"] | None: ... + +global___UpdateResult = UpdateResult + +@typing.final +class OrderValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INT_FIELD_NUMBER: builtins.int + FLOAT_FIELD_NUMBER: builtins.int + int: builtins.int + float: builtins.float + def __init__( + self, + *, + int: builtins.int = ..., + float: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["float", b"float", "int", b"int", "variant", b"variant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["float", b"float", "int", b"int", "variant", b"variant"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["variant", b"variant"]) -> typing.Literal["int", "float"] | None: ... + +global___OrderValue = OrderValue + +@typing.final +class ScoredPoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class PayloadEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> json_with_int_pb2.Value: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: json_with_int_pb2.Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + ID_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + SCORE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + VECTORS_FIELD_NUMBER: builtins.int + SHARD_KEY_FIELD_NUMBER: builtins.int + ORDER_VALUE_FIELD_NUMBER: builtins.int + score: builtins.float + """Similarity score""" + version: builtins.int + """Last update operation applied to this point""" + @property + def id(self) -> global___PointId: + """Point id""" + + @property + def payload(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, json_with_int_pb2.Value]: + """Payload""" + + @property + def vectors(self) -> global___Vectors: + """Vectors to search""" + + @property + def shard_key(self) -> collections_pb2.ShardKey: + """Shard key""" + + @property + def order_value(self) -> global___OrderValue: + """Order by value""" + + def __init__( + self, + *, + id: global___PointId | None = ..., + payload: collections.abc.Mapping[builtins.str, json_with_int_pb2.Value] | None = ..., + score: builtins.float = ..., + version: builtins.int = ..., + vectors: global___Vectors | None = ..., + shard_key: collections_pb2.ShardKey | None = ..., + order_value: global___OrderValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_order_value", b"_order_value", "_shard_key", b"_shard_key", "_vectors", b"_vectors", "id", b"id", "order_value", b"order_value", "shard_key", b"shard_key", "vectors", b"vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_order_value", b"_order_value", "_shard_key", b"_shard_key", "_vectors", b"_vectors", "id", b"id", "order_value", b"order_value", "payload", b"payload", "score", b"score", "shard_key", b"shard_key", "vectors", b"vectors", "version", b"version"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_order_value", b"_order_value"]) -> typing.Literal["order_value"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key", b"_shard_key"]) -> typing.Literal["shard_key"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vectors", b"_vectors"]) -> typing.Literal["vectors"] | None: ... + +global___ScoredPoint = ScoredPoint + +@typing.final +class GroupId(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UNSIGNED_VALUE_FIELD_NUMBER: builtins.int + INTEGER_VALUE_FIELD_NUMBER: builtins.int + STRING_VALUE_FIELD_NUMBER: builtins.int + unsigned_value: builtins.int + """Represents a double value.""" + integer_value: builtins.int + """Represents an integer value""" + string_value: builtins.str + """Represents a string value.""" + def __init__( + self, + *, + unsigned_value: builtins.int = ..., + integer_value: builtins.int = ..., + string_value: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["integer_value", b"integer_value", "kind", b"kind", "string_value", b"string_value", "unsigned_value", b"unsigned_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["integer_value", b"integer_value", "kind", b"kind", "string_value", b"string_value", "unsigned_value", b"unsigned_value"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["kind", b"kind"]) -> typing.Literal["unsigned_value", "integer_value", "string_value"] | None: ... + +global___GroupId = GroupId + +@typing.final +class PointGroup(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + HITS_FIELD_NUMBER: builtins.int + LOOKUP_FIELD_NUMBER: builtins.int + @property + def id(self) -> global___GroupId: + """Group id""" + + @property + def hits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScoredPoint]: + """Points in the group""" + + @property + def lookup(self) -> global___RetrievedPoint: + """Point(s) from the lookup collection that matches the group id""" + + def __init__( + self, + *, + id: global___GroupId | None = ..., + hits: collections.abc.Iterable[global___ScoredPoint] | None = ..., + lookup: global___RetrievedPoint | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id", "lookup", b"lookup"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["hits", b"hits", "id", b"id", "lookup", b"lookup"]) -> None: ... + +global___PointGroup = PointGroup + +@typing.final +class GroupsResult(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + GROUPS_FIELD_NUMBER: builtins.int + @property + def groups(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointGroup]: + """Groups""" + + def __init__( + self, + *, + groups: collections.abc.Iterable[global___PointGroup] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["groups", b"groups"]) -> None: ... + +global___GroupsResult = GroupsResult + +@typing.final +class SearchResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScoredPoint]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___ScoredPoint] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___SearchResponse = SearchResponse + +@typing.final +class QueryResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScoredPoint]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___ScoredPoint] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___QueryResponse = QueryResponse + +@typing.final +class QueryBatchResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchResult]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___BatchResult] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___QueryBatchResponse = QueryBatchResponse + +@typing.final +class QueryGroupsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> global___GroupsResult: ... + def __init__( + self, + *, + result: global___GroupsResult | None = ..., + time: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___QueryGroupsResponse = QueryGroupsResponse + +@typing.final +class BatchResult(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScoredPoint]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___ScoredPoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result"]) -> None: ... + +global___BatchResult = BatchResult + +@typing.final +class SearchBatchResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchResult]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___BatchResult] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___SearchBatchResponse = SearchBatchResponse + +@typing.final +class SearchGroupsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> global___GroupsResult: ... + def __init__( + self, + *, + result: global___GroupsResult | None = ..., + time: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___SearchGroupsResponse = SearchGroupsResponse + +@typing.final +class CountResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> global___CountResult: ... + def __init__( + self, + *, + result: global___CountResult | None = ..., + time: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___CountResponse = CountResponse + +@typing.final +class ScrollResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NEXT_PAGE_OFFSET_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def next_page_offset(self) -> global___PointId: + """Use this offset for the next query""" + + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RetrievedPoint]: ... + def __init__( + self, + *, + next_page_offset: global___PointId | None = ..., + result: collections.abc.Iterable[global___RetrievedPoint] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_next_page_offset", b"_next_page_offset", "next_page_offset", b"next_page_offset"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_next_page_offset", b"_next_page_offset", "next_page_offset", b"next_page_offset", "result", b"result", "time", b"time"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_next_page_offset", b"_next_page_offset"]) -> typing.Literal["next_page_offset"] | None: ... + +global___ScrollResponse = ScrollResponse + +@typing.final +class CountResult(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COUNT_FIELD_NUMBER: builtins.int + count: builtins.int + def __init__( + self, + *, + count: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["count", b"count"]) -> None: ... + +global___CountResult = CountResult + +@typing.final +class RetrievedPoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class PayloadEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> json_with_int_pb2.Value: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: json_with_int_pb2.Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + ID_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + VECTORS_FIELD_NUMBER: builtins.int + SHARD_KEY_FIELD_NUMBER: builtins.int + ORDER_VALUE_FIELD_NUMBER: builtins.int + @property + def id(self) -> global___PointId: ... + @property + def payload(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, json_with_int_pb2.Value]: ... + @property + def vectors(self) -> global___Vectors: ... + @property + def shard_key(self) -> collections_pb2.ShardKey: + """Shard key""" + + @property + def order_value(self) -> global___OrderValue: + """Order-by value""" + + def __init__( + self, + *, + id: global___PointId | None = ..., + payload: collections.abc.Mapping[builtins.str, json_with_int_pb2.Value] | None = ..., + vectors: global___Vectors | None = ..., + shard_key: collections_pb2.ShardKey | None = ..., + order_value: global___OrderValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_order_value", b"_order_value", "_shard_key", b"_shard_key", "_vectors", b"_vectors", "id", b"id", "order_value", b"order_value", "shard_key", b"shard_key", "vectors", b"vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_order_value", b"_order_value", "_shard_key", b"_shard_key", "_vectors", b"_vectors", "id", b"id", "order_value", b"order_value", "payload", b"payload", "shard_key", b"shard_key", "vectors", b"vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_order_value", b"_order_value"]) -> typing.Literal["order_value"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_shard_key", b"_shard_key"]) -> typing.Literal["shard_key"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_vectors", b"_vectors"]) -> typing.Literal["vectors"] | None: ... + +global___RetrievedPoint = RetrievedPoint + +@typing.final +class GetResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RetrievedPoint]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___RetrievedPoint] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___GetResponse = GetResponse + +@typing.final +class RecommendResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScoredPoint]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___ScoredPoint] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___RecommendResponse = RecommendResponse + +@typing.final +class RecommendBatchResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchResult]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___BatchResult] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___RecommendBatchResponse = RecommendBatchResponse + +@typing.final +class DiscoverResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScoredPoint]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___ScoredPoint] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___DiscoverResponse = DiscoverResponse + +@typing.final +class DiscoverBatchResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchResult]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___BatchResult] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___DiscoverBatchResponse = DiscoverBatchResponse + +@typing.final +class RecommendGroupsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> global___GroupsResult: ... + def __init__( + self, + *, + result: global___GroupsResult | None = ..., + time: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["result", b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___RecommendGroupsResponse = RecommendGroupsResponse + +@typing.final +class UpdateBatchResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESULT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def result(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UpdateResult]: ... + def __init__( + self, + *, + result: collections.abc.Iterable[global___UpdateResult] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result", "time", b"time"]) -> None: ... + +global___UpdateBatchResponse = UpdateBatchResponse + +@typing.final +class FacetResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HITS_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def hits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FacetHit]: ... + def __init__( + self, + *, + hits: collections.abc.Iterable[global___FacetHit] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["hits", b"hits", "time", b"time"]) -> None: ... + +global___FacetResponse = FacetResponse + +@typing.final +class Filter(google.protobuf.message.Message): + """--------------------------------------------- + ------------- Filter Conditions ------------- + --------------------------------------------- + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SHOULD_FIELD_NUMBER: builtins.int + MUST_FIELD_NUMBER: builtins.int + MUST_NOT_FIELD_NUMBER: builtins.int + MIN_SHOULD_FIELD_NUMBER: builtins.int + @property + def should(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Condition]: + """At least one of those conditions should match""" + + @property + def must(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Condition]: + """All conditions must match""" + + @property + def must_not(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Condition]: + """All conditions must NOT match""" + + @property + def min_should(self) -> global___MinShould: + """At least minimum amount of given conditions should match""" + + def __init__( + self, + *, + should: collections.abc.Iterable[global___Condition] | None = ..., + must: collections.abc.Iterable[global___Condition] | None = ..., + must_not: collections.abc.Iterable[global___Condition] | None = ..., + min_should: global___MinShould | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_min_should", b"_min_should", "min_should", b"min_should"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_min_should", b"_min_should", "min_should", b"min_should", "must", b"must", "must_not", b"must_not", "should", b"should"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_min_should", b"_min_should"]) -> typing.Literal["min_should"] | None: ... + +global___Filter = Filter + +@typing.final +class MinShould(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONDITIONS_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + min_count: builtins.int + @property + def conditions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Condition]: ... + def __init__( + self, + *, + conditions: collections.abc.Iterable[global___Condition] | None = ..., + min_count: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["conditions", b"conditions", "min_count", b"min_count"]) -> None: ... + +global___MinShould = MinShould + +@typing.final +class Condition(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FIELD_FIELD_NUMBER: builtins.int + IS_EMPTY_FIELD_NUMBER: builtins.int + HAS_ID_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + IS_NULL_FIELD_NUMBER: builtins.int + NESTED_FIELD_NUMBER: builtins.int + @property + def field(self) -> global___FieldCondition: ... + @property + def is_empty(self) -> global___IsEmptyCondition: ... + @property + def has_id(self) -> global___HasIdCondition: ... + @property + def filter(self) -> global___Filter: ... + @property + def is_null(self) -> global___IsNullCondition: ... + @property + def nested(self) -> global___NestedCondition: ... + def __init__( + self, + *, + field: global___FieldCondition | None = ..., + is_empty: global___IsEmptyCondition | None = ..., + has_id: global___HasIdCondition | None = ..., + filter: global___Filter | None = ..., + is_null: global___IsNullCondition | None = ..., + nested: global___NestedCondition | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["condition_one_of", b"condition_one_of", "field", b"field", "filter", b"filter", "has_id", b"has_id", "is_empty", b"is_empty", "is_null", b"is_null", "nested", b"nested"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["condition_one_of", b"condition_one_of", "field", b"field", "filter", b"filter", "has_id", b"has_id", "is_empty", b"is_empty", "is_null", b"is_null", "nested", b"nested"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["condition_one_of", b"condition_one_of"]) -> typing.Literal["field", "is_empty", "has_id", "filter", "is_null", "nested"] | None: ... + +global___Condition = Condition + +@typing.final +class IsEmptyCondition(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + key: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + +global___IsEmptyCondition = IsEmptyCondition + +@typing.final +class IsNullCondition(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + key: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + +global___IsNullCondition = IsNullCondition + +@typing.final +class HasIdCondition(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HAS_ID_FIELD_NUMBER: builtins.int + @property + def has_id(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointId]: ... + def __init__( + self, + *, + has_id: collections.abc.Iterable[global___PointId] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["has_id", b"has_id"]) -> None: ... + +global___HasIdCondition = HasIdCondition + +@typing.final +class NestedCondition(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + key: builtins.str + """Path to nested object""" + @property + def filter(self) -> global___Filter: + """Filter condition""" + + def __init__( + self, + *, + key: builtins.str = ..., + filter: global___Filter | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "key", b"key"]) -> None: ... + +global___NestedCondition = NestedCondition + +@typing.final +class FieldCondition(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + MATCH_FIELD_NUMBER: builtins.int + RANGE_FIELD_NUMBER: builtins.int + GEO_BOUNDING_BOX_FIELD_NUMBER: builtins.int + GEO_RADIUS_FIELD_NUMBER: builtins.int + VALUES_COUNT_FIELD_NUMBER: builtins.int + GEO_POLYGON_FIELD_NUMBER: builtins.int + DATETIME_RANGE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def match(self) -> global___Match: + """Check if point has field with a given value""" + + @property + def range(self) -> global___Range: + """Check if points value lies in a given range""" + + @property + def geo_bounding_box(self) -> global___GeoBoundingBox: + """Check if points geolocation lies in a given area""" + + @property + def geo_radius(self) -> global___GeoRadius: + """Check if geo point is within a given radius""" + + @property + def values_count(self) -> global___ValuesCount: + """Check number of values for a specific field""" + + @property + def geo_polygon(self) -> global___GeoPolygon: + """Check if geo point is within a given polygon""" + + @property + def datetime_range(self) -> global___DatetimeRange: + """Check if datetime is within a given range""" + + def __init__( + self, + *, + key: builtins.str = ..., + match: global___Match | None = ..., + range: global___Range | None = ..., + geo_bounding_box: global___GeoBoundingBox | None = ..., + geo_radius: global___GeoRadius | None = ..., + values_count: global___ValuesCount | None = ..., + geo_polygon: global___GeoPolygon | None = ..., + datetime_range: global___DatetimeRange | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["datetime_range", b"datetime_range", "geo_bounding_box", b"geo_bounding_box", "geo_polygon", b"geo_polygon", "geo_radius", b"geo_radius", "match", b"match", "range", b"range", "values_count", b"values_count"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["datetime_range", b"datetime_range", "geo_bounding_box", b"geo_bounding_box", "geo_polygon", b"geo_polygon", "geo_radius", b"geo_radius", "key", b"key", "match", b"match", "range", b"range", "values_count", b"values_count"]) -> None: ... + +global___FieldCondition = FieldCondition + +@typing.final +class Match(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEYWORD_FIELD_NUMBER: builtins.int + INTEGER_FIELD_NUMBER: builtins.int + BOOLEAN_FIELD_NUMBER: builtins.int + TEXT_FIELD_NUMBER: builtins.int + KEYWORDS_FIELD_NUMBER: builtins.int + INTEGERS_FIELD_NUMBER: builtins.int + EXCEPT_INTEGERS_FIELD_NUMBER: builtins.int + EXCEPT_KEYWORDS_FIELD_NUMBER: builtins.int + keyword: builtins.str + """Match string keyword""" + integer: builtins.int + """Match integer""" + boolean: builtins.bool + """Match boolean""" + text: builtins.str + """Match text""" + @property + def keywords(self) -> global___RepeatedStrings: + """Match multiple keywords""" + + @property + def integers(self) -> global___RepeatedIntegers: + """Match multiple integers""" + + @property + def except_integers(self) -> global___RepeatedIntegers: + """Match any other value except those integers""" + + @property + def except_keywords(self) -> global___RepeatedStrings: + """Match any other value except those keywords""" + + def __init__( + self, + *, + keyword: builtins.str = ..., + integer: builtins.int = ..., + boolean: builtins.bool = ..., + text: builtins.str = ..., + keywords: global___RepeatedStrings | None = ..., + integers: global___RepeatedIntegers | None = ..., + except_integers: global___RepeatedIntegers | None = ..., + except_keywords: global___RepeatedStrings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["boolean", b"boolean", "except_integers", b"except_integers", "except_keywords", b"except_keywords", "integer", b"integer", "integers", b"integers", "keyword", b"keyword", "keywords", b"keywords", "match_value", b"match_value", "text", b"text"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["boolean", b"boolean", "except_integers", b"except_integers", "except_keywords", b"except_keywords", "integer", b"integer", "integers", b"integers", "keyword", b"keyword", "keywords", b"keywords", "match_value", b"match_value", "text", b"text"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["match_value", b"match_value"]) -> typing.Literal["keyword", "integer", "boolean", "text", "keywords", "integers", "except_integers", "except_keywords"] | None: ... + +global___Match = Match + +@typing.final +class RepeatedStrings(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STRINGS_FIELD_NUMBER: builtins.int + @property + def strings(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + strings: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["strings", b"strings"]) -> None: ... + +global___RepeatedStrings = RepeatedStrings + +@typing.final +class RepeatedIntegers(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INTEGERS_FIELD_NUMBER: builtins.int + @property + def integers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__( + self, + *, + integers: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["integers", b"integers"]) -> None: ... + +global___RepeatedIntegers = RepeatedIntegers + +@typing.final +class Range(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LT_FIELD_NUMBER: builtins.int + GT_FIELD_NUMBER: builtins.int + GTE_FIELD_NUMBER: builtins.int + LTE_FIELD_NUMBER: builtins.int + lt: builtins.float + gt: builtins.float + gte: builtins.float + lte: builtins.float + def __init__( + self, + *, + lt: builtins.float | None = ..., + gt: builtins.float | None = ..., + gte: builtins.float | None = ..., + lte: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_gt", b"_gt", "_gte", b"_gte", "_lt", b"_lt", "_lte", b"_lte", "gt", b"gt", "gte", b"gte", "lt", b"lt", "lte", b"lte"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_gt", b"_gt", "_gte", b"_gte", "_lt", b"_lt", "_lte", b"_lte", "gt", b"gt", "gte", b"gte", "lt", b"lt", "lte", b"lte"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_gt", b"_gt"]) -> typing.Literal["gt"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_gte", b"_gte"]) -> typing.Literal["gte"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lt", b"_lt"]) -> typing.Literal["lt"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lte", b"_lte"]) -> typing.Literal["lte"] | None: ... + +global___Range = Range + +@typing.final +class DatetimeRange(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LT_FIELD_NUMBER: builtins.int + GT_FIELD_NUMBER: builtins.int + GTE_FIELD_NUMBER: builtins.int + LTE_FIELD_NUMBER: builtins.int + @property + def lt(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def gt(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def gte(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def lte(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + lt: google.protobuf.timestamp_pb2.Timestamp | None = ..., + gt: google.protobuf.timestamp_pb2.Timestamp | None = ..., + gte: google.protobuf.timestamp_pb2.Timestamp | None = ..., + lte: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_gt", b"_gt", "_gte", b"_gte", "_lt", b"_lt", "_lte", b"_lte", "gt", b"gt", "gte", b"gte", "lt", b"lt", "lte", b"lte"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_gt", b"_gt", "_gte", b"_gte", "_lt", b"_lt", "_lte", b"_lte", "gt", b"gt", "gte", b"gte", "lt", b"lt", "lte", b"lte"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_gt", b"_gt"]) -> typing.Literal["gt"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_gte", b"_gte"]) -> typing.Literal["gte"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lt", b"_lt"]) -> typing.Literal["lt"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lte", b"_lte"]) -> typing.Literal["lte"] | None: ... + +global___DatetimeRange = DatetimeRange + +@typing.final +class GeoBoundingBox(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOP_LEFT_FIELD_NUMBER: builtins.int + BOTTOM_RIGHT_FIELD_NUMBER: builtins.int + @property + def top_left(self) -> global___GeoPoint: + """north-west corner""" + + @property + def bottom_right(self) -> global___GeoPoint: + """south-east corner""" + + def __init__( + self, + *, + top_left: global___GeoPoint | None = ..., + bottom_right: global___GeoPoint | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["bottom_right", b"bottom_right", "top_left", b"top_left"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["bottom_right", b"bottom_right", "top_left", b"top_left"]) -> None: ... + +global___GeoBoundingBox = GeoBoundingBox + +@typing.final +class GeoRadius(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CENTER_FIELD_NUMBER: builtins.int + RADIUS_FIELD_NUMBER: builtins.int + radius: builtins.float + """In meters""" + @property + def center(self) -> global___GeoPoint: + """Center of the circle""" + + def __init__( + self, + *, + center: global___GeoPoint | None = ..., + radius: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["center", b"center"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["center", b"center", "radius", b"radius"]) -> None: ... + +global___GeoRadius = GeoRadius + +@typing.final +class GeoLineString(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POINTS_FIELD_NUMBER: builtins.int + @property + def points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GeoPoint]: + """Ordered sequence of GeoPoints representing the line""" + + def __init__( + self, + *, + points: collections.abc.Iterable[global___GeoPoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["points", b"points"]) -> None: ... + +global___GeoLineString = GeoLineString + +@typing.final +class GeoPolygon(google.protobuf.message.Message): + """For a valid GeoPolygon, both the exterior and interior GeoLineStrings must consist of a minimum of 4 points. + Additionally, the first and last points of each GeoLineString must be the same. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXTERIOR_FIELD_NUMBER: builtins.int + INTERIORS_FIELD_NUMBER: builtins.int + @property + def exterior(self) -> global___GeoLineString: + """The exterior line bounds the surface""" + + @property + def interiors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GeoLineString]: + """Interior lines (if present) bound holes within the surface""" + + def __init__( + self, + *, + exterior: global___GeoLineString | None = ..., + interiors: collections.abc.Iterable[global___GeoLineString] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["exterior", b"exterior"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["exterior", b"exterior", "interiors", b"interiors"]) -> None: ... + +global___GeoPolygon = GeoPolygon + +@typing.final +class ValuesCount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LT_FIELD_NUMBER: builtins.int + GT_FIELD_NUMBER: builtins.int + GTE_FIELD_NUMBER: builtins.int + LTE_FIELD_NUMBER: builtins.int + lt: builtins.int + gt: builtins.int + gte: builtins.int + lte: builtins.int + def __init__( + self, + *, + lt: builtins.int | None = ..., + gt: builtins.int | None = ..., + gte: builtins.int | None = ..., + lte: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_gt", b"_gt", "_gte", b"_gte", "_lt", b"_lt", "_lte", b"_lte", "gt", b"gt", "gte", b"gte", "lt", b"lt", "lte", b"lte"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_gt", b"_gt", "_gte", b"_gte", "_lt", b"_lt", "_lte", b"_lte", "gt", b"gt", "gte", b"gte", "lt", b"lt", "lte", b"lte"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_gt", b"_gt"]) -> typing.Literal["gt"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_gte", b"_gte"]) -> typing.Literal["gte"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lt", b"_lt"]) -> typing.Literal["lt"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_lte", b"_lte"]) -> typing.Literal["lte"] | None: ... + +global___ValuesCount = ValuesCount + +@typing.final +class PointsSelector(google.protobuf.message.Message): + """--------------------------------------------- + -------------- Points Selector -------------- + --------------------------------------------- + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POINTS_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + @property + def points(self) -> global___PointsIdsList: ... + @property + def filter(self) -> global___Filter: ... + def __init__( + self, + *, + points: global___PointsIdsList | None = ..., + filter: global___Filter | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter", "points", b"points", "points_selector_one_of", b"points_selector_one_of"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "points", b"points", "points_selector_one_of", b"points_selector_one_of"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["points_selector_one_of", b"points_selector_one_of"]) -> typing.Literal["points", "filter"] | None: ... + +global___PointsSelector = PointsSelector + +@typing.final +class PointsIdsList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IDS_FIELD_NUMBER: builtins.int + @property + def ids(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PointId]: ... + def __init__( + self, + *, + ids: collections.abc.Iterable[global___PointId] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["ids", b"ids"]) -> None: ... + +global___PointsIdsList = PointsIdsList + +@typing.final +class PointStruct(google.protobuf.message.Message): + """--------------------------------------------- + ------------------- Point ------------------- + --------------------------------------------- + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class PayloadEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> json_with_int_pb2.Value: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: json_with_int_pb2.Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + ID_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + VECTORS_FIELD_NUMBER: builtins.int + @property + def id(self) -> global___PointId: ... + @property + def payload(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, json_with_int_pb2.Value]: ... + @property + def vectors(self) -> global___Vectors: ... + def __init__( + self, + *, + id: global___PointId | None = ..., + payload: collections.abc.Mapping[builtins.str, json_with_int_pb2.Value] | None = ..., + vectors: global___Vectors | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_vectors", b"_vectors", "id", b"id", "vectors", b"vectors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_vectors", b"_vectors", "id", b"id", "payload", b"payload", "vectors", b"vectors"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_vectors", b"_vectors"]) -> typing.Literal["vectors"] | None: ... + +global___PointStruct = PointStruct + +@typing.final +class GeoPoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + LON_FIELD_NUMBER: builtins.int + LAT_FIELD_NUMBER: builtins.int + lon: builtins.float + lat: builtins.float + def __init__( + self, + *, + lon: builtins.float = ..., + lat: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["lat", b"lat", "lon", b"lon"]) -> None: ... + +global___GeoPoint = GeoPoint diff --git a/qdrant_client/grpc/points_service_pb2.pyi b/qdrant_client/grpc/points_service_pb2.pyi new file mode 100644 index 000000000..dd854e288 --- /dev/null +++ b/qdrant_client/grpc/points_service_pb2.pyi @@ -0,0 +1,8 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import google.protobuf.descriptor + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/qdrant_client/grpc/qdrant_pb2.pyi b/qdrant_client/grpc/qdrant_pb2.pyi new file mode 100644 index 000000000..81d6e9cb5 --- /dev/null +++ b/qdrant_client/grpc/qdrant_pb2.pyi @@ -0,0 +1,44 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class HealthCheckRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___HealthCheckRequest = HealthCheckRequest + +@typing.final +class HealthCheckReply(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TITLE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + COMMIT_FIELD_NUMBER: builtins.int + title: builtins.str + version: builtins.str + commit: builtins.str + def __init__( + self, + *, + title: builtins.str = ..., + version: builtins.str = ..., + commit: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_commit", b"_commit", "commit", b"commit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_commit", b"_commit", "commit", b"commit", "title", b"title", "version", b"version"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_commit", b"_commit"]) -> typing.Literal["commit"] | None: ... + +global___HealthCheckReply = HealthCheckReply diff --git a/qdrant_client/grpc/snapshots_service_pb2.pyi b/qdrant_client/grpc/snapshots_service_pb2.pyi new file mode 100644 index 000000000..12bcec0b7 --- /dev/null +++ b/qdrant_client/grpc/snapshots_service_pb2.pyi @@ -0,0 +1,191 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class CreateFullSnapshotRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___CreateFullSnapshotRequest = CreateFullSnapshotRequest + +@typing.final +class ListFullSnapshotsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ListFullSnapshotsRequest = ListFullSnapshotsRequest + +@typing.final +class DeleteFullSnapshotRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SNAPSHOT_NAME_FIELD_NUMBER: builtins.int + snapshot_name: builtins.str + """Name of the full snapshot""" + def __init__( + self, + *, + snapshot_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["snapshot_name", b"snapshot_name"]) -> None: ... + +global___DeleteFullSnapshotRequest = DeleteFullSnapshotRequest + +@typing.final +class CreateSnapshotRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + def __init__( + self, + *, + collection_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["collection_name", b"collection_name"]) -> None: ... + +global___CreateSnapshotRequest = CreateSnapshotRequest + +@typing.final +class ListSnapshotsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + def __init__( + self, + *, + collection_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["collection_name", b"collection_name"]) -> None: ... + +global___ListSnapshotsRequest = ListSnapshotsRequest + +@typing.final +class DeleteSnapshotRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COLLECTION_NAME_FIELD_NUMBER: builtins.int + SNAPSHOT_NAME_FIELD_NUMBER: builtins.int + collection_name: builtins.str + """Name of the collection""" + snapshot_name: builtins.str + """Name of the collection snapshot""" + def __init__( + self, + *, + collection_name: builtins.str = ..., + snapshot_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["collection_name", b"collection_name", "snapshot_name", b"snapshot_name"]) -> None: ... + +global___DeleteSnapshotRequest = DeleteSnapshotRequest + +@typing.final +class SnapshotDescription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + CREATION_TIME_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + CHECKSUM_FIELD_NUMBER: builtins.int + name: builtins.str + """Name of the snapshot""" + size: builtins.int + """Size of the snapshot in bytes""" + checksum: builtins.str + """SHA256 digest of the snapshot file""" + @property + def creation_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Creation time of the snapshot""" + + def __init__( + self, + *, + name: builtins.str = ..., + creation_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + size: builtins.int = ..., + checksum: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_checksum", b"_checksum", "checksum", b"checksum", "creation_time", b"creation_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_checksum", b"_checksum", "checksum", b"checksum", "creation_time", b"creation_time", "name", b"name", "size", b"size"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_checksum", b"_checksum"]) -> typing.Literal["checksum"] | None: ... + +global___SnapshotDescription = SnapshotDescription + +@typing.final +class CreateSnapshotResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SNAPSHOT_DESCRIPTION_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def snapshot_description(self) -> global___SnapshotDescription: ... + def __init__( + self, + *, + snapshot_description: global___SnapshotDescription | None = ..., + time: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["snapshot_description", b"snapshot_description"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["snapshot_description", b"snapshot_description", "time", b"time"]) -> None: ... + +global___CreateSnapshotResponse = CreateSnapshotResponse + +@typing.final +class ListSnapshotsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SNAPSHOT_DESCRIPTIONS_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + @property + def snapshot_descriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SnapshotDescription]: ... + def __init__( + self, + *, + snapshot_descriptions: collections.abc.Iterable[global___SnapshotDescription] | None = ..., + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["snapshot_descriptions", b"snapshot_descriptions", "time", b"time"]) -> None: ... + +global___ListSnapshotsResponse = ListSnapshotsResponse + +@typing.final +class DeleteSnapshotResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TIME_FIELD_NUMBER: builtins.int + time: builtins.float + """Time spent to process""" + def __init__( + self, + *, + time: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["time", b"time"]) -> None: ... + +global___DeleteSnapshotResponse = DeleteSnapshotResponse diff --git a/tools/generate_grpc_client.sh b/tools/generate_grpc_client.sh index beb9744a0..3f4383356 100755 --- a/tools/generate_grpc_client.sh +++ b/tools/generate_grpc_client.sh @@ -4,8 +4,8 @@ set -e PROJECT_ROOT="$(pwd)/$(dirname "$0")/../" -pip install grpcio==1.48.2 -pip install grpcio-tools==1.48.2 +# pip install grpcio==1.48.2 +# pip install grpcio-tools==1.48.2 cd $(mktemp -d) @@ -40,7 +40,7 @@ cat $CLIENT_DIR/qdrant.proto \ > $CLIENT_DIR/qdrant_tmp.proto mv $CLIENT_DIR/qdrant_tmp.proto $CLIENT_DIR/qdrant.proto -python -m grpc_tools.protoc --proto_path=qdrant_client/proto/ -I ./qdrant_client/grpc ./qdrant_client/proto/*.proto --python_out=./qdrant_client/grpc --grpc_python_out=./qdrant_client/grpc +python -m grpc_tools.protoc --proto_path=qdrant_client/proto/ -I ./qdrant_client/grpc ./qdrant_client/proto/*.proto --python_out=./qdrant_client/grpc --grpc_python_out=./qdrant_client/grpc --mypy_out=./qdrant_client/grpc # maybe I'll remove this crutch when google makes normal imports for issue from 2016 # https://github.com/protocolbuffers/protobuf/issues/1491