diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/labels.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/labels.connect.go deleted file mode 100644 index b6d6c052ed..0000000000 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/labels.connect.go +++ /dev/null @@ -1,225 +0,0 @@ -// Copyright 2020-2024 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/labels.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 ( - // LabelServiceName is the fully-qualified name of the LabelService service. - LabelServiceName = "buf.alpha.registry.v1alpha1.LabelService" -) - -// 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 ( - // LabelServiceCreateLabelProcedure is the fully-qualified name of the LabelService's CreateLabel - // RPC. - LabelServiceCreateLabelProcedure = "/buf.alpha.registry.v1alpha1.LabelService/CreateLabel" - // LabelServiceMoveLabelProcedure is the fully-qualified name of the LabelService's MoveLabel RPC. - LabelServiceMoveLabelProcedure = "/buf.alpha.registry.v1alpha1.LabelService/MoveLabel" - // LabelServiceGetLabelsProcedure is the fully-qualified name of the LabelService's GetLabels RPC. - LabelServiceGetLabelsProcedure = "/buf.alpha.registry.v1alpha1.LabelService/GetLabels" - // LabelServiceGetLabelsInNamespaceProcedure is the fully-qualified name of the LabelService's - // GetLabelsInNamespace RPC. - LabelServiceGetLabelsInNamespaceProcedure = "/buf.alpha.registry.v1alpha1.LabelService/GetLabelsInNamespace" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - labelServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_labels_proto.Services().ByName("LabelService") - labelServiceCreateLabelMethodDescriptor = labelServiceServiceDescriptor.Methods().ByName("CreateLabel") - labelServiceMoveLabelMethodDescriptor = labelServiceServiceDescriptor.Methods().ByName("MoveLabel") - labelServiceGetLabelsMethodDescriptor = labelServiceServiceDescriptor.Methods().ByName("GetLabels") - labelServiceGetLabelsInNamespaceMethodDescriptor = labelServiceServiceDescriptor.Methods().ByName("GetLabelsInNamespace") -) - -// LabelServiceClient is a client for the buf.alpha.registry.v1alpha1.LabelService service. -type LabelServiceClient interface { - CreateLabel(context.Context, *connect.Request[v1alpha1.CreateLabelRequest]) (*connect.Response[v1alpha1.CreateLabelResponse], error) - MoveLabel(context.Context, *connect.Request[v1alpha1.MoveLabelRequest]) (*connect.Response[v1alpha1.MoveLabelResponse], error) - // GetLabels returns labels in a repository with optional label name and value filters. - GetLabels(context.Context, *connect.Request[v1alpha1.GetLabelsRequest]) (*connect.Response[v1alpha1.GetLabelsResponse], error) - // GetLabelsInNamespace returns labels in a given namespace, optionally matching label names. - GetLabelsInNamespace(context.Context, *connect.Request[v1alpha1.GetLabelsInNamespaceRequest]) (*connect.Response[v1alpha1.GetLabelsInNamespaceResponse], error) -} - -// NewLabelServiceClient constructs a client for the buf.alpha.registry.v1alpha1.LabelService -// 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 NewLabelServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) LabelServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &labelServiceClient{ - createLabel: connect.NewClient[v1alpha1.CreateLabelRequest, v1alpha1.CreateLabelResponse]( - httpClient, - baseURL+LabelServiceCreateLabelProcedure, - connect.WithSchema(labelServiceCreateLabelMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyIdempotent), - connect.WithClientOptions(opts...), - ), - moveLabel: connect.NewClient[v1alpha1.MoveLabelRequest, v1alpha1.MoveLabelResponse]( - httpClient, - baseURL+LabelServiceMoveLabelProcedure, - connect.WithSchema(labelServiceMoveLabelMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getLabels: connect.NewClient[v1alpha1.GetLabelsRequest, v1alpha1.GetLabelsResponse]( - httpClient, - baseURL+LabelServiceGetLabelsProcedure, - connect.WithSchema(labelServiceGetLabelsMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithClientOptions(opts...), - ), - getLabelsInNamespace: connect.NewClient[v1alpha1.GetLabelsInNamespaceRequest, v1alpha1.GetLabelsInNamespaceResponse]( - httpClient, - baseURL+LabelServiceGetLabelsInNamespaceProcedure, - connect.WithSchema(labelServiceGetLabelsInNamespaceMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithClientOptions(opts...), - ), - } -} - -// labelServiceClient implements LabelServiceClient. -type labelServiceClient struct { - createLabel *connect.Client[v1alpha1.CreateLabelRequest, v1alpha1.CreateLabelResponse] - moveLabel *connect.Client[v1alpha1.MoveLabelRequest, v1alpha1.MoveLabelResponse] - getLabels *connect.Client[v1alpha1.GetLabelsRequest, v1alpha1.GetLabelsResponse] - getLabelsInNamespace *connect.Client[v1alpha1.GetLabelsInNamespaceRequest, v1alpha1.GetLabelsInNamespaceResponse] -} - -// CreateLabel calls buf.alpha.registry.v1alpha1.LabelService.CreateLabel. -func (c *labelServiceClient) CreateLabel(ctx context.Context, req *connect.Request[v1alpha1.CreateLabelRequest]) (*connect.Response[v1alpha1.CreateLabelResponse], error) { - return c.createLabel.CallUnary(ctx, req) -} - -// MoveLabel calls buf.alpha.registry.v1alpha1.LabelService.MoveLabel. -func (c *labelServiceClient) MoveLabel(ctx context.Context, req *connect.Request[v1alpha1.MoveLabelRequest]) (*connect.Response[v1alpha1.MoveLabelResponse], error) { - return c.moveLabel.CallUnary(ctx, req) -} - -// GetLabels calls buf.alpha.registry.v1alpha1.LabelService.GetLabels. -func (c *labelServiceClient) GetLabels(ctx context.Context, req *connect.Request[v1alpha1.GetLabelsRequest]) (*connect.Response[v1alpha1.GetLabelsResponse], error) { - return c.getLabels.CallUnary(ctx, req) -} - -// GetLabelsInNamespace calls buf.alpha.registry.v1alpha1.LabelService.GetLabelsInNamespace. -func (c *labelServiceClient) GetLabelsInNamespace(ctx context.Context, req *connect.Request[v1alpha1.GetLabelsInNamespaceRequest]) (*connect.Response[v1alpha1.GetLabelsInNamespaceResponse], error) { - return c.getLabelsInNamespace.CallUnary(ctx, req) -} - -// LabelServiceHandler is an implementation of the buf.alpha.registry.v1alpha1.LabelService service. -type LabelServiceHandler interface { - CreateLabel(context.Context, *connect.Request[v1alpha1.CreateLabelRequest]) (*connect.Response[v1alpha1.CreateLabelResponse], error) - MoveLabel(context.Context, *connect.Request[v1alpha1.MoveLabelRequest]) (*connect.Response[v1alpha1.MoveLabelResponse], error) - // GetLabels returns labels in a repository with optional label name and value filters. - GetLabels(context.Context, *connect.Request[v1alpha1.GetLabelsRequest]) (*connect.Response[v1alpha1.GetLabelsResponse], error) - // GetLabelsInNamespace returns labels in a given namespace, optionally matching label names. - GetLabelsInNamespace(context.Context, *connect.Request[v1alpha1.GetLabelsInNamespaceRequest]) (*connect.Response[v1alpha1.GetLabelsInNamespaceResponse], error) -} - -// NewLabelServiceHandler 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 NewLabelServiceHandler(svc LabelServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - labelServiceCreateLabelHandler := connect.NewUnaryHandler( - LabelServiceCreateLabelProcedure, - svc.CreateLabel, - connect.WithSchema(labelServiceCreateLabelMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyIdempotent), - connect.WithHandlerOptions(opts...), - ) - labelServiceMoveLabelHandler := connect.NewUnaryHandler( - LabelServiceMoveLabelProcedure, - svc.MoveLabel, - connect.WithSchema(labelServiceMoveLabelMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - labelServiceGetLabelsHandler := connect.NewUnaryHandler( - LabelServiceGetLabelsProcedure, - svc.GetLabels, - connect.WithSchema(labelServiceGetLabelsMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithHandlerOptions(opts...), - ) - labelServiceGetLabelsInNamespaceHandler := connect.NewUnaryHandler( - LabelServiceGetLabelsInNamespaceProcedure, - svc.GetLabelsInNamespace, - connect.WithSchema(labelServiceGetLabelsInNamespaceMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithHandlerOptions(opts...), - ) - return "/buf.alpha.registry.v1alpha1.LabelService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case LabelServiceCreateLabelProcedure: - labelServiceCreateLabelHandler.ServeHTTP(w, r) - case LabelServiceMoveLabelProcedure: - labelServiceMoveLabelHandler.ServeHTTP(w, r) - case LabelServiceGetLabelsProcedure: - labelServiceGetLabelsHandler.ServeHTTP(w, r) - case LabelServiceGetLabelsInNamespaceProcedure: - labelServiceGetLabelsInNamespaceHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedLabelServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedLabelServiceHandler struct{} - -func (UnimplementedLabelServiceHandler) CreateLabel(context.Context, *connect.Request[v1alpha1.CreateLabelRequest]) (*connect.Response[v1alpha1.CreateLabelResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.LabelService.CreateLabel is not implemented")) -} - -func (UnimplementedLabelServiceHandler) MoveLabel(context.Context, *connect.Request[v1alpha1.MoveLabelRequest]) (*connect.Response[v1alpha1.MoveLabelResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.LabelService.MoveLabel is not implemented")) -} - -func (UnimplementedLabelServiceHandler) GetLabels(context.Context, *connect.Request[v1alpha1.GetLabelsRequest]) (*connect.Response[v1alpha1.GetLabelsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.LabelService.GetLabels is not implemented")) -} - -func (UnimplementedLabelServiceHandler) GetLabelsInNamespace(context.Context, *connect.Request[v1alpha1.GetLabelsInNamespaceRequest]) (*connect.Response[v1alpha1.GetLabelsInNamespaceResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.LabelService.GetLabelsInNamespace is not implemented")) -} diff --git a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/sync.connect.go b/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/sync.connect.go deleted file mode 100644 index 01d9e53036..0000000000 --- a/private/gen/proto/connect/buf/alpha/registry/v1alpha1/registryv1alpha1connect/sync.connect.go +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright 2020-2024 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/sync.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 ( - // SyncServiceName is the fully-qualified name of the SyncService service. - SyncServiceName = "buf.alpha.registry.v1alpha1.SyncService" -) - -// 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 ( - // SyncServiceGetGitSyncPointProcedure is the fully-qualified name of the SyncService's - // GetGitSyncPoint RPC. - SyncServiceGetGitSyncPointProcedure = "/buf.alpha.registry.v1alpha1.SyncService/GetGitSyncPoint" - // SyncServiceSyncGitCommitProcedure is the fully-qualified name of the SyncService's SyncGitCommit - // RPC. - SyncServiceSyncGitCommitProcedure = "/buf.alpha.registry.v1alpha1.SyncService/SyncGitCommit" - // SyncServiceAttachGitTagsProcedure is the fully-qualified name of the SyncService's AttachGitTags - // RPC. - SyncServiceAttachGitTagsProcedure = "/buf.alpha.registry.v1alpha1.SyncService/AttachGitTags" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - syncServiceServiceDescriptor = v1alpha1.File_buf_alpha_registry_v1alpha1_sync_proto.Services().ByName("SyncService") - syncServiceGetGitSyncPointMethodDescriptor = syncServiceServiceDescriptor.Methods().ByName("GetGitSyncPoint") - syncServiceSyncGitCommitMethodDescriptor = syncServiceServiceDescriptor.Methods().ByName("SyncGitCommit") - syncServiceAttachGitTagsMethodDescriptor = syncServiceServiceDescriptor.Methods().ByName("AttachGitTags") -) - -// SyncServiceClient is a client for the buf.alpha.registry.v1alpha1.SyncService service. -type SyncServiceClient interface { - // GetGitSyncPoint retrieves the Git sync point for the named repository - // on the specified branch. - GetGitSyncPoint(context.Context, *connect.Request[v1alpha1.GetGitSyncPointRequest]) (*connect.Response[v1alpha1.GetGitSyncPointResponse], error) - // SyncGitCommit syncs a Git commit containing a module to a named repository. - SyncGitCommit(context.Context, *connect.Request[v1alpha1.SyncGitCommitRequest]) (*connect.Response[v1alpha1.SyncGitCommitResponse], error) - // AttachGitTags attaches git tags (or moves them in case they already existed) to an existing Git - // SHA reference in a BSR repository. It is used when syncing the git repository, to sync git tags - // that could have been moved to git commits that were already synced. - AttachGitTags(context.Context, *connect.Request[v1alpha1.AttachGitTagsRequest]) (*connect.Response[v1alpha1.AttachGitTagsResponse], error) -} - -// NewSyncServiceClient constructs a client for the buf.alpha.registry.v1alpha1.SyncService 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 NewSyncServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SyncServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &syncServiceClient{ - getGitSyncPoint: connect.NewClient[v1alpha1.GetGitSyncPointRequest, v1alpha1.GetGitSyncPointResponse]( - httpClient, - baseURL+SyncServiceGetGitSyncPointProcedure, - connect.WithSchema(syncServiceGetGitSyncPointMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithClientOptions(opts...), - ), - syncGitCommit: connect.NewClient[v1alpha1.SyncGitCommitRequest, v1alpha1.SyncGitCommitResponse]( - httpClient, - baseURL+SyncServiceSyncGitCommitProcedure, - connect.WithSchema(syncServiceSyncGitCommitMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyIdempotent), - connect.WithClientOptions(opts...), - ), - attachGitTags: connect.NewClient[v1alpha1.AttachGitTagsRequest, v1alpha1.AttachGitTagsResponse]( - httpClient, - baseURL+SyncServiceAttachGitTagsProcedure, - connect.WithSchema(syncServiceAttachGitTagsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// syncServiceClient implements SyncServiceClient. -type syncServiceClient struct { - getGitSyncPoint *connect.Client[v1alpha1.GetGitSyncPointRequest, v1alpha1.GetGitSyncPointResponse] - syncGitCommit *connect.Client[v1alpha1.SyncGitCommitRequest, v1alpha1.SyncGitCommitResponse] - attachGitTags *connect.Client[v1alpha1.AttachGitTagsRequest, v1alpha1.AttachGitTagsResponse] -} - -// GetGitSyncPoint calls buf.alpha.registry.v1alpha1.SyncService.GetGitSyncPoint. -func (c *syncServiceClient) GetGitSyncPoint(ctx context.Context, req *connect.Request[v1alpha1.GetGitSyncPointRequest]) (*connect.Response[v1alpha1.GetGitSyncPointResponse], error) { - return c.getGitSyncPoint.CallUnary(ctx, req) -} - -// SyncGitCommit calls buf.alpha.registry.v1alpha1.SyncService.SyncGitCommit. -func (c *syncServiceClient) SyncGitCommit(ctx context.Context, req *connect.Request[v1alpha1.SyncGitCommitRequest]) (*connect.Response[v1alpha1.SyncGitCommitResponse], error) { - return c.syncGitCommit.CallUnary(ctx, req) -} - -// AttachGitTags calls buf.alpha.registry.v1alpha1.SyncService.AttachGitTags. -func (c *syncServiceClient) AttachGitTags(ctx context.Context, req *connect.Request[v1alpha1.AttachGitTagsRequest]) (*connect.Response[v1alpha1.AttachGitTagsResponse], error) { - return c.attachGitTags.CallUnary(ctx, req) -} - -// SyncServiceHandler is an implementation of the buf.alpha.registry.v1alpha1.SyncService service. -type SyncServiceHandler interface { - // GetGitSyncPoint retrieves the Git sync point for the named repository - // on the specified branch. - GetGitSyncPoint(context.Context, *connect.Request[v1alpha1.GetGitSyncPointRequest]) (*connect.Response[v1alpha1.GetGitSyncPointResponse], error) - // SyncGitCommit syncs a Git commit containing a module to a named repository. - SyncGitCommit(context.Context, *connect.Request[v1alpha1.SyncGitCommitRequest]) (*connect.Response[v1alpha1.SyncGitCommitResponse], error) - // AttachGitTags attaches git tags (or moves them in case they already existed) to an existing Git - // SHA reference in a BSR repository. It is used when syncing the git repository, to sync git tags - // that could have been moved to git commits that were already synced. - AttachGitTags(context.Context, *connect.Request[v1alpha1.AttachGitTagsRequest]) (*connect.Response[v1alpha1.AttachGitTagsResponse], error) -} - -// NewSyncServiceHandler 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 NewSyncServiceHandler(svc SyncServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - syncServiceGetGitSyncPointHandler := connect.NewUnaryHandler( - SyncServiceGetGitSyncPointProcedure, - svc.GetGitSyncPoint, - connect.WithSchema(syncServiceGetGitSyncPointMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyNoSideEffects), - connect.WithHandlerOptions(opts...), - ) - syncServiceSyncGitCommitHandler := connect.NewUnaryHandler( - SyncServiceSyncGitCommitProcedure, - svc.SyncGitCommit, - connect.WithSchema(syncServiceSyncGitCommitMethodDescriptor), - connect.WithIdempotency(connect.IdempotencyIdempotent), - connect.WithHandlerOptions(opts...), - ) - syncServiceAttachGitTagsHandler := connect.NewUnaryHandler( - SyncServiceAttachGitTagsProcedure, - svc.AttachGitTags, - connect.WithSchema(syncServiceAttachGitTagsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/buf.alpha.registry.v1alpha1.SyncService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case SyncServiceGetGitSyncPointProcedure: - syncServiceGetGitSyncPointHandler.ServeHTTP(w, r) - case SyncServiceSyncGitCommitProcedure: - syncServiceSyncGitCommitHandler.ServeHTTP(w, r) - case SyncServiceAttachGitTagsProcedure: - syncServiceAttachGitTagsHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedSyncServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedSyncServiceHandler struct{} - -func (UnimplementedSyncServiceHandler) GetGitSyncPoint(context.Context, *connect.Request[v1alpha1.GetGitSyncPointRequest]) (*connect.Response[v1alpha1.GetGitSyncPointResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.SyncService.GetGitSyncPoint is not implemented")) -} - -func (UnimplementedSyncServiceHandler) SyncGitCommit(context.Context, *connect.Request[v1alpha1.SyncGitCommitRequest]) (*connect.Response[v1alpha1.SyncGitCommitResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.SyncService.SyncGitCommit is not implemented")) -} - -func (UnimplementedSyncServiceHandler) AttachGitTags(context.Context, *connect.Request[v1alpha1.AttachGitTagsRequest]) (*connect.Response[v1alpha1.AttachGitTagsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("buf.alpha.registry.v1alpha1.SyncService.AttachGitTags is not implemented")) -} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/labels.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/labels.pb.go deleted file mode 100644 index be90dcb4b4..0000000000 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/labels.pb.go +++ /dev/null @@ -1,1110 +0,0 @@ -// Copyright 2020-2024 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.34.2-devel -// protoc (unknown) -// source: buf/alpha/registry/v1alpha1/labels.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" - sync "sync" -) - -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) -) - -type LabelNamespace int32 - -const ( - LabelNamespace_LABEL_NAMESPACE_UNSPECIFIED LabelNamespace = 0 - LabelNamespace_LABEL_NAMESPACE_TAG LabelNamespace = 1 - LabelNamespace_LABEL_NAMESPACE_BRANCH LabelNamespace = 2 - LabelNamespace_LABEL_NAMESPACE_GIT_COMMIT LabelNamespace = 3 - LabelNamespace_LABEL_NAMESPACE_REVIEW LabelNamespace = 4 - LabelNamespace_LABEL_NAMESPACE_BSR_HEAD LabelNamespace = 5 -) - -// Enum value maps for LabelNamespace. -var ( - LabelNamespace_name = map[int32]string{ - 0: "LABEL_NAMESPACE_UNSPECIFIED", - 1: "LABEL_NAMESPACE_TAG", - 2: "LABEL_NAMESPACE_BRANCH", - 3: "LABEL_NAMESPACE_GIT_COMMIT", - 4: "LABEL_NAMESPACE_REVIEW", - 5: "LABEL_NAMESPACE_BSR_HEAD", - } - LabelNamespace_value = map[string]int32{ - "LABEL_NAMESPACE_UNSPECIFIED": 0, - "LABEL_NAMESPACE_TAG": 1, - "LABEL_NAMESPACE_BRANCH": 2, - "LABEL_NAMESPACE_GIT_COMMIT": 3, - "LABEL_NAMESPACE_REVIEW": 4, - "LABEL_NAMESPACE_BSR_HEAD": 5, - } -) - -func (x LabelNamespace) Enum() *LabelNamespace { - p := new(LabelNamespace) - *p = x - return p -} - -func (x LabelNamespace) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (LabelNamespace) Descriptor() protoreflect.EnumDescriptor { - return file_buf_alpha_registry_v1alpha1_labels_proto_enumTypes[0].Descriptor() -} - -func (LabelNamespace) Type() protoreflect.EnumType { - return &file_buf_alpha_registry_v1alpha1_labels_proto_enumTypes[0] -} - -func (x LabelNamespace) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use LabelNamespace.Descriptor instead. -func (LabelNamespace) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{0} -} - -type Label struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LabelName *LabelName `protobuf:"bytes,1,opt,name=label_name,json=labelName,proto3" json:"label_name,omitempty"` - LabelValue *LabelValue `protobuf:"bytes,2,opt,name=label_value,json=labelValue,proto3" json:"label_value,omitempty"` -} - -func (x *Label) Reset() { - *x = Label{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Label) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Label) ProtoMessage() {} - -func (x *Label) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Label.ProtoReflect.Descriptor instead. -func (*Label) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{0} -} - -func (x *Label) GetLabelName() *LabelName { - if x != nil { - return x.LabelName - } - return nil -} - -func (x *Label) GetLabelValue() *LabelValue { - if x != nil { - return x.LabelValue - } - return nil -} - -type LabelName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Namespace LabelNamespace `protobuf:"varint,1,opt,name=namespace,proto3,enum=buf.alpha.registry.v1alpha1.LabelNamespace" json:"namespace,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *LabelName) Reset() { - *x = LabelName{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LabelName) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LabelName) ProtoMessage() {} - -func (x *LabelName) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LabelName.ProtoReflect.Descriptor instead. -func (*LabelName) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{1} -} - -func (x *LabelName) GetNamespace() LabelNamespace { - if x != nil { - return x.Namespace - } - return LabelNamespace_LABEL_NAMESPACE_UNSPECIFIED -} - -func (x *LabelName) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type LabelValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` -} - -func (x *LabelValue) Reset() { - *x = LabelValue{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LabelValue) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LabelValue) ProtoMessage() {} - -func (x *LabelValue) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LabelValue.ProtoReflect.Descriptor instead. -func (*LabelValue) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{2} -} - -func (x *LabelValue) GetCommitId() string { - if x != nil { - return x.CommitId - } - return "" -} - -type CreateLabelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LabelName *LabelName `protobuf:"bytes,1,opt,name=label_name,json=labelName,proto3" json:"label_name,omitempty"` - LabelValue *LabelValue `protobuf:"bytes,2,opt,name=label_value,json=labelValue,proto3" json:"label_value,omitempty"` - Author *string `protobuf:"bytes,3,opt,name=author,proto3,oneof" json:"author,omitempty"` - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3,oneof" json:"create_time,omitempty"` -} - -func (x *CreateLabelRequest) Reset() { - *x = CreateLabelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateLabelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateLabelRequest) ProtoMessage() {} - -func (x *CreateLabelRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateLabelRequest.ProtoReflect.Descriptor instead. -func (*CreateLabelRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateLabelRequest) GetLabelName() *LabelName { - if x != nil { - return x.LabelName - } - return nil -} - -func (x *CreateLabelRequest) GetLabelValue() *LabelValue { - if x != nil { - return x.LabelValue - } - return nil -} - -func (x *CreateLabelRequest) GetAuthor() string { - if x != nil && x.Author != nil { - return *x.Author - } - return "" -} - -func (x *CreateLabelRequest) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -type CreateLabelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommitId *LabelValue `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` -} - -func (x *CreateLabelResponse) Reset() { - *x = CreateLabelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateLabelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateLabelResponse) ProtoMessage() {} - -func (x *CreateLabelResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateLabelResponse.ProtoReflect.Descriptor instead. -func (*CreateLabelResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{4} -} - -func (x *CreateLabelResponse) GetCommitId() *LabelValue { - if x != nil { - return x.CommitId - } - return nil -} - -type MoveLabelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LabelName *LabelName `protobuf:"bytes,1,opt,name=label_name,json=labelName,proto3" json:"label_name,omitempty"` - From *LabelValue `protobuf:"bytes,2,opt,name=from,proto3,oneof" json:"from,omitempty"` - To *LabelValue `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` -} - -func (x *MoveLabelRequest) Reset() { - *x = MoveLabelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MoveLabelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MoveLabelRequest) ProtoMessage() {} - -func (x *MoveLabelRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MoveLabelRequest.ProtoReflect.Descriptor instead. -func (*MoveLabelRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{5} -} - -func (x *MoveLabelRequest) GetLabelName() *LabelName { - if x != nil { - return x.LabelName - } - return nil -} - -func (x *MoveLabelRequest) GetFrom() *LabelValue { - if x != nil { - return x.From - } - return nil -} - -func (x *MoveLabelRequest) GetTo() *LabelValue { - if x != nil { - return x.To - } - return nil -} - -type MoveLabelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MoveLabelResponse) Reset() { - *x = MoveLabelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MoveLabelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MoveLabelResponse) ProtoMessage() {} - -func (x *MoveLabelResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MoveLabelResponse.ProtoReflect.Descriptor instead. -func (*MoveLabelResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{6} -} - -type GetLabelsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` - RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` - // Optional label_name filter, in case you want to get labels in a namespace+name. - LabelName *LabelName `protobuf:"bytes,3,opt,name=label_name,json=labelName,proto3,oneof" json:"label_name,omitempty"` - // Optional label_value filter, in case you want to get labels in a commit id. - LabelValue *LabelValue `protobuf:"bytes,4,opt,name=label_value,json=labelValue,proto3,oneof" json:"label_value,omitempty"` -} - -func (x *GetLabelsRequest) Reset() { - *x = GetLabelsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetLabelsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetLabelsRequest) ProtoMessage() {} - -func (x *GetLabelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetLabelsRequest.ProtoReflect.Descriptor instead. -func (*GetLabelsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{7} -} - -func (x *GetLabelsRequest) GetRepositoryOwner() string { - if x != nil { - return x.RepositoryOwner - } - return "" -} - -func (x *GetLabelsRequest) GetRepositoryName() string { - if x != nil { - return x.RepositoryName - } - return "" -} - -func (x *GetLabelsRequest) GetLabelName() *LabelName { - if x != nil { - return x.LabelName - } - return nil -} - -func (x *GetLabelsRequest) GetLabelValue() *LabelValue { - if x != nil { - return x.LabelValue - } - return nil -} - -type GetLabelsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` -} - -func (x *GetLabelsResponse) Reset() { - *x = GetLabelsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetLabelsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetLabelsResponse) ProtoMessage() {} - -func (x *GetLabelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetLabelsResponse.ProtoReflect.Descriptor instead. -func (*GetLabelsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{8} -} - -func (x *GetLabelsResponse) GetLabels() []*Label { - if x != nil { - return x.Labels - } - return nil -} - -type GetLabelsInNamespaceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` - RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` - // Label namespace filter, so only labels in this namespace will be retrieved. - LabelNamespace LabelNamespace `protobuf:"varint,3,opt,name=label_namespace,json=labelNamespace,proto3,enum=buf.alpha.registry.v1alpha1.LabelNamespace" json:"label_namespace,omitempty"` - // Optional label names filter. Label names that matches a value here will be retrieved. If empty, - // all labels in the namespace will be retrieved. - LabelNames []string `protobuf:"bytes,4,rep,name=label_names,json=labelNames,proto3" json:"label_names,omitempty"` -} - -func (x *GetLabelsInNamespaceRequest) Reset() { - *x = GetLabelsInNamespaceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetLabelsInNamespaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetLabelsInNamespaceRequest) ProtoMessage() {} - -func (x *GetLabelsInNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetLabelsInNamespaceRequest.ProtoReflect.Descriptor instead. -func (*GetLabelsInNamespaceRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{9} -} - -func (x *GetLabelsInNamespaceRequest) GetRepositoryOwner() string { - if x != nil { - return x.RepositoryOwner - } - return "" -} - -func (x *GetLabelsInNamespaceRequest) GetRepositoryName() string { - if x != nil { - return x.RepositoryName - } - return "" -} - -func (x *GetLabelsInNamespaceRequest) GetLabelNamespace() LabelNamespace { - if x != nil { - return x.LabelNamespace - } - return LabelNamespace_LABEL_NAMESPACE_UNSPECIFIED -} - -func (x *GetLabelsInNamespaceRequest) GetLabelNames() []string { - if x != nil { - return x.LabelNames - } - return nil -} - -type GetLabelsInNamespaceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` -} - -func (x *GetLabelsInNamespaceResponse) Reset() { - *x = GetLabelsInNamespaceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetLabelsInNamespaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetLabelsInNamespaceResponse) ProtoMessage() {} - -func (x *GetLabelsInNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetLabelsInNamespaceResponse.ProtoReflect.Descriptor instead. -func (*GetLabelsInNamespaceResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP(), []int{10} -} - -func (x *GetLabelsInNamespaceResponse) GetLabels() []*Label { - if x != nil { - return x.Labels - } - return nil -} - -var File_buf_alpha_registry_v1alpha1_labels_proto protoreflect.FileDescriptor - -var file_buf_alpha_registry_v1alpha1_labels_proto_rawDesc = []byte{ - 0x0a, 0x28, 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, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 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, 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, 0x98, 0x01, 0x0a, 0x05, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x12, 0x45, 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 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, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, - 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, 0x61, 0x62, - 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x22, 0x6a, 0x0a, 0x09, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x49, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2b, 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, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x29, 0x0a, 0x0a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, - 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x22, 0x9f, 0x02, 0x0a, 0x12, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x45, 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 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, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x61, 0x62, 0x65, - 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, - 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, - 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, - 0x48, 0x01, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, - 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x42, 0x0e, 0x0a, 0x0c, - 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x5b, 0x0a, 0x13, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x22, 0xdd, 0x01, 0x0a, 0x10, 0x4d, 0x6f, - 0x76, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, - 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x26, 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, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x04, - 0x66, 0x72, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x37, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x74, 0x6f, - 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x22, 0x13, 0x0a, 0x11, 0x4d, 0x6f, 0x76, - 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa0, - 0x02, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, - 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, - 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 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, 0x61, 0x62, 0x65, 0x6c, 0x4e, - 0x61, 0x6d, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, - 0x88, 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x0b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x48, 0x01, 0x52, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x88, - 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x4f, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 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, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x22, 0xe8, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x49, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, - 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, - 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, - 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, - 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x0f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2b, 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, 0x61, - 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x0e, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x5a, 0x0a, - 0x1c, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x49, 0x6e, 0x4e, 0x61, 0x6d, 0x65, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 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, 0x61, 0x62, 0x65, - 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2a, 0xc0, 0x01, 0x0a, 0x0e, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x1b, - 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, - 0x13, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, - 0x5f, 0x54, 0x41, 0x47, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, - 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, - 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4e, 0x41, 0x4d, 0x45, - 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x47, 0x49, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, - 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4e, 0x41, 0x4d, 0x45, - 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x04, 0x12, 0x1c, - 0x0a, 0x18, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, - 0x45, 0x5f, 0x42, 0x53, 0x52, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x10, 0x05, 0x32, 0xf5, 0x03, 0x0a, - 0x0c, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x75, 0x0a, - 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x2f, 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, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 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, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x03, 0x90, 0x02, 0x02, 0x12, 0x6a, 0x0a, 0x09, 0x4d, 0x6f, 0x76, 0x65, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x12, 0x2d, 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, - 0x4d, 0x6f, 0x76, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2e, 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, 0x4d, - 0x6f, 0x76, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x6f, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x2d, 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, 0x47, 0x65, 0x74, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 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, 0x47, 0x65, 0x74, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, - 0x01, 0x12, 0x90, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x49, - 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x38, 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, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x49, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 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, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x49, 0x6e, 0x4e, 0x61, - 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x03, 0x90, 0x02, 0x01, 0x42, 0x98, 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, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 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_labels_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_labels_proto_rawDescData = file_buf_alpha_registry_v1alpha1_labels_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_labels_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_labels_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_labels_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_labels_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_labels_proto_rawDescData -} - -var file_buf_alpha_registry_v1alpha1_labels_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_buf_alpha_registry_v1alpha1_labels_proto_goTypes = []any{ - (LabelNamespace)(0), // 0: buf.alpha.registry.v1alpha1.LabelNamespace - (*Label)(nil), // 1: buf.alpha.registry.v1alpha1.Label - (*LabelName)(nil), // 2: buf.alpha.registry.v1alpha1.LabelName - (*LabelValue)(nil), // 3: buf.alpha.registry.v1alpha1.LabelValue - (*CreateLabelRequest)(nil), // 4: buf.alpha.registry.v1alpha1.CreateLabelRequest - (*CreateLabelResponse)(nil), // 5: buf.alpha.registry.v1alpha1.CreateLabelResponse - (*MoveLabelRequest)(nil), // 6: buf.alpha.registry.v1alpha1.MoveLabelRequest - (*MoveLabelResponse)(nil), // 7: buf.alpha.registry.v1alpha1.MoveLabelResponse - (*GetLabelsRequest)(nil), // 8: buf.alpha.registry.v1alpha1.GetLabelsRequest - (*GetLabelsResponse)(nil), // 9: buf.alpha.registry.v1alpha1.GetLabelsResponse - (*GetLabelsInNamespaceRequest)(nil), // 10: buf.alpha.registry.v1alpha1.GetLabelsInNamespaceRequest - (*GetLabelsInNamespaceResponse)(nil), // 11: buf.alpha.registry.v1alpha1.GetLabelsInNamespaceResponse - (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp -} -var file_buf_alpha_registry_v1alpha1_labels_proto_depIdxs = []int32{ - 2, // 0: buf.alpha.registry.v1alpha1.Label.label_name:type_name -> buf.alpha.registry.v1alpha1.LabelName - 3, // 1: buf.alpha.registry.v1alpha1.Label.label_value:type_name -> buf.alpha.registry.v1alpha1.LabelValue - 0, // 2: buf.alpha.registry.v1alpha1.LabelName.namespace:type_name -> buf.alpha.registry.v1alpha1.LabelNamespace - 2, // 3: buf.alpha.registry.v1alpha1.CreateLabelRequest.label_name:type_name -> buf.alpha.registry.v1alpha1.LabelName - 3, // 4: buf.alpha.registry.v1alpha1.CreateLabelRequest.label_value:type_name -> buf.alpha.registry.v1alpha1.LabelValue - 12, // 5: buf.alpha.registry.v1alpha1.CreateLabelRequest.create_time:type_name -> google.protobuf.Timestamp - 3, // 6: buf.alpha.registry.v1alpha1.CreateLabelResponse.commit_id:type_name -> buf.alpha.registry.v1alpha1.LabelValue - 2, // 7: buf.alpha.registry.v1alpha1.MoveLabelRequest.label_name:type_name -> buf.alpha.registry.v1alpha1.LabelName - 3, // 8: buf.alpha.registry.v1alpha1.MoveLabelRequest.from:type_name -> buf.alpha.registry.v1alpha1.LabelValue - 3, // 9: buf.alpha.registry.v1alpha1.MoveLabelRequest.to:type_name -> buf.alpha.registry.v1alpha1.LabelValue - 2, // 10: buf.alpha.registry.v1alpha1.GetLabelsRequest.label_name:type_name -> buf.alpha.registry.v1alpha1.LabelName - 3, // 11: buf.alpha.registry.v1alpha1.GetLabelsRequest.label_value:type_name -> buf.alpha.registry.v1alpha1.LabelValue - 1, // 12: buf.alpha.registry.v1alpha1.GetLabelsResponse.labels:type_name -> buf.alpha.registry.v1alpha1.Label - 0, // 13: buf.alpha.registry.v1alpha1.GetLabelsInNamespaceRequest.label_namespace:type_name -> buf.alpha.registry.v1alpha1.LabelNamespace - 1, // 14: buf.alpha.registry.v1alpha1.GetLabelsInNamespaceResponse.labels:type_name -> buf.alpha.registry.v1alpha1.Label - 4, // 15: buf.alpha.registry.v1alpha1.LabelService.CreateLabel:input_type -> buf.alpha.registry.v1alpha1.CreateLabelRequest - 6, // 16: buf.alpha.registry.v1alpha1.LabelService.MoveLabel:input_type -> buf.alpha.registry.v1alpha1.MoveLabelRequest - 8, // 17: buf.alpha.registry.v1alpha1.LabelService.GetLabels:input_type -> buf.alpha.registry.v1alpha1.GetLabelsRequest - 10, // 18: buf.alpha.registry.v1alpha1.LabelService.GetLabelsInNamespace:input_type -> buf.alpha.registry.v1alpha1.GetLabelsInNamespaceRequest - 5, // 19: buf.alpha.registry.v1alpha1.LabelService.CreateLabel:output_type -> buf.alpha.registry.v1alpha1.CreateLabelResponse - 7, // 20: buf.alpha.registry.v1alpha1.LabelService.MoveLabel:output_type -> buf.alpha.registry.v1alpha1.MoveLabelResponse - 9, // 21: buf.alpha.registry.v1alpha1.LabelService.GetLabels:output_type -> buf.alpha.registry.v1alpha1.GetLabelsResponse - 11, // 22: buf.alpha.registry.v1alpha1.LabelService.GetLabelsInNamespace:output_type -> buf.alpha.registry.v1alpha1.GetLabelsInNamespaceResponse - 19, // [19:23] is the sub-list for method output_type - 15, // [15:19] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name -} - -func init() { file_buf_alpha_registry_v1alpha1_labels_proto_init() } -func file_buf_alpha_registry_v1alpha1_labels_proto_init() { - if File_buf_alpha_registry_v1alpha1_labels_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Label); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*LabelName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*LabelValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*CreateLabelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*CreateLabelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*MoveLabelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*MoveLabelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*GetLabelsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*GetLabelsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*GetLabelsInNamespaceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*GetLabelsInNamespaceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[3].OneofWrappers = []any{} - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[5].OneofWrappers = []any{} - file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes[7].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_buf_alpha_registry_v1alpha1_labels_proto_rawDesc, - NumEnums: 1, - NumMessages: 11, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_buf_alpha_registry_v1alpha1_labels_proto_goTypes, - DependencyIndexes: file_buf_alpha_registry_v1alpha1_labels_proto_depIdxs, - EnumInfos: file_buf_alpha_registry_v1alpha1_labels_proto_enumTypes, - MessageInfos: file_buf_alpha_registry_v1alpha1_labels_proto_msgTypes, - }.Build() - File_buf_alpha_registry_v1alpha1_labels_proto = out.File - file_buf_alpha_registry_v1alpha1_labels_proto_rawDesc = nil - file_buf_alpha_registry_v1alpha1_labels_proto_goTypes = nil - file_buf_alpha_registry_v1alpha1_labels_proto_depIdxs = nil -} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/sync.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/sync.pb.go deleted file mode 100644 index 671a43082e..0000000000 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/sync.pb.go +++ /dev/null @@ -1,833 +0,0 @@ -// Copyright 2020-2024 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.34.2-devel -// protoc (unknown) -// source: buf/alpha/registry/v1alpha1/sync.proto - -package registryv1alpha1 - -import ( - v1alpha1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/module/v1alpha1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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) -) - -// GitSyncPoint is the sync point for a particular module contained in a Git repository. -type GitSyncPoint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` - Branch string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"` - GitCommitHash string `protobuf:"bytes,4,opt,name=git_commit_hash,json=gitCommitHash,proto3" json:"git_commit_hash,omitempty"` - BsrCommitName string `protobuf:"bytes,5,opt,name=bsr_commit_name,json=bsrCommitName,proto3" json:"bsr_commit_name,omitempty"` -} - -func (x *GitSyncPoint) Reset() { - *x = GitSyncPoint{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GitSyncPoint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GitSyncPoint) ProtoMessage() {} - -func (x *GitSyncPoint) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GitSyncPoint.ProtoReflect.Descriptor instead. -func (*GitSyncPoint) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_sync_proto_rawDescGZIP(), []int{0} -} - -func (x *GitSyncPoint) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *GitSyncPoint) GetRepository() string { - if x != nil { - return x.Repository - } - return "" -} - -func (x *GitSyncPoint) GetBranch() string { - if x != nil { - return x.Branch - } - return "" -} - -func (x *GitSyncPoint) GetGitCommitHash() string { - if x != nil { - return x.GitCommitHash - } - return "" -} - -func (x *GitSyncPoint) GetBsrCommitName() string { - if x != nil { - return x.BsrCommitName - } - return "" -} - -type GetGitSyncPointRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Owner is the owner of the BSR repository. - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // Repository is the name of the BSR repository. - Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` - // Branch is the Git branch for which to look up the commit. - Branch string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"` -} - -func (x *GetGitSyncPointRequest) Reset() { - *x = GetGitSyncPointRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGitSyncPointRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGitSyncPointRequest) ProtoMessage() {} - -func (x *GetGitSyncPointRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetGitSyncPointRequest.ProtoReflect.Descriptor instead. -func (*GetGitSyncPointRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_sync_proto_rawDescGZIP(), []int{1} -} - -func (x *GetGitSyncPointRequest) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *GetGitSyncPointRequest) GetRepository() string { - if x != nil { - return x.Repository - } - return "" -} - -func (x *GetGitSyncPointRequest) GetBranch() string { - if x != nil { - return x.Branch - } - return "" -} - -type GetGitSyncPointResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // SyncPoint is the latest syncpoint for the specified owner/repo/branch. - SyncPoint *GitSyncPoint `protobuf:"bytes,1,opt,name=sync_point,json=syncPoint,proto3" json:"sync_point,omitempty"` -} - -func (x *GetGitSyncPointResponse) Reset() { - *x = GetGitSyncPointResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGitSyncPointResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGitSyncPointResponse) ProtoMessage() {} - -func (x *GetGitSyncPointResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetGitSyncPointResponse.ProtoReflect.Descriptor instead. -func (*GetGitSyncPointResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_sync_proto_rawDescGZIP(), []int{2} -} - -func (x *GetGitSyncPointResponse) GetSyncPoint() *GitSyncPoint { - if x != nil { - return x.SyncPoint - } - return nil -} - -type SyncGitCommitRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Owner is the owner of the BSR repository. - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // Repository is the name of the BSR repository. - Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` - // Branch is the Git branch that this commit belongs to. - Branch string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"` - // Manifest with all the module files being pushed. - Manifest *v1alpha1.Blob `protobuf:"bytes,4,opt,name=manifest,proto3" json:"manifest,omitempty"` - // Referenced blobs in the manifest. Keep in mind there is not necessarily one - // blob per file, but one blob per digest, so for files with exactly the same - // content, you can send just one blob. - Blobs []*v1alpha1.Blob `protobuf:"bytes,5,rep,name=blobs,proto3" json:"blobs,omitempty"` - // Hash is the SHA1 hash of the Git commit. - Hash string `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"` - // Author is the author of the Git commit. - Author *GitIdentity `protobuf:"bytes,7,opt,name=author,proto3" json:"author,omitempty"` - // Committer is the committer of the Git commit. - Committer *GitIdentity `protobuf:"bytes,8,opt,name=committer,proto3" json:"committer,omitempty"` - // Tags are the Git tags which point to this commit. - Tags []string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"` -} - -func (x *SyncGitCommitRequest) Reset() { - *x = SyncGitCommitRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncGitCommitRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncGitCommitRequest) ProtoMessage() {} - -func (x *SyncGitCommitRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncGitCommitRequest.ProtoReflect.Descriptor instead. -func (*SyncGitCommitRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_sync_proto_rawDescGZIP(), []int{3} -} - -func (x *SyncGitCommitRequest) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *SyncGitCommitRequest) GetRepository() string { - if x != nil { - return x.Repository - } - return "" -} - -func (x *SyncGitCommitRequest) GetBranch() string { - if x != nil { - return x.Branch - } - return "" -} - -func (x *SyncGitCommitRequest) GetManifest() *v1alpha1.Blob { - if x != nil { - return x.Manifest - } - return nil -} - -func (x *SyncGitCommitRequest) GetBlobs() []*v1alpha1.Blob { - if x != nil { - return x.Blobs - } - return nil -} - -func (x *SyncGitCommitRequest) GetHash() string { - if x != nil { - return x.Hash - } - return "" -} - -func (x *SyncGitCommitRequest) GetAuthor() *GitIdentity { - if x != nil { - return x.Author - } - return nil -} - -func (x *SyncGitCommitRequest) GetCommitter() *GitIdentity { - if x != nil { - return x.Committer - } - return nil -} - -func (x *SyncGitCommitRequest) GetTags() []string { - if x != nil { - return x.Tags - } - return nil -} - -type SyncGitCommitResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // SyncPoint is the latest syncpoint for the SyncGitCommit request. - SyncPoint *GitSyncPoint `protobuf:"bytes,1,opt,name=sync_point,json=syncPoint,proto3" json:"sync_point,omitempty"` -} - -func (x *SyncGitCommitResponse) Reset() { - *x = SyncGitCommitResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncGitCommitResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncGitCommitResponse) ProtoMessage() {} - -func (x *SyncGitCommitResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncGitCommitResponse.ProtoReflect.Descriptor instead. -func (*SyncGitCommitResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_sync_proto_rawDescGZIP(), []int{4} -} - -func (x *SyncGitCommitResponse) GetSyncPoint() *GitSyncPoint { - if x != nil { - return x.SyncPoint - } - return nil -} - -type AttachGitTagsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Owner is the owner of the BSR repository. - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - // Repository is the name of the BSR repository. - Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` - // Hash is the SHA1 hash of the Git commit that is tagged. The BSR has the ability to resolve this - // git hash to a BSR commit. - Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` - // Author is the author of the Git commit. - Author *GitIdentity `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"` - // Committer is the committer of the Git commit. - Committer *GitIdentity `protobuf:"bytes,5,opt,name=committer,proto3" json:"committer,omitempty"` - // Tags are the Git tags which point to this commit, and that will be synced to the BSR commit. - Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` -} - -func (x *AttachGitTagsRequest) Reset() { - *x = AttachGitTagsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AttachGitTagsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AttachGitTagsRequest) ProtoMessage() {} - -func (x *AttachGitTagsRequest) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AttachGitTagsRequest.ProtoReflect.Descriptor instead. -func (*AttachGitTagsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_sync_proto_rawDescGZIP(), []int{5} -} - -func (x *AttachGitTagsRequest) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *AttachGitTagsRequest) GetRepository() string { - if x != nil { - return x.Repository - } - return "" -} - -func (x *AttachGitTagsRequest) GetHash() string { - if x != nil { - return x.Hash - } - return "" -} - -func (x *AttachGitTagsRequest) GetAuthor() *GitIdentity { - if x != nil { - return x.Author - } - return nil -} - -func (x *AttachGitTagsRequest) GetCommitter() *GitIdentity { - if x != nil { - return x.Committer - } - return nil -} - -func (x *AttachGitTagsRequest) GetTags() []string { - if x != nil { - return x.Tags - } - return nil -} - -type AttachGitTagsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The BSR commit that was resolved from the given hash, to which the tags were attached. - BsrCommitName string `protobuf:"bytes,1,opt,name=bsr_commit_name,json=bsrCommitName,proto3" json:"bsr_commit_name,omitempty"` -} - -func (x *AttachGitTagsResponse) Reset() { - *x = AttachGitTagsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AttachGitTagsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AttachGitTagsResponse) ProtoMessage() {} - -func (x *AttachGitTagsResponse) ProtoReflect() protoreflect.Message { - mi := &file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AttachGitTagsResponse.ProtoReflect.Descriptor instead. -func (*AttachGitTagsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_sync_proto_rawDescGZIP(), []int{6} -} - -func (x *AttachGitTagsResponse) GetBsrCommitName() string { - if x != nil { - return x.BsrCommitName - } - return "" -} - -var File_buf_alpha_registry_v1alpha1_sync_proto protoreflect.FileDescriptor - -var file_buf_alpha_registry_v1alpha1_sync_proto_rawDesc = []byte{ - 0x0a, 0x26, 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, 0x73, 0x79, - 0x6e, 0x63, 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, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 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, 0x67, 0x69, 0x74, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, - 0x0a, 0x0c, 0x47, 0x69, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x14, - 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, - 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x26, 0x0a, 0x0f, - 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x73, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, - 0x73, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x66, 0x0a, 0x16, - 0x47, 0x65, 0x74, 0x47, 0x69, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, - 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, - 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, - 0x61, 0x6e, 0x63, 0x68, 0x22, 0x63, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x47, 0x69, 0x74, 0x53, 0x79, - 0x6e, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x48, 0x0a, 0x0a, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x29, 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, 0x47, 0x69, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x09, - 0x73, 0x79, 0x6e, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x8a, 0x03, 0x0a, 0x14, 0x53, 0x79, - 0x6e, 0x63, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, - 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, - 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, - 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, - 0x6c, 0x6f, 0x62, 0x52, 0x08, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, - 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, - 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x05, 0x62, - 0x6c, 0x6f, 0x62, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x40, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 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, 0x47, 0x69, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x09, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 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, 0x47, 0x69, 0x74, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, - 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x61, 0x0a, 0x15, 0x53, 0x79, 0x6e, 0x63, 0x47, 0x69, - 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x48, 0x0a, 0x0a, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x29, 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, 0x47, 0x69, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x09, - 0x73, 0x79, 0x6e, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0xfe, 0x01, 0x0a, 0x14, 0x41, 0x74, - 0x74, 0x61, 0x63, 0x68, 0x47, 0x69, 0x74, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, - 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x40, 0x0a, 0x06, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 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, 0x47, 0x69, 0x74, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x46, - 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x28, 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, - 0x47, 0x69, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x09, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x3f, 0x0a, 0x15, 0x41, 0x74, - 0x74, 0x61, 0x63, 0x68, 0x47, 0x69, 0x74, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x73, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x73, - 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x86, 0x03, 0x0a, 0x0b, - 0x53, 0x79, 0x6e, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x0f, - 0x47, 0x65, 0x74, 0x47, 0x69, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, - 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, 0x47, 0x65, - 0x74, 0x47, 0x69, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 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, 0x47, 0x65, 0x74, 0x47, 0x69, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x6f, 0x69, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, - 0x7b, 0x0a, 0x0d, 0x53, 0x79, 0x6e, 0x63, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x12, 0x31, 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, - 0x79, 0x6e, 0x63, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 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, 0x53, 0x79, 0x6e, 0x63, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x76, 0x0a, 0x0d, - 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x47, 0x69, 0x74, 0x54, 0x61, 0x67, 0x73, 0x12, 0x31, 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, 0x41, 0x74, 0x74, 0x61, - 0x63, 0x68, 0x47, 0x69, 0x74, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 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, 0x41, - 0x74, 0x74, 0x61, 0x63, 0x68, 0x47, 0x69, 0x74, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x96, 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, 0x09, 0x53, 0x79, 0x6e, 0x63, 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_sync_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_sync_proto_rawDescData = file_buf_alpha_registry_v1alpha1_sync_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_sync_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_sync_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_sync_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_sync_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_sync_proto_rawDescData -} - -var file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_buf_alpha_registry_v1alpha1_sync_proto_goTypes = []any{ - (*GitSyncPoint)(nil), // 0: buf.alpha.registry.v1alpha1.GitSyncPoint - (*GetGitSyncPointRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetGitSyncPointRequest - (*GetGitSyncPointResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetGitSyncPointResponse - (*SyncGitCommitRequest)(nil), // 3: buf.alpha.registry.v1alpha1.SyncGitCommitRequest - (*SyncGitCommitResponse)(nil), // 4: buf.alpha.registry.v1alpha1.SyncGitCommitResponse - (*AttachGitTagsRequest)(nil), // 5: buf.alpha.registry.v1alpha1.AttachGitTagsRequest - (*AttachGitTagsResponse)(nil), // 6: buf.alpha.registry.v1alpha1.AttachGitTagsResponse - (*v1alpha1.Blob)(nil), // 7: buf.alpha.module.v1alpha1.Blob - (*GitIdentity)(nil), // 8: buf.alpha.registry.v1alpha1.GitIdentity -} -var file_buf_alpha_registry_v1alpha1_sync_proto_depIdxs = []int32{ - 0, // 0: buf.alpha.registry.v1alpha1.GetGitSyncPointResponse.sync_point:type_name -> buf.alpha.registry.v1alpha1.GitSyncPoint - 7, // 1: buf.alpha.registry.v1alpha1.SyncGitCommitRequest.manifest:type_name -> buf.alpha.module.v1alpha1.Blob - 7, // 2: buf.alpha.registry.v1alpha1.SyncGitCommitRequest.blobs:type_name -> buf.alpha.module.v1alpha1.Blob - 8, // 3: buf.alpha.registry.v1alpha1.SyncGitCommitRequest.author:type_name -> buf.alpha.registry.v1alpha1.GitIdentity - 8, // 4: buf.alpha.registry.v1alpha1.SyncGitCommitRequest.committer:type_name -> buf.alpha.registry.v1alpha1.GitIdentity - 0, // 5: buf.alpha.registry.v1alpha1.SyncGitCommitResponse.sync_point:type_name -> buf.alpha.registry.v1alpha1.GitSyncPoint - 8, // 6: buf.alpha.registry.v1alpha1.AttachGitTagsRequest.author:type_name -> buf.alpha.registry.v1alpha1.GitIdentity - 8, // 7: buf.alpha.registry.v1alpha1.AttachGitTagsRequest.committer:type_name -> buf.alpha.registry.v1alpha1.GitIdentity - 1, // 8: buf.alpha.registry.v1alpha1.SyncService.GetGitSyncPoint:input_type -> buf.alpha.registry.v1alpha1.GetGitSyncPointRequest - 3, // 9: buf.alpha.registry.v1alpha1.SyncService.SyncGitCommit:input_type -> buf.alpha.registry.v1alpha1.SyncGitCommitRequest - 5, // 10: buf.alpha.registry.v1alpha1.SyncService.AttachGitTags:input_type -> buf.alpha.registry.v1alpha1.AttachGitTagsRequest - 2, // 11: buf.alpha.registry.v1alpha1.SyncService.GetGitSyncPoint:output_type -> buf.alpha.registry.v1alpha1.GetGitSyncPointResponse - 4, // 12: buf.alpha.registry.v1alpha1.SyncService.SyncGitCommit:output_type -> buf.alpha.registry.v1alpha1.SyncGitCommitResponse - 6, // 13: buf.alpha.registry.v1alpha1.SyncService.AttachGitTags:output_type -> buf.alpha.registry.v1alpha1.AttachGitTagsResponse - 11, // [11:14] is the sub-list for method output_type - 8, // [8:11] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name -} - -func init() { file_buf_alpha_registry_v1alpha1_sync_proto_init() } -func file_buf_alpha_registry_v1alpha1_sync_proto_init() { - if File_buf_alpha_registry_v1alpha1_sync_proto != nil { - return - } - file_buf_alpha_registry_v1alpha1_git_metadata_proto_init() - if !protoimpl.UnsafeEnabled { - file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GitSyncPoint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetGitSyncPointRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*GetGitSyncPointResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*SyncGitCommitRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*SyncGitCommitResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*AttachGitTagsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*AttachGitTagsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_buf_alpha_registry_v1alpha1_sync_proto_rawDesc, - NumEnums: 0, - NumMessages: 7, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_buf_alpha_registry_v1alpha1_sync_proto_goTypes, - DependencyIndexes: file_buf_alpha_registry_v1alpha1_sync_proto_depIdxs, - MessageInfos: file_buf_alpha_registry_v1alpha1_sync_proto_msgTypes, - }.Build() - File_buf_alpha_registry_v1alpha1_sync_proto = out.File - file_buf_alpha_registry_v1alpha1_sync_proto_rawDesc = nil - file_buf_alpha_registry_v1alpha1_sync_proto_goTypes = nil - file_buf_alpha_registry_v1alpha1_sync_proto_depIdxs = nil -} diff --git a/proto/buf/alpha/registry/v1alpha1/labels.proto b/proto/buf/alpha/registry/v1alpha1/labels.proto deleted file mode 100644 index 7ec256685b..0000000000 --- a/proto/buf/alpha/registry/v1alpha1/labels.proto +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2020-2024 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 "google/protobuf/timestamp.proto"; - -enum LabelNamespace { - LABEL_NAMESPACE_UNSPECIFIED = 0; - LABEL_NAMESPACE_TAG = 1; - LABEL_NAMESPACE_BRANCH = 2; - LABEL_NAMESPACE_GIT_COMMIT = 3; - LABEL_NAMESPACE_REVIEW = 4; - LABEL_NAMESPACE_BSR_HEAD = 5; -} - -message Label { - LabelName label_name = 1; - LabelValue label_value = 2; -} - -message LabelName { - LabelNamespace namespace = 1; - string name = 2; -} - -message LabelValue { - string commit_id = 1; -} - -service LabelService { - rpc CreateLabel(CreateLabelRequest) returns (CreateLabelResponse) { - option idempotency_level = IDEMPOTENT; - } - rpc MoveLabel(MoveLabelRequest) returns (MoveLabelResponse); - // GetLabels returns labels in a repository with optional label name and value filters. - rpc GetLabels(GetLabelsRequest) returns (GetLabelsResponse) { - option idempotency_level = NO_SIDE_EFFECTS; - } - // GetLabelsInNamespace returns labels in a given namespace, optionally matching label names. - rpc GetLabelsInNamespace(GetLabelsInNamespaceRequest) returns (GetLabelsInNamespaceResponse) { - option idempotency_level = NO_SIDE_EFFECTS; - } -} - -message CreateLabelRequest { - LabelName label_name = 1; - LabelValue label_value = 2; - optional string author = 3; - optional google.protobuf.Timestamp create_time = 4; -} - -message CreateLabelResponse { - LabelValue commit_id = 1; -} - -message MoveLabelRequest { - LabelName label_name = 1; - optional LabelValue from = 2; - LabelValue to = 3; -} - -message MoveLabelResponse {} - -message GetLabelsRequest { - string repository_owner = 1; - string repository_name = 2; - // Optional label_name filter, in case you want to get labels in a namespace+name. - optional LabelName label_name = 3; - // Optional label_value filter, in case you want to get labels in a commit id. - optional LabelValue label_value = 4; -} - -message GetLabelsResponse { - repeated Label labels = 1; -} - -message GetLabelsInNamespaceRequest { - string repository_owner = 1; - string repository_name = 2; - // Label namespace filter, so only labels in this namespace will be retrieved. - LabelNamespace label_namespace = 3; - // Optional label names filter. Label names that matches a value here will be retrieved. If empty, - // all labels in the namespace will be retrieved. - repeated string label_names = 4; -} - -message GetLabelsInNamespaceResponse { - repeated Label labels = 1; -} diff --git a/proto/buf/alpha/registry/v1alpha1/sync.proto b/proto/buf/alpha/registry/v1alpha1/sync.proto deleted file mode 100644 index 46891ff19d..0000000000 --- a/proto/buf/alpha/registry/v1alpha1/sync.proto +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2020-2024 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/module/v1alpha1/module.proto"; -import "buf/alpha/registry/v1alpha1/git_metadata.proto"; - -// GitSyncPoint is the sync point for a particular module contained in a Git repository. -message GitSyncPoint { - string owner = 1; - string repository = 2; - string branch = 3; - string git_commit_hash = 4; - string bsr_commit_name = 5; -} - -// SyncService is the Sync service. -service SyncService { - // GetGitSyncPoint retrieves the Git sync point for the named repository - // on the specified branch. - rpc GetGitSyncPoint(GetGitSyncPointRequest) returns (GetGitSyncPointResponse) { - option idempotency_level = NO_SIDE_EFFECTS; - } - // SyncGitCommit syncs a Git commit containing a module to a named repository. - rpc SyncGitCommit(SyncGitCommitRequest) returns (SyncGitCommitResponse) { - option idempotency_level = IDEMPOTENT; - } - // AttachGitTags attaches git tags (or moves them in case they already existed) to an existing Git - // SHA reference in a BSR repository. It is used when syncing the git repository, to sync git tags - // that could have been moved to git commits that were already synced. - rpc AttachGitTags(AttachGitTagsRequest) returns (AttachGitTagsResponse); -} - -message GetGitSyncPointRequest { - // Owner is the owner of the BSR repository. - string owner = 1; - // Repository is the name of the BSR repository. - string repository = 2; - // Branch is the Git branch for which to look up the commit. - string branch = 3; -} - -message GetGitSyncPointResponse { - // SyncPoint is the latest syncpoint for the specified owner/repo/branch. - GitSyncPoint sync_point = 1; -} - -message SyncGitCommitRequest { - // Owner is the owner of the BSR repository. - string owner = 1; - // Repository is the name of the BSR repository. - string repository = 2; - // Branch is the Git branch that this commit belongs to. - string branch = 3; - // Manifest with all the module files being pushed. - buf.alpha.module.v1alpha1.Blob manifest = 4; - // Referenced blobs in the manifest. Keep in mind there is not necessarily one - // blob per file, but one blob per digest, so for files with exactly the same - // content, you can send just one blob. - repeated buf.alpha.module.v1alpha1.Blob blobs = 5; - // Hash is the SHA1 hash of the Git commit. - string hash = 6; - // Author is the author of the Git commit. - GitIdentity author = 7; - // Committer is the committer of the Git commit. - GitIdentity committer = 8; - // Tags are the Git tags which point to this commit. - repeated string tags = 9; -} - -message SyncGitCommitResponse { - // SyncPoint is the latest syncpoint for the SyncGitCommit request. - GitSyncPoint sync_point = 1; -} - -message AttachGitTagsRequest { - // Owner is the owner of the BSR repository. - string owner = 1; - // Repository is the name of the BSR repository. - string repository = 2; - // Hash is the SHA1 hash of the Git commit that is tagged. The BSR has the ability to resolve this - // git hash to a BSR commit. - string hash = 3; - // Author is the author of the Git commit. - GitIdentity author = 4; - // Committer is the committer of the Git commit. - GitIdentity committer = 5; - // Tags are the Git tags which point to this commit, and that will be synced to the BSR commit. - repeated string tags = 6; -} - -message AttachGitTagsResponse { - // The BSR commit that was resolved from the given hash, to which the tags were attached. - string bsr_commit_name = 1; -}