refactor: excel parse
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from .points_pb2 import *
|
||||
from .collections_pb2 import *
|
||||
from .qdrant_common_pb2 import *
|
||||
from .snapshots_service_pb2 import *
|
||||
from .json_with_int_pb2 import *
|
||||
from .collections_service_pb2_grpc import *
|
||||
from .points_service_pb2_grpc import *
|
||||
from .snapshots_service_pb2_grpc import *
|
||||
from .qdrant_pb2 import *
|
||||
from .qdrant_pb2_grpc import *
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: collections_service.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from . import collections_pb2 as collections__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x63ollections_service.proto\x12\x06qdrant\x1a\x11\x63ollections.proto2\xe2\x08\n\x0b\x43ollections\x12L\n\x03Get\x12 .qdrant.GetCollectionInfoRequest\x1a!.qdrant.GetCollectionInfoResponse\"\x00\x12I\n\x04List\x12\x1e.qdrant.ListCollectionsRequest\x1a\x1f.qdrant.ListCollectionsResponse\"\x00\x12I\n\x06\x43reate\x12\x18.qdrant.CreateCollection\x1a#.qdrant.CollectionOperationResponse\"\x00\x12I\n\x06Update\x12\x18.qdrant.UpdateCollection\x1a#.qdrant.CollectionOperationResponse\"\x00\x12I\n\x06\x44\x65lete\x12\x18.qdrant.DeleteCollection\x1a#.qdrant.CollectionOperationResponse\"\x00\x12M\n\rUpdateAliases\x12\x15.qdrant.ChangeAliases\x1a#.qdrant.CollectionOperationResponse\"\x00\x12\\\n\x15ListCollectionAliases\x12$.qdrant.ListCollectionAliasesRequest\x1a\x1b.qdrant.ListAliasesResponse\"\x00\x12H\n\x0bListAliases\x12\x1a.qdrant.ListAliasesRequest\x1a\x1b.qdrant.ListAliasesResponse\"\x00\x12\x66\n\x15\x43ollectionClusterInfo\x12$.qdrant.CollectionClusterInfoRequest\x1a%.qdrant.CollectionClusterInfoResponse\"\x00\x12W\n\x10\x43ollectionExists\x12\x1f.qdrant.CollectionExistsRequest\x1a .qdrant.CollectionExistsResponse\"\x00\x12{\n\x1cUpdateCollectionClusterSetup\x12+.qdrant.UpdateCollectionClusterSetupRequest\x1a,.qdrant.UpdateCollectionClusterSetupResponse\"\x00\x12Q\n\x0e\x43reateShardKey\x12\x1d.qdrant.CreateShardKeyRequest\x1a\x1e.qdrant.CreateShardKeyResponse\"\x00\x12Q\n\x0e\x44\x65leteShardKey\x12\x1d.qdrant.DeleteShardKeyRequest\x1a\x1e.qdrant.DeleteShardKeyResponse\"\x00\x42\x15\xaa\x02\x12Qdrant.Client.Grpcb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'collections_service_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\252\002\022Qdrant.Client.Grpc'
|
||||
_globals['_COLLECTIONS']._serialized_start=57
|
||||
_globals['_COLLECTIONS']._serialized_end=1179
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,7 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
import google.protobuf.descriptor
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
+488
@@ -0,0 +1,488 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from . import collections_pb2 as collections__pb2
|
||||
|
||||
|
||||
class CollectionsStub(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Get = channel.unary_unary(
|
||||
'/qdrant.Collections/Get',
|
||||
request_serializer=collections__pb2.GetCollectionInfoRequest.SerializeToString,
|
||||
response_deserializer=collections__pb2.GetCollectionInfoResponse.FromString,
|
||||
)
|
||||
self.List = channel.unary_unary(
|
||||
'/qdrant.Collections/List',
|
||||
request_serializer=collections__pb2.ListCollectionsRequest.SerializeToString,
|
||||
response_deserializer=collections__pb2.ListCollectionsResponse.FromString,
|
||||
)
|
||||
self.Create = channel.unary_unary(
|
||||
'/qdrant.Collections/Create',
|
||||
request_serializer=collections__pb2.CreateCollection.SerializeToString,
|
||||
response_deserializer=collections__pb2.CollectionOperationResponse.FromString,
|
||||
)
|
||||
self.Update = channel.unary_unary(
|
||||
'/qdrant.Collections/Update',
|
||||
request_serializer=collections__pb2.UpdateCollection.SerializeToString,
|
||||
response_deserializer=collections__pb2.CollectionOperationResponse.FromString,
|
||||
)
|
||||
self.Delete = channel.unary_unary(
|
||||
'/qdrant.Collections/Delete',
|
||||
request_serializer=collections__pb2.DeleteCollection.SerializeToString,
|
||||
response_deserializer=collections__pb2.CollectionOperationResponse.FromString,
|
||||
)
|
||||
self.UpdateAliases = channel.unary_unary(
|
||||
'/qdrant.Collections/UpdateAliases',
|
||||
request_serializer=collections__pb2.ChangeAliases.SerializeToString,
|
||||
response_deserializer=collections__pb2.CollectionOperationResponse.FromString,
|
||||
)
|
||||
self.ListCollectionAliases = channel.unary_unary(
|
||||
'/qdrant.Collections/ListCollectionAliases',
|
||||
request_serializer=collections__pb2.ListCollectionAliasesRequest.SerializeToString,
|
||||
response_deserializer=collections__pb2.ListAliasesResponse.FromString,
|
||||
)
|
||||
self.ListAliases = channel.unary_unary(
|
||||
'/qdrant.Collections/ListAliases',
|
||||
request_serializer=collections__pb2.ListAliasesRequest.SerializeToString,
|
||||
response_deserializer=collections__pb2.ListAliasesResponse.FromString,
|
||||
)
|
||||
self.CollectionClusterInfo = channel.unary_unary(
|
||||
'/qdrant.Collections/CollectionClusterInfo',
|
||||
request_serializer=collections__pb2.CollectionClusterInfoRequest.SerializeToString,
|
||||
response_deserializer=collections__pb2.CollectionClusterInfoResponse.FromString,
|
||||
)
|
||||
self.CollectionExists = channel.unary_unary(
|
||||
'/qdrant.Collections/CollectionExists',
|
||||
request_serializer=collections__pb2.CollectionExistsRequest.SerializeToString,
|
||||
response_deserializer=collections__pb2.CollectionExistsResponse.FromString,
|
||||
)
|
||||
self.UpdateCollectionClusterSetup = channel.unary_unary(
|
||||
'/qdrant.Collections/UpdateCollectionClusterSetup',
|
||||
request_serializer=collections__pb2.UpdateCollectionClusterSetupRequest.SerializeToString,
|
||||
response_deserializer=collections__pb2.UpdateCollectionClusterSetupResponse.FromString,
|
||||
)
|
||||
self.CreateShardKey = channel.unary_unary(
|
||||
'/qdrant.Collections/CreateShardKey',
|
||||
request_serializer=collections__pb2.CreateShardKeyRequest.SerializeToString,
|
||||
response_deserializer=collections__pb2.CreateShardKeyResponse.FromString,
|
||||
)
|
||||
self.DeleteShardKey = channel.unary_unary(
|
||||
'/qdrant.Collections/DeleteShardKey',
|
||||
request_serializer=collections__pb2.DeleteShardKeyRequest.SerializeToString,
|
||||
response_deserializer=collections__pb2.DeleteShardKeyResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class CollectionsServicer(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def Get(self, request, context):
|
||||
"""
|
||||
Get detailed information about specified existing collection
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def List(self, request, context):
|
||||
"""
|
||||
Get list name of all existing collections
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Create(self, request, context):
|
||||
"""
|
||||
Create new collection with given parameters
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Update(self, request, context):
|
||||
"""
|
||||
Update parameters of the existing collection
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Delete(self, request, context):
|
||||
"""
|
||||
Drop collection and all associated data
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def UpdateAliases(self, request, context):
|
||||
"""
|
||||
Update Aliases of the existing collection
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListCollectionAliases(self, request, context):
|
||||
"""
|
||||
Get list of all aliases for a collection
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListAliases(self, request, context):
|
||||
"""
|
||||
Get list of all aliases for all existing collections
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CollectionClusterInfo(self, request, context):
|
||||
"""
|
||||
Get cluster information for a collection
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CollectionExists(self, request, context):
|
||||
"""
|
||||
Check the existence of a collection
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def UpdateCollectionClusterSetup(self, request, context):
|
||||
"""
|
||||
Update cluster setup for a collection
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CreateShardKey(self, request, context):
|
||||
"""
|
||||
Create shard key
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def DeleteShardKey(self, request, context):
|
||||
"""
|
||||
Delete shard key
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_CollectionsServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Get': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Get,
|
||||
request_deserializer=collections__pb2.GetCollectionInfoRequest.FromString,
|
||||
response_serializer=collections__pb2.GetCollectionInfoResponse.SerializeToString,
|
||||
),
|
||||
'List': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.List,
|
||||
request_deserializer=collections__pb2.ListCollectionsRequest.FromString,
|
||||
response_serializer=collections__pb2.ListCollectionsResponse.SerializeToString,
|
||||
),
|
||||
'Create': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Create,
|
||||
request_deserializer=collections__pb2.CreateCollection.FromString,
|
||||
response_serializer=collections__pb2.CollectionOperationResponse.SerializeToString,
|
||||
),
|
||||
'Update': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Update,
|
||||
request_deserializer=collections__pb2.UpdateCollection.FromString,
|
||||
response_serializer=collections__pb2.CollectionOperationResponse.SerializeToString,
|
||||
),
|
||||
'Delete': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Delete,
|
||||
request_deserializer=collections__pb2.DeleteCollection.FromString,
|
||||
response_serializer=collections__pb2.CollectionOperationResponse.SerializeToString,
|
||||
),
|
||||
'UpdateAliases': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.UpdateAliases,
|
||||
request_deserializer=collections__pb2.ChangeAliases.FromString,
|
||||
response_serializer=collections__pb2.CollectionOperationResponse.SerializeToString,
|
||||
),
|
||||
'ListCollectionAliases': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListCollectionAliases,
|
||||
request_deserializer=collections__pb2.ListCollectionAliasesRequest.FromString,
|
||||
response_serializer=collections__pb2.ListAliasesResponse.SerializeToString,
|
||||
),
|
||||
'ListAliases': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListAliases,
|
||||
request_deserializer=collections__pb2.ListAliasesRequest.FromString,
|
||||
response_serializer=collections__pb2.ListAliasesResponse.SerializeToString,
|
||||
),
|
||||
'CollectionClusterInfo': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.CollectionClusterInfo,
|
||||
request_deserializer=collections__pb2.CollectionClusterInfoRequest.FromString,
|
||||
response_serializer=collections__pb2.CollectionClusterInfoResponse.SerializeToString,
|
||||
),
|
||||
'CollectionExists': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.CollectionExists,
|
||||
request_deserializer=collections__pb2.CollectionExistsRequest.FromString,
|
||||
response_serializer=collections__pb2.CollectionExistsResponse.SerializeToString,
|
||||
),
|
||||
'UpdateCollectionClusterSetup': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.UpdateCollectionClusterSetup,
|
||||
request_deserializer=collections__pb2.UpdateCollectionClusterSetupRequest.FromString,
|
||||
response_serializer=collections__pb2.UpdateCollectionClusterSetupResponse.SerializeToString,
|
||||
),
|
||||
'CreateShardKey': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.CreateShardKey,
|
||||
request_deserializer=collections__pb2.CreateShardKeyRequest.FromString,
|
||||
response_serializer=collections__pb2.CreateShardKeyResponse.SerializeToString,
|
||||
),
|
||||
'DeleteShardKey': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.DeleteShardKey,
|
||||
request_deserializer=collections__pb2.DeleteShardKeyRequest.FromString,
|
||||
response_serializer=collections__pb2.DeleteShardKeyResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'qdrant.Collections', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class Collections(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
@staticmethod
|
||||
def Get(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/Get',
|
||||
collections__pb2.GetCollectionInfoRequest.SerializeToString,
|
||||
collections__pb2.GetCollectionInfoResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def List(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/List',
|
||||
collections__pb2.ListCollectionsRequest.SerializeToString,
|
||||
collections__pb2.ListCollectionsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Create(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/Create',
|
||||
collections__pb2.CreateCollection.SerializeToString,
|
||||
collections__pb2.CollectionOperationResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Update(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/Update',
|
||||
collections__pb2.UpdateCollection.SerializeToString,
|
||||
collections__pb2.CollectionOperationResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Delete(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/Delete',
|
||||
collections__pb2.DeleteCollection.SerializeToString,
|
||||
collections__pb2.CollectionOperationResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def UpdateAliases(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/UpdateAliases',
|
||||
collections__pb2.ChangeAliases.SerializeToString,
|
||||
collections__pb2.CollectionOperationResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListCollectionAliases(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/ListCollectionAliases',
|
||||
collections__pb2.ListCollectionAliasesRequest.SerializeToString,
|
||||
collections__pb2.ListAliasesResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListAliases(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/ListAliases',
|
||||
collections__pb2.ListAliasesRequest.SerializeToString,
|
||||
collections__pb2.ListAliasesResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def CollectionClusterInfo(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/CollectionClusterInfo',
|
||||
collections__pb2.CollectionClusterInfoRequest.SerializeToString,
|
||||
collections__pb2.CollectionClusterInfoResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def CollectionExists(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/CollectionExists',
|
||||
collections__pb2.CollectionExistsRequest.SerializeToString,
|
||||
collections__pb2.CollectionExistsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def UpdateCollectionClusterSetup(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/UpdateCollectionClusterSetup',
|
||||
collections__pb2.UpdateCollectionClusterSetupRequest.SerializeToString,
|
||||
collections__pb2.UpdateCollectionClusterSetupResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def CreateShardKey(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/CreateShardKey',
|
||||
collections__pb2.CreateShardKeyRequest.SerializeToString,
|
||||
collections__pb2.CreateShardKeyResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def DeleteShardKey(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Collections/DeleteShardKey',
|
||||
collections__pb2.DeleteShardKeyRequest.SerializeToString,
|
||||
collections__pb2.DeleteShardKeyResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
@@ -0,0 +1,37 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: json_with_int.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13json_with_int.proto\x12\x06qdrant\"r\n\x06Struct\x12*\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x1a.qdrant.Struct.FieldsEntry\x1a<\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1c\n\x05value\x18\x02 \x01(\x0b\x32\r.qdrant.Value:\x02\x38\x01\"\xe8\x01\n\x05Value\x12\'\n\nnull_value\x18\x01 \x01(\x0e\x32\x11.qdrant.NullValueH\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x12\x17\n\rinteger_value\x18\x03 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x05 \x01(\x08H\x00\x12&\n\x0cstruct_value\x18\x06 \x01(\x0b\x32\x0e.qdrant.StructH\x00\x12\'\n\nlist_value\x18\x07 \x01(\x0b\x32\x11.qdrant.ListValueH\x00\x42\x06\n\x04kind\"*\n\tListValue\x12\x1d\n\x06values\x18\x01 \x03(\x0b\x32\r.qdrant.Value*\x1b\n\tNullValue\x12\x0e\n\nNULL_VALUE\x10\x00\x42\x15\xaa\x02\x12Qdrant.Client.Grpcb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'json_with_int_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\252\002\022Qdrant.Client.Grpc'
|
||||
_globals['_STRUCT_FIELDSENTRY']._options = None
|
||||
_globals['_STRUCT_FIELDSENTRY']._serialized_options = b'8\001'
|
||||
_globals['_NULLVALUE']._serialized_start=426
|
||||
_globals['_NULLVALUE']._serialized_end=453
|
||||
_globals['_STRUCT']._serialized_start=31
|
||||
_globals['_STRUCT']._serialized_end=145
|
||||
_globals['_STRUCT_FIELDSENTRY']._serialized_start=85
|
||||
_globals['_STRUCT_FIELDSENTRY']._serialized_end=145
|
||||
_globals['_VALUE']._serialized_start=148
|
||||
_globals['_VALUE']._serialized_end=380
|
||||
_globals['_LISTVALUE']._serialized_start=382
|
||||
_globals['_LISTVALUE']._serialized_end=424
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,154 @@
|
||||
"""
|
||||
@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): # noqa: F821
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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_extensions.Literal["value", b"value"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.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_extensions.Literal["fields", b"fields"]) -> None: ...
|
||||
|
||||
global___Struct = Struct
|
||||
|
||||
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_extensions.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_extensions.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_extensions.Literal["kind", b"kind"]) -> typing_extensions.Literal["null_value", "double_value", "integer_value", "string_value", "bool_value", "struct_value", "list_value"] | None: ...
|
||||
|
||||
global___Value = Value
|
||||
|
||||
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_extensions.Literal["values", b"values"]) -> None: ...
|
||||
|
||||
global___ListValue = ListValue
|
||||
@@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: points_service.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from . import points_pb2 as points__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14points_service.proto\x12\x06qdrant\x1a\x0cpoints.proto2\xfd\x0f\n\x06Points\x12\x41\n\x06Upsert\x12\x14.qdrant.UpsertPoints\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12\x41\n\x06\x44\x65lete\x12\x14.qdrant.DeletePoints\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12/\n\x03Get\x12\x11.qdrant.GetPoints\x1a\x13.qdrant.GetResponse\"\x00\x12N\n\rUpdateVectors\x12\x1a.qdrant.UpdatePointVectors\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12N\n\rDeleteVectors\x12\x1a.qdrant.DeletePointVectors\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12I\n\nSetPayload\x12\x18.qdrant.SetPayloadPoints\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12O\n\x10OverwritePayload\x12\x18.qdrant.SetPayloadPoints\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12O\n\rDeletePayload\x12\x1b.qdrant.DeletePayloadPoints\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12M\n\x0c\x43learPayload\x12\x1a.qdrant.ClearPayloadPoints\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12Y\n\x10\x43reateFieldIndex\x12\".qdrant.CreateFieldIndexCollection\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12Y\n\x10\x44\x65leteFieldIndex\x12\".qdrant.DeleteFieldIndexCollection\x1a\x1f.qdrant.PointsOperationResponse\"\x00\x12\x38\n\x06Search\x12\x14.qdrant.SearchPoints\x1a\x16.qdrant.SearchResponse\"\x00\x12G\n\x0bSearchBatch\x12\x19.qdrant.SearchBatchPoints\x1a\x1b.qdrant.SearchBatchResponse\"\x00\x12I\n\x0cSearchGroups\x12\x19.qdrant.SearchPointGroups\x1a\x1c.qdrant.SearchGroupsResponse\"\x00\x12\x38\n\x06Scroll\x12\x14.qdrant.ScrollPoints\x1a\x16.qdrant.ScrollResponse\"\x00\x12\x41\n\tRecommend\x12\x17.qdrant.RecommendPoints\x1a\x19.qdrant.RecommendResponse\"\x00\x12P\n\x0eRecommendBatch\x12\x1c.qdrant.RecommendBatchPoints\x1a\x1e.qdrant.RecommendBatchResponse\"\x00\x12R\n\x0fRecommendGroups\x12\x1c.qdrant.RecommendPointGroups\x1a\x1f.qdrant.RecommendGroupsResponse\"\x00\x12>\n\x08\x44iscover\x12\x16.qdrant.DiscoverPoints\x1a\x18.qdrant.DiscoverResponse\"\x00\x12M\n\rDiscoverBatch\x12\x1b.qdrant.DiscoverBatchPoints\x1a\x1d.qdrant.DiscoverBatchResponse\"\x00\x12\x35\n\x05\x43ount\x12\x13.qdrant.CountPoints\x1a\x15.qdrant.CountResponse\"\x00\x12G\n\x0bUpdateBatch\x12\x19.qdrant.UpdateBatchPoints\x1a\x1b.qdrant.UpdateBatchResponse\"\x00\x12\x35\n\x05Query\x12\x13.qdrant.QueryPoints\x1a\x15.qdrant.QueryResponse\"\x00\x12\x44\n\nQueryBatch\x12\x18.qdrant.QueryBatchPoints\x1a\x1a.qdrant.QueryBatchResponse\"\x00\x12\x46\n\x0bQueryGroups\x12\x18.qdrant.QueryPointGroups\x1a\x1b.qdrant.QueryGroupsResponse\"\x00\x12\x35\n\x05\x46\x61\x63\x65t\x12\x13.qdrant.FacetCounts\x1a\x15.qdrant.FacetResponse\"\x00\x12T\n\x11SearchMatrixPairs\x12\x1a.qdrant.SearchMatrixPoints\x1a!.qdrant.SearchMatrixPairsResponse\"\x00\x12X\n\x13SearchMatrixOffsets\x12\x1a.qdrant.SearchMatrixPoints\x1a#.qdrant.SearchMatrixOffsetsResponse\"\x00\x42\x15\xaa\x02\x12Qdrant.Client.Grpcb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'points_service_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\252\002\022Qdrant.Client.Grpc'
|
||||
_globals['_POINTS']._serialized_start=47
|
||||
_globals['_POINTS']._serialized_end=2092
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,7 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
import google.protobuf.descriptor
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
+1027
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,68 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: qdrant_common.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13qdrant_common.proto\x12\x06qdrant\x1a\x1fgoogle/protobuf/timestamp.proto\"<\n\x07PointId\x12\r\n\x03num\x18\x01 \x01(\x04H\x00\x12\x0e\n\x04uuid\x18\x02 \x01(\tH\x00\x42\x12\n\x10point_id_options\"$\n\x08GeoPoint\x12\x0b\n\x03lon\x18\x01 \x01(\x01\x12\x0b\n\x03lat\x18\x02 \x01(\x01\"\xac\x01\n\x06\x46ilter\x12!\n\x06should\x18\x01 \x03(\x0b\x32\x11.qdrant.Condition\x12\x1f\n\x04must\x18\x02 \x03(\x0b\x32\x11.qdrant.Condition\x12#\n\x08must_not\x18\x03 \x03(\x0b\x32\x11.qdrant.Condition\x12*\n\nmin_should\x18\x04 \x01(\x0b\x32\x11.qdrant.MinShouldH\x00\x88\x01\x01\x42\r\n\x0b_min_should\"E\n\tMinShould\x12%\n\nconditions\x18\x01 \x03(\x0b\x32\x11.qdrant.Condition\x12\x11\n\tmin_count\x18\x02 \x01(\x04\"\xcb\x02\n\tCondition\x12\'\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x16.qdrant.FieldConditionH\x00\x12,\n\x08is_empty\x18\x02 \x01(\x0b\x32\x18.qdrant.IsEmptyConditionH\x00\x12(\n\x06has_id\x18\x03 \x01(\x0b\x32\x16.qdrant.HasIdConditionH\x00\x12 \n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x0e.qdrant.FilterH\x00\x12*\n\x07is_null\x18\x05 \x01(\x0b\x32\x17.qdrant.IsNullConditionH\x00\x12)\n\x06nested\x18\x06 \x01(\x0b\x32\x17.qdrant.NestedConditionH\x00\x12\x30\n\nhas_vector\x18\x07 \x01(\x0b\x32\x1a.qdrant.HasVectorConditionH\x00\x42\x12\n\x10\x63ondition_one_of\"\x1f\n\x10IsEmptyCondition\x12\x0b\n\x03key\x18\x01 \x01(\t\"\x1e\n\x0fIsNullCondition\x12\x0b\n\x03key\x18\x01 \x01(\t\"1\n\x0eHasIdCondition\x12\x1f\n\x06has_id\x18\x01 \x03(\x0b\x32\x0f.qdrant.PointId\"(\n\x12HasVectorCondition\x12\x12\n\nhas_vector\x18\x01 \x01(\t\">\n\x0fNestedCondition\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1e\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x0e.qdrant.Filter\"\xfb\x02\n\x0e\x46ieldCondition\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1c\n\x05match\x18\x02 \x01(\x0b\x32\r.qdrant.Match\x12\x1c\n\x05range\x18\x03 \x01(\x0b\x32\r.qdrant.Range\x12\x30\n\x10geo_bounding_box\x18\x04 \x01(\x0b\x32\x16.qdrant.GeoBoundingBox\x12%\n\ngeo_radius\x18\x05 \x01(\x0b\x32\x11.qdrant.GeoRadius\x12)\n\x0cvalues_count\x18\x06 \x01(\x0b\x32\x13.qdrant.ValuesCount\x12\'\n\x0bgeo_polygon\x18\x07 \x01(\x0b\x32\x12.qdrant.GeoPolygon\x12-\n\x0e\x64\x61tetime_range\x18\x08 \x01(\x0b\x32\x15.qdrant.DatetimeRange\x12\x15\n\x08is_empty\x18\t \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07is_null\x18\n \x01(\x08H\x01\x88\x01\x01\x42\x0b\n\t_is_emptyB\n\n\x08_is_null\"\xc9\x02\n\x05Match\x12\x11\n\x07keyword\x18\x01 \x01(\tH\x00\x12\x11\n\x07integer\x18\x02 \x01(\x03H\x00\x12\x11\n\x07\x62oolean\x18\x03 \x01(\x08H\x00\x12\x0e\n\x04text\x18\x04 \x01(\tH\x00\x12+\n\x08keywords\x18\x05 \x01(\x0b\x32\x17.qdrant.RepeatedStringsH\x00\x12,\n\x08integers\x18\x06 \x01(\x0b\x32\x18.qdrant.RepeatedIntegersH\x00\x12\x33\n\x0f\x65xcept_integers\x18\x07 \x01(\x0b\x32\x18.qdrant.RepeatedIntegersH\x00\x12\x32\n\x0f\x65xcept_keywords\x18\x08 \x01(\x0b\x32\x17.qdrant.RepeatedStringsH\x00\x12\x10\n\x06phrase\x18\t \x01(\tH\x00\x12\x12\n\x08text_any\x18\n \x01(\tH\x00\x42\r\n\x0bmatch_value\"\"\n\x0fRepeatedStrings\x12\x0f\n\x07strings\x18\x01 \x03(\t\"$\n\x10RepeatedIntegers\x12\x10\n\x08integers\x18\x01 \x03(\x03\"k\n\x05Range\x12\x0f\n\x02lt\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x0f\n\x02gt\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\x10\n\x03gte\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12\x10\n\x03lte\x18\x04 \x01(\x01H\x03\x88\x01\x01\x42\x05\n\x03_ltB\x05\n\x03_gtB\x06\n\x04_gteB\x06\n\x04_lte\"\xe3\x01\n\rDatetimeRange\x12+\n\x02lt\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x12+\n\x02gt\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x88\x01\x01\x12,\n\x03gte\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02\x88\x01\x01\x12,\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03\x88\x01\x01\x42\x05\n\x03_ltB\x05\n\x03_gtB\x06\n\x04_gteB\x06\n\x04_lte\"\\\n\x0eGeoBoundingBox\x12\"\n\x08top_left\x18\x01 \x01(\x0b\x32\x10.qdrant.GeoPoint\x12&\n\x0c\x62ottom_right\x18\x02 \x01(\x0b\x32\x10.qdrant.GeoPoint\"=\n\tGeoRadius\x12 \n\x06\x63\x65nter\x18\x01 \x01(\x0b\x32\x10.qdrant.GeoPoint\x12\x0e\n\x06radius\x18\x02 \x01(\x02\"1\n\rGeoLineString\x12 \n\x06points\x18\x01 \x03(\x0b\x32\x10.qdrant.GeoPoint\"_\n\nGeoPolygon\x12\'\n\x08\x65xterior\x18\x01 \x01(\x0b\x32\x15.qdrant.GeoLineString\x12(\n\tinteriors\x18\x02 \x03(\x0b\x32\x15.qdrant.GeoLineString\"q\n\x0bValuesCount\x12\x0f\n\x02lt\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x0f\n\x02gt\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x10\n\x03gte\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12\x10\n\x03lte\x18\x04 \x01(\x04H\x03\x88\x01\x01\x42\x05\n\x03_ltB\x05\n\x03_gtB\x06\n\x04_gteB\x06\n\x04_lteB\x1d\x42\x06\x43ommon\xaa\x02\x12Qdrant.Client.Grpcb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qdrant_common_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'B\006Common\252\002\022Qdrant.Client.Grpc'
|
||||
_globals['_POINTID']._serialized_start=64
|
||||
_globals['_POINTID']._serialized_end=124
|
||||
_globals['_GEOPOINT']._serialized_start=126
|
||||
_globals['_GEOPOINT']._serialized_end=162
|
||||
_globals['_FILTER']._serialized_start=165
|
||||
_globals['_FILTER']._serialized_end=337
|
||||
_globals['_MINSHOULD']._serialized_start=339
|
||||
_globals['_MINSHOULD']._serialized_end=408
|
||||
_globals['_CONDITION']._serialized_start=411
|
||||
_globals['_CONDITION']._serialized_end=742
|
||||
_globals['_ISEMPTYCONDITION']._serialized_start=744
|
||||
_globals['_ISEMPTYCONDITION']._serialized_end=775
|
||||
_globals['_ISNULLCONDITION']._serialized_start=777
|
||||
_globals['_ISNULLCONDITION']._serialized_end=807
|
||||
_globals['_HASIDCONDITION']._serialized_start=809
|
||||
_globals['_HASIDCONDITION']._serialized_end=858
|
||||
_globals['_HASVECTORCONDITION']._serialized_start=860
|
||||
_globals['_HASVECTORCONDITION']._serialized_end=900
|
||||
_globals['_NESTEDCONDITION']._serialized_start=902
|
||||
_globals['_NESTEDCONDITION']._serialized_end=964
|
||||
_globals['_FIELDCONDITION']._serialized_start=967
|
||||
_globals['_FIELDCONDITION']._serialized_end=1346
|
||||
_globals['_MATCH']._serialized_start=1349
|
||||
_globals['_MATCH']._serialized_end=1678
|
||||
_globals['_REPEATEDSTRINGS']._serialized_start=1680
|
||||
_globals['_REPEATEDSTRINGS']._serialized_end=1714
|
||||
_globals['_REPEATEDINTEGERS']._serialized_start=1716
|
||||
_globals['_REPEATEDINTEGERS']._serialized_end=1752
|
||||
_globals['_RANGE']._serialized_start=1754
|
||||
_globals['_RANGE']._serialized_end=1861
|
||||
_globals['_DATETIMERANGE']._serialized_start=1864
|
||||
_globals['_DATETIMERANGE']._serialized_end=2091
|
||||
_globals['_GEOBOUNDINGBOX']._serialized_start=2093
|
||||
_globals['_GEOBOUNDINGBOX']._serialized_end=2185
|
||||
_globals['_GEORADIUS']._serialized_start=2187
|
||||
_globals['_GEORADIUS']._serialized_end=2248
|
||||
_globals['_GEOLINESTRING']._serialized_start=2250
|
||||
_globals['_GEOLINESTRING']._serialized_end=2299
|
||||
_globals['_GEOPOLYGON']._serialized_start=2301
|
||||
_globals['_GEOPOLYGON']._serialized_end=2396
|
||||
_globals['_VALUESCOUNT']._serialized_start=2398
|
||||
_globals['_VALUESCOUNT']._serialized_end=2511
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,561 @@
|
||||
"""
|
||||
@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 sys
|
||||
import typing
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
class PointId(google.protobuf.message.Message):
|
||||
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_extensions.Literal["num", b"num", "point_id_options", b"point_id_options", "uuid", b"uuid"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["num", b"num", "point_id_options", b"point_id_options", "uuid", b"uuid"]) -> None: ...
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["point_id_options", b"point_id_options"]) -> typing_extensions.Literal["num", "uuid"] | None: ...
|
||||
|
||||
global___PointId = PointId
|
||||
|
||||
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_extensions.Literal["lat", b"lat", "lon", b"lon"]) -> None: ...
|
||||
|
||||
global___GeoPoint = GeoPoint
|
||||
|
||||
class Filter(google.protobuf.message.Message):
|
||||
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_extensions.Literal["_min_should", b"_min_should", "min_should", b"min_should"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.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_extensions.Literal["_min_should", b"_min_should"]) -> typing_extensions.Literal["min_should"] | None: ...
|
||||
|
||||
global___Filter = Filter
|
||||
|
||||
class MinShould(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
CONDITIONS_FIELD_NUMBER: builtins.int
|
||||
MIN_COUNT_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def conditions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Condition]: ...
|
||||
min_count: builtins.int
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
conditions: collections.abc.Iterable[global___Condition] | None = ...,
|
||||
min_count: builtins.int = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["conditions", b"conditions", "min_count", b"min_count"]) -> None: ...
|
||||
|
||||
global___MinShould = MinShould
|
||||
|
||||
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
|
||||
HAS_VECTOR_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: ...
|
||||
@property
|
||||
def has_vector(self) -> global___HasVectorCondition: ...
|
||||
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 = ...,
|
||||
has_vector: global___HasVectorCondition | None = ...,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions.Literal["condition_one_of", b"condition_one_of", "field", b"field", "filter", b"filter", "has_id", b"has_id", "has_vector", b"has_vector", "is_empty", b"is_empty", "is_null", b"is_null", "nested", b"nested"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["condition_one_of", b"condition_one_of", "field", b"field", "filter", b"filter", "has_id", b"has_id", "has_vector", b"has_vector", "is_empty", b"is_empty", "is_null", b"is_null", "nested", b"nested"]) -> None: ...
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["condition_one_of", b"condition_one_of"]) -> typing_extensions.Literal["field", "is_empty", "has_id", "filter", "is_null", "nested", "has_vector"] | None: ...
|
||||
|
||||
global___Condition = Condition
|
||||
|
||||
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_extensions.Literal["key", b"key"]) -> None: ...
|
||||
|
||||
global___IsEmptyCondition = IsEmptyCondition
|
||||
|
||||
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_extensions.Literal["key", b"key"]) -> None: ...
|
||||
|
||||
global___IsNullCondition = IsNullCondition
|
||||
|
||||
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_extensions.Literal["has_id", b"has_id"]) -> None: ...
|
||||
|
||||
global___HasIdCondition = HasIdCondition
|
||||
|
||||
class HasVectorCondition(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
HAS_VECTOR_FIELD_NUMBER: builtins.int
|
||||
has_vector: builtins.str
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
has_vector: builtins.str = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["has_vector", b"has_vector"]) -> None: ...
|
||||
|
||||
global___HasVectorCondition = HasVectorCondition
|
||||
|
||||
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_extensions.Literal["filter", b"filter"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["filter", b"filter", "key", b"key"]) -> None: ...
|
||||
|
||||
global___NestedCondition = NestedCondition
|
||||
|
||||
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
|
||||
IS_EMPTY_FIELD_NUMBER: builtins.int
|
||||
IS_NULL_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"""
|
||||
is_empty: builtins.bool
|
||||
"""Check if field is empty"""
|
||||
is_null: builtins.bool
|
||||
"""Check if field is null"""
|
||||
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 = ...,
|
||||
is_empty: builtins.bool | None = ...,
|
||||
is_null: builtins.bool | None = ...,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions.Literal["_is_empty", b"_is_empty", "_is_null", b"_is_null", "datetime_range", b"datetime_range", "geo_bounding_box", b"geo_bounding_box", "geo_polygon", b"geo_polygon", "geo_radius", b"geo_radius", "is_empty", b"is_empty", "is_null", b"is_null", "match", b"match", "range", b"range", "values_count", b"values_count"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["_is_empty", b"_is_empty", "_is_null", b"_is_null", "datetime_range", b"datetime_range", "geo_bounding_box", b"geo_bounding_box", "geo_polygon", b"geo_polygon", "geo_radius", b"geo_radius", "is_empty", b"is_empty", "is_null", b"is_null", "key", b"key", "match", b"match", "range", b"range", "values_count", b"values_count"]) -> None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_is_empty", b"_is_empty"]) -> typing_extensions.Literal["is_empty"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_is_null", b"_is_null"]) -> typing_extensions.Literal["is_null"] | None: ...
|
||||
|
||||
global___FieldCondition = FieldCondition
|
||||
|
||||
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
|
||||
PHRASE_FIELD_NUMBER: builtins.int
|
||||
TEXT_ANY_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"""
|
||||
phrase: builtins.str
|
||||
"""Match phrase text"""
|
||||
text_any: builtins.str
|
||||
"""Match any word in the text"""
|
||||
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 = ...,
|
||||
phrase: builtins.str = ...,
|
||||
text_any: builtins.str = ...,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions.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", "phrase", b"phrase", "text", b"text", "text_any", b"text_any"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.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", "phrase", b"phrase", "text", b"text", "text_any", b"text_any"]) -> None: ...
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["match_value", b"match_value"]) -> typing_extensions.Literal["keyword", "integer", "boolean", "text", "keywords", "integers", "except_integers", "except_keywords", "phrase", "text_any"] | None: ...
|
||||
|
||||
global___Match = Match
|
||||
|
||||
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_extensions.Literal["strings", b"strings"]) -> None: ...
|
||||
|
||||
global___RepeatedStrings = RepeatedStrings
|
||||
|
||||
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_extensions.Literal["integers", b"integers"]) -> None: ...
|
||||
|
||||
global___RepeatedIntegers = RepeatedIntegers
|
||||
|
||||
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_extensions.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_extensions.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_extensions.Literal["_gt", b"_gt"]) -> typing_extensions.Literal["gt"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_gte", b"_gte"]) -> typing_extensions.Literal["gte"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_lt", b"_lt"]) -> typing_extensions.Literal["lt"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_lte", b"_lte"]) -> typing_extensions.Literal["lte"] | None: ...
|
||||
|
||||
global___Range = Range
|
||||
|
||||
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_extensions.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_extensions.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_extensions.Literal["_gt", b"_gt"]) -> typing_extensions.Literal["gt"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_gte", b"_gte"]) -> typing_extensions.Literal["gte"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_lt", b"_lt"]) -> typing_extensions.Literal["lt"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_lte", b"_lte"]) -> typing_extensions.Literal["lte"] | None: ...
|
||||
|
||||
global___DatetimeRange = DatetimeRange
|
||||
|
||||
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_extensions.Literal["bottom_right", b"bottom_right", "top_left", b"top_left"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["bottom_right", b"bottom_right", "top_left", b"top_left"]) -> None: ...
|
||||
|
||||
global___GeoBoundingBox = GeoBoundingBox
|
||||
|
||||
class GeoRadius(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
CENTER_FIELD_NUMBER: builtins.int
|
||||
RADIUS_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def center(self) -> global___GeoPoint:
|
||||
"""Center of the circle"""
|
||||
radius: builtins.float
|
||||
"""In meters"""
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
center: global___GeoPoint | None = ...,
|
||||
radius: builtins.float = ...,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions.Literal["center", b"center"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["center", b"center", "radius", b"radius"]) -> None: ...
|
||||
|
||||
global___GeoRadius = GeoRadius
|
||||
|
||||
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_extensions.Literal["points", b"points"]) -> None: ...
|
||||
|
||||
global___GeoLineString = GeoLineString
|
||||
|
||||
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_extensions.Literal["exterior", b"exterior"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["exterior", b"exterior", "interiors", b"interiors"]) -> None: ...
|
||||
|
||||
global___GeoPolygon = GeoPolygon
|
||||
|
||||
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_extensions.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_extensions.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_extensions.Literal["_gt", b"_gt"]) -> typing_extensions.Literal["gt"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_gte", b"_gte"]) -> typing_extensions.Literal["gte"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_lt", b"_lt"]) -> typing_extensions.Literal["lt"] | None: ...
|
||||
@typing.overload
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_lte", b"_lte"]) -> typing_extensions.Literal["lte"] | None: ...
|
||||
|
||||
global___ValuesCount = ValuesCount
|
||||
@@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: qdrant.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from . import collections_service_pb2 as collections__service__pb2
|
||||
from . import points_service_pb2 as points__service__pb2
|
||||
from . import snapshots_service_pb2 as snapshots__service__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cqdrant.proto\x12\x06qdrant\x1a\x19\x63ollections_service.proto\x1a\x14points_service.proto\x1a\x17snapshots_service.proto\"\x14\n\x12HealthCheckRequest\"R\n\x10HealthCheckReply\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x13\n\x06\x63ommit\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\t\n\x07_commit2O\n\x06Qdrant\x12\x45\n\x0bHealthCheck\x12\x1a.qdrant.HealthCheckRequest\x1a\x18.qdrant.HealthCheckReply\"\x00\x42\x15\xaa\x02\x12Qdrant.Client.Grpcb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qdrant_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\252\002\022Qdrant.Client.Grpc'
|
||||
_globals['_HEALTHCHECKREQUEST']._serialized_start=98
|
||||
_globals['_HEALTHCHECKREQUEST']._serialized_end=118
|
||||
_globals['_HEALTHCHECKREPLY']._serialized_start=120
|
||||
_globals['_HEALTHCHECKREPLY']._serialized_end=202
|
||||
_globals['_QDRANT']._serialized_start=204
|
||||
_globals['_QDRANT']._serialized_end=283
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,46 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
"""
|
||||
import builtins
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.message
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
class HealthCheckRequest(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
) -> None: ...
|
||||
|
||||
global___HealthCheckRequest = HealthCheckRequest
|
||||
|
||||
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_extensions.Literal["_commit", b"_commit", "commit", b"commit"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["_commit", b"_commit", "commit", b"commit", "title", b"title", "version", b"version"]) -> None: ...
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["_commit", b"_commit"]) -> typing_extensions.Literal["commit"] | None: ...
|
||||
|
||||
global___HealthCheckReply = HealthCheckReply
|
||||
@@ -0,0 +1,66 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from . import qdrant_pb2 as qdrant__pb2
|
||||
|
||||
|
||||
class QdrantStub(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.HealthCheck = channel.unary_unary(
|
||||
'/qdrant.Qdrant/HealthCheck',
|
||||
request_serializer=qdrant__pb2.HealthCheckRequest.SerializeToString,
|
||||
response_deserializer=qdrant__pb2.HealthCheckReply.FromString,
|
||||
)
|
||||
|
||||
|
||||
class QdrantServicer(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def HealthCheck(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_QdrantServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'HealthCheck': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.HealthCheck,
|
||||
request_deserializer=qdrant__pb2.HealthCheckRequest.FromString,
|
||||
response_serializer=qdrant__pb2.HealthCheckReply.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'qdrant.Qdrant', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class Qdrant(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
@staticmethod
|
||||
def HealthCheck(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Qdrant/HealthCheck',
|
||||
qdrant__pb2.HealthCheckRequest.SerializeToString,
|
||||
qdrant__pb2.HealthCheckReply.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
@@ -0,0 +1,48 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: snapshots_service.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17snapshots_service.proto\x12\x06qdrant\x1a\x1fgoogle/protobuf/timestamp.proto\"\x1b\n\x19\x43reateFullSnapshotRequest\"\x1a\n\x18ListFullSnapshotsRequest\"2\n\x19\x44\x65leteFullSnapshotRequest\x12\x15\n\rsnapshot_name\x18\x01 \x01(\t\"0\n\x15\x43reateSnapshotRequest\x12\x17\n\x0f\x63ollection_name\x18\x01 \x01(\t\"/\n\x14ListSnapshotsRequest\x12\x17\n\x0f\x63ollection_name\x18\x01 \x01(\t\"G\n\x15\x44\x65leteSnapshotRequest\x12\x17\n\x0f\x63ollection_name\x18\x01 \x01(\t\x12\x15\n\rsnapshot_name\x18\x02 \x01(\t\"\x88\x01\n\x13SnapshotDescription\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rcreation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04size\x18\x03 \x01(\x03\x12\x15\n\x08\x63hecksum\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_checksum\"a\n\x16\x43reateSnapshotResponse\x12\x39\n\x14snapshot_description\x18\x01 \x01(\x0b\x32\x1b.qdrant.SnapshotDescription\x12\x0c\n\x04time\x18\x02 \x01(\x01\"a\n\x15ListSnapshotsResponse\x12:\n\x15snapshot_descriptions\x18\x01 \x03(\x0b\x32\x1b.qdrant.SnapshotDescription\x12\x0c\n\x04time\x18\x02 \x01(\x01\"&\n\x16\x44\x65leteSnapshotResponse\x12\x0c\n\x04time\x18\x01 \x01(\x01\x32\xdd\x03\n\tSnapshots\x12I\n\x06\x43reate\x12\x1d.qdrant.CreateSnapshotRequest\x1a\x1e.qdrant.CreateSnapshotResponse\"\x00\x12\x45\n\x04List\x12\x1c.qdrant.ListSnapshotsRequest\x1a\x1d.qdrant.ListSnapshotsResponse\"\x00\x12I\n\x06\x44\x65lete\x12\x1d.qdrant.DeleteSnapshotRequest\x1a\x1e.qdrant.DeleteSnapshotResponse\"\x00\x12Q\n\nCreateFull\x12!.qdrant.CreateFullSnapshotRequest\x1a\x1e.qdrant.CreateSnapshotResponse\"\x00\x12M\n\x08ListFull\x12 .qdrant.ListFullSnapshotsRequest\x1a\x1d.qdrant.ListSnapshotsResponse\"\x00\x12Q\n\nDeleteFull\x12!.qdrant.DeleteFullSnapshotRequest\x1a\x1e.qdrant.DeleteSnapshotResponse\"\x00\x42\x15\xaa\x02\x12Qdrant.Client.Grpcb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'snapshots_service_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\252\002\022Qdrant.Client.Grpc'
|
||||
_globals['_CREATEFULLSNAPSHOTREQUEST']._serialized_start=68
|
||||
_globals['_CREATEFULLSNAPSHOTREQUEST']._serialized_end=95
|
||||
_globals['_LISTFULLSNAPSHOTSREQUEST']._serialized_start=97
|
||||
_globals['_LISTFULLSNAPSHOTSREQUEST']._serialized_end=123
|
||||
_globals['_DELETEFULLSNAPSHOTREQUEST']._serialized_start=125
|
||||
_globals['_DELETEFULLSNAPSHOTREQUEST']._serialized_end=175
|
||||
_globals['_CREATESNAPSHOTREQUEST']._serialized_start=177
|
||||
_globals['_CREATESNAPSHOTREQUEST']._serialized_end=225
|
||||
_globals['_LISTSNAPSHOTSREQUEST']._serialized_start=227
|
||||
_globals['_LISTSNAPSHOTSREQUEST']._serialized_end=274
|
||||
_globals['_DELETESNAPSHOTREQUEST']._serialized_start=276
|
||||
_globals['_DELETESNAPSHOTREQUEST']._serialized_end=347
|
||||
_globals['_SNAPSHOTDESCRIPTION']._serialized_start=350
|
||||
_globals['_SNAPSHOTDESCRIPTION']._serialized_end=486
|
||||
_globals['_CREATESNAPSHOTRESPONSE']._serialized_start=488
|
||||
_globals['_CREATESNAPSHOTRESPONSE']._serialized_end=585
|
||||
_globals['_LISTSNAPSHOTSRESPONSE']._serialized_start=587
|
||||
_globals['_LISTSNAPSHOTSRESPONSE']._serialized_end=684
|
||||
_globals['_DELETESNAPSHOTRESPONSE']._serialized_start=686
|
||||
_globals['_DELETESNAPSHOTRESPONSE']._serialized_end=724
|
||||
_globals['_SNAPSHOTS']._serialized_start=727
|
||||
_globals['_SNAPSHOTS']._serialized_end=1204
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,184 @@
|
||||
"""
|
||||
@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 sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
class CreateFullSnapshotRequest(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
) -> None: ...
|
||||
|
||||
global___CreateFullSnapshotRequest = CreateFullSnapshotRequest
|
||||
|
||||
class ListFullSnapshotsRequest(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
) -> None: ...
|
||||
|
||||
global___ListFullSnapshotsRequest = ListFullSnapshotsRequest
|
||||
|
||||
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_extensions.Literal["snapshot_name", b"snapshot_name"]) -> None: ...
|
||||
|
||||
global___DeleteFullSnapshotRequest = DeleteFullSnapshotRequest
|
||||
|
||||
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_extensions.Literal["collection_name", b"collection_name"]) -> None: ...
|
||||
|
||||
global___CreateSnapshotRequest = CreateSnapshotRequest
|
||||
|
||||
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_extensions.Literal["collection_name", b"collection_name"]) -> None: ...
|
||||
|
||||
global___ListSnapshotsRequest = ListSnapshotsRequest
|
||||
|
||||
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_extensions.Literal["collection_name", b"collection_name", "snapshot_name", b"snapshot_name"]) -> None: ...
|
||||
|
||||
global___DeleteSnapshotRequest = DeleteSnapshotRequest
|
||||
|
||||
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"""
|
||||
@property
|
||||
def creation_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
||||
"""Creation time of the snapshot"""
|
||||
size: builtins.int
|
||||
"""Size of the snapshot in bytes"""
|
||||
checksum: builtins.str
|
||||
"""SHA256 digest of the snapshot file"""
|
||||
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_extensions.Literal["_checksum", b"_checksum", "checksum", b"checksum", "creation_time", b"creation_time"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.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_extensions.Literal["_checksum", b"_checksum"]) -> typing_extensions.Literal["checksum"] | None: ...
|
||||
|
||||
global___SnapshotDescription = SnapshotDescription
|
||||
|
||||
class CreateSnapshotResponse(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
SNAPSHOT_DESCRIPTION_FIELD_NUMBER: builtins.int
|
||||
TIME_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def snapshot_description(self) -> global___SnapshotDescription: ...
|
||||
time: builtins.float
|
||||
"""Time spent to process"""
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
snapshot_description: global___SnapshotDescription | None = ...,
|
||||
time: builtins.float = ...,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions.Literal["snapshot_description", b"snapshot_description"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["snapshot_description", b"snapshot_description", "time", b"time"]) -> None: ...
|
||||
|
||||
global___CreateSnapshotResponse = CreateSnapshotResponse
|
||||
|
||||
class ListSnapshotsResponse(google.protobuf.message.Message):
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
SNAPSHOT_DESCRIPTIONS_FIELD_NUMBER: builtins.int
|
||||
TIME_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def snapshot_descriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SnapshotDescription]: ...
|
||||
time: builtins.float
|
||||
"""Time spent to process"""
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
snapshot_descriptions: collections.abc.Iterable[global___SnapshotDescription] | None = ...,
|
||||
time: builtins.float = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["snapshot_descriptions", b"snapshot_descriptions", "time", b"time"]) -> None: ...
|
||||
|
||||
global___ListSnapshotsResponse = ListSnapshotsResponse
|
||||
|
||||
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_extensions.Literal["time", b"time"]) -> None: ...
|
||||
|
||||
global___DeleteSnapshotResponse = DeleteSnapshotResponse
|
||||
+243
@@ -0,0 +1,243 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from . import snapshots_service_pb2 as snapshots__service__pb2
|
||||
|
||||
|
||||
class SnapshotsStub(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Create = channel.unary_unary(
|
||||
'/qdrant.Snapshots/Create',
|
||||
request_serializer=snapshots__service__pb2.CreateSnapshotRequest.SerializeToString,
|
||||
response_deserializer=snapshots__service__pb2.CreateSnapshotResponse.FromString,
|
||||
)
|
||||
self.List = channel.unary_unary(
|
||||
'/qdrant.Snapshots/List',
|
||||
request_serializer=snapshots__service__pb2.ListSnapshotsRequest.SerializeToString,
|
||||
response_deserializer=snapshots__service__pb2.ListSnapshotsResponse.FromString,
|
||||
)
|
||||
self.Delete = channel.unary_unary(
|
||||
'/qdrant.Snapshots/Delete',
|
||||
request_serializer=snapshots__service__pb2.DeleteSnapshotRequest.SerializeToString,
|
||||
response_deserializer=snapshots__service__pb2.DeleteSnapshotResponse.FromString,
|
||||
)
|
||||
self.CreateFull = channel.unary_unary(
|
||||
'/qdrant.Snapshots/CreateFull',
|
||||
request_serializer=snapshots__service__pb2.CreateFullSnapshotRequest.SerializeToString,
|
||||
response_deserializer=snapshots__service__pb2.CreateSnapshotResponse.FromString,
|
||||
)
|
||||
self.ListFull = channel.unary_unary(
|
||||
'/qdrant.Snapshots/ListFull',
|
||||
request_serializer=snapshots__service__pb2.ListFullSnapshotsRequest.SerializeToString,
|
||||
response_deserializer=snapshots__service__pb2.ListSnapshotsResponse.FromString,
|
||||
)
|
||||
self.DeleteFull = channel.unary_unary(
|
||||
'/qdrant.Snapshots/DeleteFull',
|
||||
request_serializer=snapshots__service__pb2.DeleteFullSnapshotRequest.SerializeToString,
|
||||
response_deserializer=snapshots__service__pb2.DeleteSnapshotResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class SnapshotsServicer(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def Create(self, request, context):
|
||||
"""
|
||||
Create collection snapshot
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def List(self, request, context):
|
||||
"""
|
||||
List collection snapshots
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Delete(self, request, context):
|
||||
"""
|
||||
Delete collection snapshot
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CreateFull(self, request, context):
|
||||
"""
|
||||
Create full storage snapshot
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListFull(self, request, context):
|
||||
"""
|
||||
List full storage snapshots
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def DeleteFull(self, request, context):
|
||||
"""
|
||||
Delete full storage snapshot
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_SnapshotsServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Create': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Create,
|
||||
request_deserializer=snapshots__service__pb2.CreateSnapshotRequest.FromString,
|
||||
response_serializer=snapshots__service__pb2.CreateSnapshotResponse.SerializeToString,
|
||||
),
|
||||
'List': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.List,
|
||||
request_deserializer=snapshots__service__pb2.ListSnapshotsRequest.FromString,
|
||||
response_serializer=snapshots__service__pb2.ListSnapshotsResponse.SerializeToString,
|
||||
),
|
||||
'Delete': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Delete,
|
||||
request_deserializer=snapshots__service__pb2.DeleteSnapshotRequest.FromString,
|
||||
response_serializer=snapshots__service__pb2.DeleteSnapshotResponse.SerializeToString,
|
||||
),
|
||||
'CreateFull': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.CreateFull,
|
||||
request_deserializer=snapshots__service__pb2.CreateFullSnapshotRequest.FromString,
|
||||
response_serializer=snapshots__service__pb2.CreateSnapshotResponse.SerializeToString,
|
||||
),
|
||||
'ListFull': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListFull,
|
||||
request_deserializer=snapshots__service__pb2.ListFullSnapshotsRequest.FromString,
|
||||
response_serializer=snapshots__service__pb2.ListSnapshotsResponse.SerializeToString,
|
||||
),
|
||||
'DeleteFull': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.DeleteFull,
|
||||
request_deserializer=snapshots__service__pb2.DeleteFullSnapshotRequest.FromString,
|
||||
response_serializer=snapshots__service__pb2.DeleteSnapshotResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'qdrant.Snapshots', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class Snapshots(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
@staticmethod
|
||||
def Create(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Snapshots/Create',
|
||||
snapshots__service__pb2.CreateSnapshotRequest.SerializeToString,
|
||||
snapshots__service__pb2.CreateSnapshotResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def List(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Snapshots/List',
|
||||
snapshots__service__pb2.ListSnapshotsRequest.SerializeToString,
|
||||
snapshots__service__pb2.ListSnapshotsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Delete(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Snapshots/Delete',
|
||||
snapshots__service__pb2.DeleteSnapshotRequest.SerializeToString,
|
||||
snapshots__service__pb2.DeleteSnapshotResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def CreateFull(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Snapshots/CreateFull',
|
||||
snapshots__service__pb2.CreateFullSnapshotRequest.SerializeToString,
|
||||
snapshots__service__pb2.CreateSnapshotResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListFull(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Snapshots/ListFull',
|
||||
snapshots__service__pb2.ListFullSnapshotsRequest.SerializeToString,
|
||||
snapshots__service__pb2.ListSnapshotsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def DeleteFull(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/qdrant.Snapshots/DeleteFull',
|
||||
snapshots__service__pb2.DeleteFullSnapshotRequest.SerializeToString,
|
||||
snapshots__service__pb2.DeleteSnapshotResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
Reference in New Issue
Block a user