github.com/weaviate/weaviate@v1.24.6/adapters/handlers/grpc/v0/service.go (about) 1 // _ _ 2 // __ _____ __ ___ ___ __ _| |_ ___ 3 // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ 4 // \ V V / __/ (_| |\ V /| | (_| | || __/ 5 // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| 6 // 7 // Copyright © 2016 - 2024 Weaviate B.V. All rights reserved. 8 // 9 // CONTACT: hello@weaviate.io 10 // 11 12 package weaviategrpc 13 14 import ( 15 "context" 16 17 "github.com/pkg/errors" 18 19 pb "github.com/weaviate/weaviate/grpc/generated/protocol/v0" 20 ) 21 22 type Service struct { 23 pb.UnimplementedWeaviateServer 24 } 25 26 func NewService() *Service { 27 return &Service{} 28 } 29 30 func (s *Service) BatchObjects(ctx context.Context, req *pb.BatchObjectsRequest) (*pb.BatchObjectsReply, error) { 31 return nil, errors.New( 32 "The V0 gRPC API is deprecated and will be removed in the next major release. Please use the V1 API instead by upgrading your client.", 33 ) 34 } 35 36 func (s *Service) Search(ctx context.Context, req *pb.SearchRequest) (*pb.SearchReply, error) { 37 return nil, errors.New( 38 "The V0 gRPC API is deprecated and will be removed in the next major release. Please use the V1 API instead by upgrading your client.", 39 ) 40 }