diff --git a/internal/gen/store/v1/store.pb.go b/internal/gen/store/v1/store.pb.go index b329fd1..4a18d69 100644 --- a/internal/gen/store/v1/store.pb.go +++ b/internal/gen/store/v1/store.pb.go @@ -8,7 +8,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 +// protoc-gen-go v1.36.5 // protoc (unknown) // source: store/v1/store.proto @@ -21,6 +21,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -31,13 +32,12 @@ const ( ) type GetFITSAsGenericHandlerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` + Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` unknownFields protoimpl.UnknownFields - - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` - Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetFITSAsGenericHandlerRequest) Reset() { @@ -92,13 +92,12 @@ func (x *GetFITSAsGenericHandlerRequest) GetLocation() string { } type GetFITSAsGenericHandlerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DownloadUrl string `protobuf:"bytes,1,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"` + Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` unknownFields protoimpl.UnknownFields - - DownloadUrl string `protobuf:"bytes,1,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"` - Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` - Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetFITSAsGenericHandlerResponse) Reset() { @@ -154,7 +153,7 @@ func (x *GetFITSAsGenericHandlerResponse) GetWidth() int32 { var File_store_v1_store_proto protoreflect.FileDescriptor -var file_store_v1_store_proto_rawDesc = []byte{ +var file_store_v1_store_proto_rawDesc = string([]byte{ 0x0a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x73, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x46, 0x49, 0x54, 0x53, 0x41, 0x73, 0x47, 0x65, 0x6e, @@ -186,26 +185,26 @@ var file_store_v1_store_proto_rawDesc = []byte{ 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x49, 0x54, 0x53, 0x41, 0x73, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x80, 0x01, 0x0a, 0x0c, 0x63, - 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x53, 0x74, 0x6f, - 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x62, 0x69, 0x72, 0x70, 0x63, - 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x08, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x14, 0x53, 0x74, 0x6f, - 0x72, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x09, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x7f, 0x0a, 0x0c, 0x63, 0x6f, + 0x6d, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x53, 0x74, 0x6f, 0x72, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x6e, 0x6f, 0x76, 0x61, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, + 0x58, 0x58, 0xaa, 0x02, 0x08, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x08, + 0x53, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x14, 0x53, 0x74, 0x6f, 0x72, 0x65, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x09, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +}) var ( file_store_v1_store_proto_rawDescOnce sync.Once - file_store_v1_store_proto_rawDescData = file_store_v1_store_proto_rawDesc + file_store_v1_store_proto_rawDescData []byte ) func file_store_v1_store_proto_rawDescGZIP() []byte { file_store_v1_store_proto_rawDescOnce.Do(func() { - file_store_v1_store_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_v1_store_proto_rawDescData) + file_store_v1_store_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_v1_store_proto_rawDesc), len(file_store_v1_store_proto_rawDesc))) }) return file_store_v1_store_proto_rawDescData } @@ -236,7 +235,7 @@ func file_store_v1_store_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_store_v1_store_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_v1_store_proto_rawDesc), len(file_store_v1_store_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -247,7 +246,6 @@ func file_store_v1_store_proto_init() { MessageInfos: file_store_v1_store_proto_msgTypes, }.Build() File_store_v1_store_proto = out.File - file_store_v1_store_proto_rawDesc = nil file_store_v1_store_proto_goTypes = nil file_store_v1_store_proto_depIdxs = nil } diff --git a/internal/gen/store/v1/storev1connect/store.connect.go b/internal/gen/store/v1/storev1connect/store.connect.go index 4f4c7cd..9745700 100644 --- a/internal/gen/store/v1/storev1connect/store.connect.go +++ b/internal/gen/store/v1/storev1connect/store.connect.go @@ -13,11 +13,11 @@ package storev1connect import ( - v1 "nova/internal/gen/store/v1" connect "connectrpc.com/connect" context "context" errors "errors" http "net/http" + v1 "nova/internal/gen/store/v1" strings "strings" ) @@ -49,13 +49,6 @@ const ( StorageServiceGetFITSAsTIFFHandlerProcedure = "/store.v1.StorageService/GetFITSAsTIFFHandler" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - storageServiceServiceDescriptor = v1.File_store_v1_store_proto.Services().ByName("StorageService") - storageServiceGetFITSAsJPEGHandlerMethodDescriptor = storageServiceServiceDescriptor.Methods().ByName("GetFITSAsJPEGHandler") - storageServiceGetFITSAsTIFFHandlerMethodDescriptor = storageServiceServiceDescriptor.Methods().ByName("GetFITSAsTIFFHandler") -) - // StorageServiceClient is a client for the store.v1.StorageService service. type StorageServiceClient interface { GetFITSAsJPEGHandler(context.Context, *connect.Request[v1.GetFITSAsGenericHandlerRequest]) (*connect.Response[v1.GetFITSAsGenericHandlerResponse], error) @@ -71,17 +64,18 @@ type StorageServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewStorageServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) StorageServiceClient { baseURL = strings.TrimRight(baseURL, "/") + storageServiceMethods := v1.File_store_v1_store_proto.Services().ByName("StorageService").Methods() return &storageServiceClient{ getFITSAsJPEGHandler: connect.NewClient[v1.GetFITSAsGenericHandlerRequest, v1.GetFITSAsGenericHandlerResponse]( httpClient, baseURL+StorageServiceGetFITSAsJPEGHandlerProcedure, - connect.WithSchema(storageServiceGetFITSAsJPEGHandlerMethodDescriptor), + connect.WithSchema(storageServiceMethods.ByName("GetFITSAsJPEGHandler")), connect.WithClientOptions(opts...), ), getFITSAsTIFFHandler: connect.NewClient[v1.GetFITSAsGenericHandlerRequest, v1.GetFITSAsGenericHandlerResponse]( httpClient, baseURL+StorageServiceGetFITSAsTIFFHandlerProcedure, - connect.WithSchema(storageServiceGetFITSAsTIFFHandlerMethodDescriptor), + connect.WithSchema(storageServiceMethods.ByName("GetFITSAsTIFFHandler")), connect.WithClientOptions(opts...), ), } @@ -115,16 +109,17 @@ type StorageServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewStorageServiceHandler(svc StorageServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + storageServiceMethods := v1.File_store_v1_store_proto.Services().ByName("StorageService").Methods() storageServiceGetFITSAsJPEGHandlerHandler := connect.NewUnaryHandler( StorageServiceGetFITSAsJPEGHandlerProcedure, svc.GetFITSAsJPEGHandler, - connect.WithSchema(storageServiceGetFITSAsJPEGHandlerMethodDescriptor), + connect.WithSchema(storageServiceMethods.ByName("GetFITSAsJPEGHandler")), connect.WithHandlerOptions(opts...), ) storageServiceGetFITSAsTIFFHandlerHandler := connect.NewUnaryHandler( StorageServiceGetFITSAsTIFFHandlerProcedure, svc.GetFITSAsTIFFHandler, - connect.WithSchema(storageServiceGetFITSAsTIFFHandlerMethodDescriptor), + connect.WithSchema(storageServiceMethods.ByName("GetFITSAsTIFFHandler")), connect.WithHandlerOptions(opts...), ) return "/store.v1.StorageService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {