From 297aadbb3dd751715ffa5f65f9f71c2ec9ace02f Mon Sep 17 00:00:00 2001 From: Mike Fridman Date: Thu, 6 Mar 2025 16:19:05 -0500 Subject: [PATCH] Remove RecommendationService proto definitions --- .../recommendation.connect.go | 199 ----- .../registry/v1alpha1/recommendation.pb.go | 706 ------------------ .../registry/v1alpha1/recommendation.proto | 70 -- 3 files changed, 975 deletions(-) delete mode 100644 private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/recommendation.connect.go delete mode 100644 private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation.pb.go delete mode 100644 proto/buf/alpha/registry/v1alpha1/recommendation.proto diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/recommendation.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/recommendation.connect.go deleted file mode 100644 index c994cc3cc1..0000000000 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/recommendation.connect.go +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright 2020-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: buf/alpha/registry/v1alpha1/recommendation.proto - -package registryv1alpha1connect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - v1alpha1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/registry/v1alpha1" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // RecommendationServiceName is the fully-qualified name of the RecommendationService service. - RecommendationServiceName = "buf.alpha.registry.v1alpha1.RecommendationService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // RecommendationServiceRecommendedRepositoriesProcedure is the fully-qualified name of the - // RecommendationService's RecommendedRepositories RPC. - RecommendationServiceRecommendedRepositoriesProcedure = "/buf.alpha.registry.v1alpha1.RecommendationService/RecommendedRepositories" - // RecommendationServiceListRecommendedResourcesProcedure is the fully-qualified name of the - // RecommendationService's ListRecommendedResources RPC. - RecommendationServiceListRecommendedResourcesProcedure = "/buf.alpha.registry.v1alpha1.RecommendationService/ListRecommendedResources" - // RecommendationServiceSetRecommendedResourcesProcedure is the fully-qualified name of the - // RecommendationService's SetRecommendedResources RPC. - RecommendationServiceSetRecommendedResourcesProcedure = "/buf.alpha.registry.v1alpha1.RecommendationService/SetRecommendedResources" -) - -// RecommendationServiceClient is a client for the buf.alpha.registry.v1alpha1.RecommendationService -// service. -type RecommendationServiceClient interface { - // RecommendedRepositories returns a list of recommended repositories. - RecommendedRepositories(context.Context, *connect.Request[v1alpha1.RecommendedRepositoriesRequest]) (*connect.Response[v1alpha1.RecommendedRepositoriesResponse], error) - // ListRecommendedResources returns a list of recommended resources. - ListRecommendedResources(context.Context, *connect.Request[v1alpha1.ListRecommendedResourcesRequest]) (*connect.Response[v1alpha1.ListRecommendedResourcesResponse], error) - // SetRecommendedResources set the list of recommended resources in the server. - SetRecommendedResources(context.Context, *connect.Request[v1alpha1.SetRecommendedResourcesRequest]) (*connect.Response[v1alpha1.SetRecommendedResourcesResponse], error) -} - -// NewRecommendationServiceClient constructs a client for the -// buf.alpha.registry.v1alpha1.RecommendationService service. By default, it uses the Connect -// protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed -// requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or -// connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewRecommendationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RecommendationServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - recommendationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_recommendation_proto.Services().ByName("RecommendationService").Methods() - return &recommendationServiceClient{ - recommendedRepositories: connect.NewClient[v1alpha1.RecommendedRepositoriesRequest, v1alpha1.RecommendedRepositoriesResponse]( - httpClient, - baseURL+RecommendationServiceRecommendedRepositoriesProcedure, - connect.WithSchema(recommendationServiceMethods.ByName("RecommendedRepositories")), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithClientOptions(opts...), - ), - listRecommendedResources: connect.NewClient[v1alpha1.ListRecommendedResourcesRequest, v1alpha1.ListRecommendedResourcesResponse]( - httpClient, - baseURL+RecommendationServiceListRecommendedResourcesProcedure, - connect.WithSchema(recommendationServiceMethods.ByName("ListRecommendedResources")), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithClientOptions(opts...), - ), - setRecommendedResources: connect.NewClient[v1alpha1.SetRecommendedResourcesRequest, v1alpha1.SetRecommendedResourcesResponse]( - httpClient, - baseURL+RecommendationServiceSetRecommendedResourcesProcedure, - connect.WithSchema(recommendationServiceMethods.ByName("SetRecommendedResources")), - connect.WithIdempotency(connect.IdempotencyIdempotent), - connect.WithClientOptions(opts...), - ), - } -} - -// recommendationServiceClient implements RecommendationServiceClient. -type recommendationServiceClient struct { - recommendedRepositories *connect.Client[v1alpha1.RecommendedRepositoriesRequest, v1alpha1.RecommendedRepositoriesResponse] - listRecommendedResources *connect.Client[v1alpha1.ListRecommendedResourcesRequest, v1alpha1.ListRecommendedResourcesResponse] - setRecommendedResources *connect.Client[v1alpha1.SetRecommendedResourcesRequest, v1alpha1.SetRecommendedResourcesResponse] -} - -// RecommendedRepositories calls -// buf.alpha.registry.v1alpha1.RecommendationService.RecommendedRepositories. -func (c *recommendationServiceClient) RecommendedRepositories(ctx context.Context, req *connect.Request[v1alpha1.RecommendedRepositoriesRequest]) (*connect.Response[v1alpha1.RecommendedRepositoriesResponse], error) { - return c.recommendedRepositories.CallUnary(ctx, req) -} - -// ListRecommendedResources calls -// buf.alpha.registry.v1alpha1.RecommendationService.ListRecommendedResources. -func (c *recommendationServiceClient) ListRecommendedResources(ctx context.Context, req *connect.Request[v1alpha1.ListRecommendedResourcesRequest]) (*connect.Response[v1alpha1.ListRecommendedResourcesResponse], error) { - return c.listRecommendedResources.CallUnary(ctx, req) -} - -// SetRecommendedResources calls -// buf.alpha.registry.v1alpha1.RecommendationService.SetRecommendedResources. -func (c *recommendationServiceClient) SetRecommendedResources(ctx context.Context, req *connect.Request[v1alpha1.SetRecommendedResourcesRequest]) (*connect.Response[v1alpha1.SetRecommendedResourcesResponse], error) { - return c.setRecommendedResources.CallUnary(ctx, req) -} - -// RecommendationServiceHandler is an implementation of the -// buf.alpha.registry.v1alpha1.RecommendationService service. -type RecommendationServiceHandler interface { - // RecommendedRepositories returns a list of recommended repositories. - RecommendedRepositories(context.Context, *connect.Request[v1alpha1.RecommendedRepositoriesRequest]) (*connect.Response[v1alpha1.RecommendedRepositoriesResponse], error) - // ListRecommendedResources returns a list of recommended resources. - ListRecommendedResources(context.Context, *connect.Request[v1alpha1.ListRecommendedResourcesRequest]) (*connect.Response[v1alpha1.ListRecommendedResourcesResponse], error) - // SetRecommendedResources set the list of recommended resources in the server. - SetRecommendedResources(context.Context, *connect.Request[v1alpha1.SetRecommendedResourcesRequest]) (*connect.Response[v1alpha1.SetRecommendedResourcesResponse], error) -} - -// NewRecommendationServiceHandler builds an HTTP handler from the service implementation. It -// returns the path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewRecommendationServiceHandler(svc RecommendationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - recommendationServiceMethods := v1alpha1.File_buf_alpha_registry_v1alpha1_recommendation_proto.Services().ByName("RecommendationService").Methods() - recommendationServiceRecommendedRepositoriesHandler := connect.NewUnaryHandler( - RecommendationServiceRecommendedRepositoriesProcedure, - svc.RecommendedRepositories, - connect.WithSchema(recommendationServiceMethods.ByName("RecommendedRepositories")), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithHandlerOptions(opts...), - ) - recommendationServiceListRecommendedResourcesHandler := connect.NewUnaryHandler( - RecommendationServiceListRecommendedResourcesProcedure, - svc.ListRecommendedResources, - connect.WithSchema(recommendationServiceMethods.ByName("ListRecommendedResources")), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithHandlerOptions(opts...), - ) - recommendationServiceSetRecommendedResourcesHandler := connect.NewUnaryHandler( - RecommendationServiceSetRecommendedResourcesProcedure, - svc.SetRecommendedResources, - connect.WithSchema(recommendationServiceMethods.ByName("SetRecommendedResources")), - connect.WithIdempotency(connect.IdempotencyIdempotent), - connect.WithHandlerOptions(opts...), - ) - return "/buf.alpha.registry.v1alpha1.RecommendationService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case RecommendationServiceRecommendedRepositoriesProcedure: - recommendationServiceRecommendedRepositoriesHandler.ServeHTTP(w, r) - case RecommendationServiceListRecommendedResourcesProcedure: - recommendationServiceListRecommendedResourcesHandler.ServeHTTP(w, r) - case RecommendationServiceSetRecommendedResourcesProcedure: - recommendationServiceSetRecommendedResourcesHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedRecommendationServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedRecommendationServiceHandler struct{} - -func (UnimplementedRecommendationServiceHandler) RecommendedRepositories(context.Context, *connect.Request[v1alpha1.RecommendedRepositoriesRequest]) (*connect.Response[v1alpha1.RecommendedRepositoriesResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.RecommendationService.RecommendedRepositories is not implemented")) -} - -func (UnimplementedRecommendationServiceHandler) ListRecommendedResources(context.Context, *connect.Request[v1alpha1.ListRecommendedResourcesRequest]) (*connect.Response[v1alpha1.ListRecommendedResourcesResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.RecommendationService.ListRecommendedResources is not implemented")) -} - -func (UnimplementedRecommendationServiceHandler) SetRecommendedResources(context.Context, *connect.Request[v1alpha1.SetRecommendedResourcesRequest]) (*connect.Response[v1alpha1.SetRecommendedResourcesResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.RecommendationService.SetRecommendedResources is not implemented")) -} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation.pb.go deleted file mode 100644 index 09ec12cfb8..0000000000 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation.pb.go +++ /dev/null @@ -1,706 +0,0 @@ -// Copyright 2020-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.5 -// protoc (unknown) -// source: buf/alpha/registry/v1alpha1/recommendation.proto - -package registryv1alpha1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// RecommendedRepository is the information about a repository needed to link to -// its owner page. -type RecommendedRepository struct { - state protoimpl.MessageState `protogen:"opaque.v1"` - xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3"` - xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3"` - xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3"` - xxx_hidden_Description string `protobuf:"bytes,4,opt,name=description,proto3"` - xxx_hidden_RepositoryId string `protobuf:"bytes,5,opt,name=repository_id,json=repositoryId,proto3"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RecommendedRepository) Reset() { - *x = RecommendedRepository{} - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RecommendedRepository) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RecommendedRepository) ProtoMessage() {} - -func (x *RecommendedRepository) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *RecommendedRepository) GetOwner() string { - if x != nil { - return x.xxx_hidden_Owner - } - return "" -} - -func (x *RecommendedRepository) GetName() string { - if x != nil { - return x.xxx_hidden_Name - } - return "" -} - -func (x *RecommendedRepository) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.xxx_hidden_CreateTime - } - return nil -} - -func (x *RecommendedRepository) GetDescription() string { - if x != nil { - return x.xxx_hidden_Description - } - return "" -} - -func (x *RecommendedRepository) GetRepositoryId() string { - if x != nil { - return x.xxx_hidden_RepositoryId - } - return "" -} - -func (x *RecommendedRepository) SetOwner(v string) { - x.xxx_hidden_Owner = v -} - -func (x *RecommendedRepository) SetName(v string) { - x.xxx_hidden_Name = v -} - -func (x *RecommendedRepository) SetCreateTime(v *timestamppb.Timestamp) { - x.xxx_hidden_CreateTime = v -} - -func (x *RecommendedRepository) SetDescription(v string) { - x.xxx_hidden_Description = v -} - -func (x *RecommendedRepository) SetRepositoryId(v string) { - x.xxx_hidden_RepositoryId = v -} - -func (x *RecommendedRepository) HasCreateTime() bool { - if x == nil { - return false - } - return x.xxx_hidden_CreateTime != nil -} - -func (x *RecommendedRepository) ClearCreateTime() { - x.xxx_hidden_CreateTime = nil -} - -type RecommendedRepository_builder struct { - _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. - - Owner string - Name string - CreateTime *timestamppb.Timestamp - Description string - RepositoryId string -} - -func (b0 RecommendedRepository_builder) Build() *RecommendedRepository { - m0 := &RecommendedRepository{} - b, x := &b0, m0 - _, _ = b, x - x.xxx_hidden_Owner = b.Owner - x.xxx_hidden_Name = b.Name - x.xxx_hidden_CreateTime = b.CreateTime - x.xxx_hidden_Description = b.Description - x.xxx_hidden_RepositoryId = b.RepositoryId - return m0 -} - -// SetRecommendedResource is the information needed to configure a resource recommendation -type SetRecommendedResource struct { - state protoimpl.MessageState `protogen:"opaque.v1"` - xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3"` - xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetRecommendedResource) Reset() { - *x = SetRecommendedResource{} - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetRecommendedResource) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetRecommendedResource) ProtoMessage() {} - -func (x *SetRecommendedResource) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *SetRecommendedResource) GetOwner() string { - if x != nil { - return x.xxx_hidden_Owner - } - return "" -} - -func (x *SetRecommendedResource) GetName() string { - if x != nil { - return x.xxx_hidden_Name - } - return "" -} - -func (x *SetRecommendedResource) SetOwner(v string) { - x.xxx_hidden_Owner = v -} - -func (x *SetRecommendedResource) SetName(v string) { - x.xxx_hidden_Name = v -} - -type SetRecommendedResource_builder struct { - _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. - - Owner string - Name string -} - -func (b0 SetRecommendedResource_builder) Build() *SetRecommendedResource { - m0 := &SetRecommendedResource{} - b, x := &b0, m0 - _, _ = b, x - x.xxx_hidden_Owner = b.Owner - x.xxx_hidden_Name = b.Name - return m0 -} - -type RecommendedRepositoriesRequest struct { - state protoimpl.MessageState `protogen:"opaque.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RecommendedRepositoriesRequest) Reset() { - *x = RecommendedRepositoriesRequest{} - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RecommendedRepositoriesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RecommendedRepositoriesRequest) ProtoMessage() {} - -func (x *RecommendedRepositoriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -type RecommendedRepositoriesRequest_builder struct { - _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. - -} - -func (b0 RecommendedRepositoriesRequest_builder) Build() *RecommendedRepositoriesRequest { - m0 := &RecommendedRepositoriesRequest{} - b, x := &b0, m0 - _, _ = b, x - return m0 -} - -type RecommendedRepositoriesResponse struct { - state protoimpl.MessageState `protogen:"opaque.v1"` - xxx_hidden_Repositories *[]*RecommendedRepository `protobuf:"bytes,1,rep,name=repositories,proto3"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RecommendedRepositoriesResponse) Reset() { - *x = RecommendedRepositoriesResponse{} - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RecommendedRepositoriesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RecommendedRepositoriesResponse) ProtoMessage() {} - -func (x *RecommendedRepositoriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *RecommendedRepositoriesResponse) GetRepositories() []*RecommendedRepository { - if x != nil { - if x.xxx_hidden_Repositories != nil { - return *x.xxx_hidden_Repositories - } - } - return nil -} - -func (x *RecommendedRepositoriesResponse) SetRepositories(v []*RecommendedRepository) { - x.xxx_hidden_Repositories = &v -} - -type RecommendedRepositoriesResponse_builder struct { - _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. - - Repositories []*RecommendedRepository -} - -func (b0 RecommendedRepositoriesResponse_builder) Build() *RecommendedRepositoriesResponse { - m0 := &RecommendedRepositoriesResponse{} - b, x := &b0, m0 - _, _ = b, x - x.xxx_hidden_Repositories = &b.Repositories - return m0 -} - -type ListRecommendedResourcesRequest struct { - state protoimpl.MessageState `protogen:"opaque.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ListRecommendedResourcesRequest) Reset() { - *x = ListRecommendedResourcesRequest{} - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ListRecommendedResourcesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRecommendedResourcesRequest) ProtoMessage() {} - -func (x *ListRecommendedResourcesRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -type ListRecommendedResourcesRequest_builder struct { - _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. - -} - -func (b0 ListRecommendedResourcesRequest_builder) Build() *ListRecommendedResourcesRequest { - m0 := &ListRecommendedResourcesRequest{} - b, x := &b0, m0 - _, _ = b, x - return m0 -} - -type ListRecommendedResourcesResponse struct { - state protoimpl.MessageState `protogen:"opaque.v1"` - xxx_hidden_Resources *[]*Resource `protobuf:"bytes,1,rep,name=resources,proto3"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ListRecommendedResourcesResponse) Reset() { - *x = ListRecommendedResourcesResponse{} - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ListRecommendedResourcesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRecommendedResourcesResponse) ProtoMessage() {} - -func (x *ListRecommendedResourcesResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *ListRecommendedResourcesResponse) GetResources() []*Resource { - if x != nil { - if x.xxx_hidden_Resources != nil { - return *x.xxx_hidden_Resources - } - } - return nil -} - -func (x *ListRecommendedResourcesResponse) SetResources(v []*Resource) { - x.xxx_hidden_Resources = &v -} - -type ListRecommendedResourcesResponse_builder struct { - _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. - - Resources []*Resource -} - -func (b0 ListRecommendedResourcesResponse_builder) Build() *ListRecommendedResourcesResponse { - m0 := &ListRecommendedResourcesResponse{} - b, x := &b0, m0 - _, _ = b, x - x.xxx_hidden_Resources = &b.Resources - return m0 -} - -type SetRecommendedResourcesRequest struct { - state protoimpl.MessageState `protogen:"opaque.v1"` - xxx_hidden_Resources *[]*SetRecommendedResource `protobuf:"bytes,1,rep,name=resources,proto3"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetRecommendedResourcesRequest) Reset() { - *x = SetRecommendedResourcesRequest{} - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetRecommendedResourcesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetRecommendedResourcesRequest) ProtoMessage() {} - -func (x *SetRecommendedResourcesRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *SetRecommendedResourcesRequest) GetResources() []*SetRecommendedResource { - if x != nil { - if x.xxx_hidden_Resources != nil { - return *x.xxx_hidden_Resources - } - } - return nil -} - -func (x *SetRecommendedResourcesRequest) SetResources(v []*SetRecommendedResource) { - x.xxx_hidden_Resources = &v -} - -type SetRecommendedResourcesRequest_builder struct { - _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. - - Resources []*SetRecommendedResource -} - -func (b0 SetRecommendedResourcesRequest_builder) Build() *SetRecommendedResourcesRequest { - m0 := &SetRecommendedResourcesRequest{} - b, x := &b0, m0 - _, _ = b, x - x.xxx_hidden_Resources = &b.Resources - return m0 -} - -type SetRecommendedResourcesResponse struct { - state protoimpl.MessageState `protogen:"opaque.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetRecommendedResourcesResponse) Reset() { - *x = SetRecommendedResourcesResponse{} - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetRecommendedResourcesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetRecommendedResourcesResponse) ProtoMessage() {} - -func (x *SetRecommendedResourcesResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -type SetRecommendedResourcesResponse_builder struct { - _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. - -} - -func (b0 SetRecommendedResourcesResponse_builder) Build() *SetRecommendedResourcesResponse { - m0 := &SetRecommendedResourcesResponse{} - b, x := &b0, m0 - _, _ = b, x - return m0 -} - -var File_buf_alpha_registry_v1alpha1_recommendation_proto protoreflect.FileDescriptor - -var file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDesc = string([]byte{ - 0x0a, 0x30, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, - 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, - 0x2a, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x01, 0x0a, - 0x15, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, - 0x72, 0x79, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x16, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, - 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x20, 0x0a, 0x1e, 0x52, 0x65, 0x63, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, - 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x79, 0x0a, 0x1f, 0x52, 0x65, - 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, - 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, - 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x21, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x67, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x09, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x22, 0x73, 0x0a, 0x1e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, - 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, - 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x21, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xee, 0x03, 0x0a, 0x15, 0x52, 0x65, - 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x99, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, - 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, - 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, - 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, - 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, - 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, - 0x9c, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, - 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x62, - 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x62, 0x75, 0x66, - 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x99, - 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, - 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x3b, 0x2e, 0x62, 0x75, 0x66, - 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, - 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x42, 0xa0, 0x02, 0x0a, 0x1f, 0x63, - 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x13, - 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, - 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, - 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, - 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, - 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_buf_alpha_registry_v1alpha1_recommendation_proto_goTypes = []any{ - (*RecommendedRepository)(nil), // 0: buf.alpha.registry.v1alpha1.RecommendedRepository - (*SetRecommendedResource)(nil), // 1: buf.alpha.registry.v1alpha1.SetRecommendedResource - (*RecommendedRepositoriesRequest)(nil), // 2: buf.alpha.registry.v1alpha1.RecommendedRepositoriesRequest - (*RecommendedRepositoriesResponse)(nil), // 3: buf.alpha.registry.v1alpha1.RecommendedRepositoriesResponse - (*ListRecommendedResourcesRequest)(nil), // 4: buf.alpha.registry.v1alpha1.ListRecommendedResourcesRequest - (*ListRecommendedResourcesResponse)(nil), // 5: buf.alpha.registry.v1alpha1.ListRecommendedResourcesResponse - (*SetRecommendedResourcesRequest)(nil), // 6: buf.alpha.registry.v1alpha1.SetRecommendedResourcesRequest - (*SetRecommendedResourcesResponse)(nil), // 7: buf.alpha.registry.v1alpha1.SetRecommendedResourcesResponse - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp - (*Resource)(nil), // 9: buf.alpha.registry.v1alpha1.Resource -} -var file_buf_alpha_registry_v1alpha1_recommendation_proto_depIdxs = []int32{ - 8, // 0: buf.alpha.registry.v1alpha1.RecommendedRepository.create_time:type_name -> google.protobuf.Timestamp - 0, // 1: buf.alpha.registry.v1alpha1.RecommendedRepositoriesResponse.repositories:type_name -> buf.alpha.registry.v1alpha1.RecommendedRepository - 9, // 2: buf.alpha.registry.v1alpha1.ListRecommendedResourcesResponse.resources:type_name -> buf.alpha.registry.v1alpha1.Resource - 1, // 3: buf.alpha.registry.v1alpha1.SetRecommendedResourcesRequest.resources:type_name -> buf.alpha.registry.v1alpha1.SetRecommendedResource - 2, // 4: buf.alpha.registry.v1alpha1.RecommendationService.RecommendedRepositories:input_type -> buf.alpha.registry.v1alpha1.RecommendedRepositoriesRequest - 4, // 5: buf.alpha.registry.v1alpha1.RecommendationService.ListRecommendedResources:input_type -> buf.alpha.registry.v1alpha1.ListRecommendedResourcesRequest - 6, // 6: buf.alpha.registry.v1alpha1.RecommendationService.SetRecommendedResources:input_type -> buf.alpha.registry.v1alpha1.SetRecommendedResourcesRequest - 3, // 7: buf.alpha.registry.v1alpha1.RecommendationService.RecommendedRepositories:output_type -> buf.alpha.registry.v1alpha1.RecommendedRepositoriesResponse - 5, // 8: buf.alpha.registry.v1alpha1.RecommendationService.ListRecommendedResources:output_type -> buf.alpha.registry.v1alpha1.ListRecommendedResourcesResponse - 7, // 9: buf.alpha.registry.v1alpha1.RecommendationService.SetRecommendedResources:output_type -> buf.alpha.registry.v1alpha1.SetRecommendedResourcesResponse - 7, // [7:10] is the sub-list for method output_type - 4, // [4:7] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_buf_alpha_registry_v1alpha1_recommendation_proto_init() } -func file_buf_alpha_registry_v1alpha1_recommendation_proto_init() { - if File_buf_alpha_registry_v1alpha1_recommendation_proto != nil { - return - } - file_buf_alpha_registry_v1alpha1_resource_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDesc), len(file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDesc)), - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_buf_alpha_registry_v1alpha1_recommendation_proto_goTypes, - DependencyIndexes: file_buf_alpha_registry_v1alpha1_recommendation_proto_depIdxs, - MessageInfos: file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes, - }.Build() - File_buf_alpha_registry_v1alpha1_recommendation_proto = out.File - file_buf_alpha_registry_v1alpha1_recommendation_proto_goTypes = nil - file_buf_alpha_registry_v1alpha1_recommendation_proto_depIdxs = nil -} diff --git a/proto/buf/alpha/registry/v1alpha1/recommendation.proto b/proto/buf/alpha/registry/v1alpha1/recommendation.proto deleted file mode 100644 index 9b9ad16c93..0000000000 --- a/proto/buf/alpha/registry/v1alpha1/recommendation.proto +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2020-2025 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package buf.alpha.registry.v1alpha1; - -import "buf/alpha/registry/v1alpha1/resource.proto"; -import "google/protobuf/timestamp.proto"; - -// RecommendedRepository is the information about a repository needed to link to -// its owner page. -message RecommendedRepository { - string owner = 1; - string name = 2; - google.protobuf.Timestamp create_time = 3; - string description = 4; - string repository_id = 5; -} - -// SetRecommendedResource is the information needed to configure a resource recommendation -message SetRecommendedResource { - string owner = 1; - string name = 2; -} - -// RecommendationService is the recommendation service. -service RecommendationService { - // RecommendedRepositories returns a list of recommended repositories. - rpc RecommendedRepositories(RecommendedRepositoriesRequest) returns (RecommendedRepositoriesResponse) { - option idempotency_level = NO_SIDE_EFFECTS; - } - // ListRecommendedResources returns a list of recommended resources. - rpc ListRecommendedResources(ListRecommendedResourcesRequest) returns (ListRecommendedResourcesResponse) { - option idempotency_level = NO_SIDE_EFFECTS; - } - // SetRecommendedResources set the list of recommended resources in the server. - rpc SetRecommendedResources(SetRecommendedResourcesRequest) returns (SetRecommendedResourcesResponse) { - option idempotency_level = IDEMPOTENT; - } -} - -message RecommendedRepositoriesRequest {} - -message RecommendedRepositoriesResponse { - repeated RecommendedRepository repositories = 1; -} - -message ListRecommendedResourcesRequest {} - -message ListRecommendedResourcesResponse { - repeated Resource resources = 1; -} - -message SetRecommendedResourcesRequest { - repeated SetRecommendedResource resources = 1; -} - -message SetRecommendedResourcesResponse {}