@@ -26,10 +26,10 @@ def __init__(self, channel):
2626 request_serializer = datasets_dot_v1_dot_collections__pb2 .GetCollectionByNameRequest .SerializeToString ,
2727 response_deserializer = datasets_dot_v1_dot_core__pb2 .CollectionInfo .FromString ,
2828 _registered_method = True )
29- self .DeleteCollectionByName = channel .unary_unary (
30- '/datasets.v1.CollectionService/DeleteCollectionByName ' ,
31- request_serializer = datasets_dot_v1_dot_collections__pb2 .DeleteCollectionByNameRequest .SerializeToString ,
32- response_deserializer = datasets_dot_v1_dot_collections__pb2 .DeleteCollectionByNameResponse .FromString ,
29+ self .DeleteCollection = channel .unary_unary (
30+ '/datasets.v1.CollectionService/DeleteCollection ' ,
31+ request_serializer = datasets_dot_v1_dot_collections__pb2 .DeleteCollectionRequest .SerializeToString ,
32+ response_deserializer = datasets_dot_v1_dot_collections__pb2 .DeleteCollectionResponse .FromString ,
3333 _registered_method = True )
3434 self .ListCollections = channel .unary_unary (
3535 '/datasets.v1.CollectionService/ListCollections' ,
@@ -54,7 +54,7 @@ def GetCollectionByName(self, request, context):
5454 context .set_details ('Method not implemented!' )
5555 raise NotImplementedError ('Method not implemented!' )
5656
57- def DeleteCollectionByName (self , request , context ):
57+ def DeleteCollection (self , request , context ):
5858 """Missing associated documentation comment in .proto file."""
5959 context .set_code (grpc .StatusCode .UNIMPLEMENTED )
6060 context .set_details ('Method not implemented!' )
@@ -79,10 +79,10 @@ def add_CollectionServiceServicer_to_server(servicer, server):
7979 request_deserializer = datasets_dot_v1_dot_collections__pb2 .GetCollectionByNameRequest .FromString ,
8080 response_serializer = datasets_dot_v1_dot_core__pb2 .CollectionInfo .SerializeToString ,
8181 ),
82- 'DeleteCollectionByName ' : grpc .unary_unary_rpc_method_handler (
83- servicer .DeleteCollectionByName ,
84- request_deserializer = datasets_dot_v1_dot_collections__pb2 .DeleteCollectionByNameRequest .FromString ,
85- response_serializer = datasets_dot_v1_dot_collections__pb2 .DeleteCollectionByNameResponse .SerializeToString ,
82+ 'DeleteCollection ' : grpc .unary_unary_rpc_method_handler (
83+ servicer .DeleteCollection ,
84+ request_deserializer = datasets_dot_v1_dot_collections__pb2 .DeleteCollectionRequest .FromString ,
85+ response_serializer = datasets_dot_v1_dot_collections__pb2 .DeleteCollectionResponse .SerializeToString ,
8686 ),
8787 'ListCollections' : grpc .unary_unary_rpc_method_handler (
8888 servicer .ListCollections ,
@@ -156,7 +156,7 @@ def GetCollectionByName(request,
156156 _registered_method = True )
157157
158158 @staticmethod
159- def DeleteCollectionByName (request ,
159+ def DeleteCollection (request ,
160160 target ,
161161 options = (),
162162 channel_credentials = None ,
@@ -169,9 +169,9 @@ def DeleteCollectionByName(request,
169169 return grpc .experimental .unary_unary (
170170 request ,
171171 target ,
172- '/datasets.v1.CollectionService/DeleteCollectionByName ' ,
173- datasets_dot_v1_dot_collections__pb2 .DeleteCollectionByNameRequest .SerializeToString ,
174- datasets_dot_v1_dot_collections__pb2 .DeleteCollectionByNameResponse .FromString ,
172+ '/datasets.v1.CollectionService/DeleteCollection ' ,
173+ datasets_dot_v1_dot_collections__pb2 .DeleteCollectionRequest .SerializeToString ,
174+ datasets_dot_v1_dot_collections__pb2 .DeleteCollectionResponse .FromString ,
175175 options ,
176176 channel_credentials ,
177177 insecure ,
0 commit comments