// Code generated by protoc-gen-connect-go. DO NOT EDIT.
//
// Source: tars/registry/v1/registry.proto

package registryv1connect

import (
	connect "connectrpc.com/connect"
	context "context"
	errors "errors"
	v1 "github.com/tetrateio/agentrouter-go/genapi/api/tars/registry/v1"
	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 (
	// RegistryServiceName is the fully-qualified name of the RegistryService service.
	RegistryServiceName = "tars.registry.v1.RegistryService"
)

// 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 (
	// RegistryServiceRegisterServiceAccountProcedure is the fully-qualified name of the
	// RegistryService's RegisterServiceAccount RPC.
	RegistryServiceRegisterServiceAccountProcedure = "/tars.registry.v1.RegistryService/RegisterServiceAccount"
	// RegistryServiceRevokeServiceAccountProcedure is the fully-qualified name of the RegistryService's
	// RevokeServiceAccount RPC.
	RegistryServiceRevokeServiceAccountProcedure = "/tars.registry.v1.RegistryService/RevokeServiceAccount"
	// RegistryServiceGetServiceAccountProcedure is the fully-qualified name of the RegistryService's
	// GetServiceAccount RPC.
	RegistryServiceGetServiceAccountProcedure = "/tars.registry.v1.RegistryService/GetServiceAccount"
	// RegistryServiceLookupServiceAccountProcedure is the fully-qualified name of the RegistryService's
	// LookupServiceAccount RPC.
	RegistryServiceLookupServiceAccountProcedure = "/tars.registry.v1.RegistryService/LookupServiceAccount"
	// RegistryServiceListServiceAccountsProcedure is the fully-qualified name of the RegistryService's
	// ListServiceAccounts RPC.
	RegistryServiceListServiceAccountsProcedure = "/tars.registry.v1.RegistryService/ListServiceAccounts"
	// RegistryServiceGetServiceAccountPublicKeysProcedure is the fully-qualified name of the
	// RegistryService's GetServiceAccountPublicKeys RPC.
	RegistryServiceGetServiceAccountPublicKeysProcedure = "/tars.registry.v1.RegistryService/GetServiceAccountPublicKeys"
	// RegistryServiceCreateRegistryCredentialProcedure is the fully-qualified name of the
	// RegistryService's CreateRegistryCredential RPC.
	RegistryServiceCreateRegistryCredentialProcedure = "/tars.registry.v1.RegistryService/CreateRegistryCredential"
	// RegistryServiceListRegistryCredentialsProcedure is the fully-qualified name of the
	// RegistryService's ListRegistryCredentials RPC.
	RegistryServiceListRegistryCredentialsProcedure = "/tars.registry.v1.RegistryService/ListRegistryCredentials"
	// RegistryServiceRevokeRegistryCredentialProcedure is the fully-qualified name of the
	// RegistryService's RevokeRegistryCredential RPC.
	RegistryServiceRevokeRegistryCredentialProcedure = "/tars.registry.v1.RegistryService/RevokeRegistryCredential"
	// RegistryServicePingProcedure is the fully-qualified name of the RegistryService's Ping RPC.
	RegistryServicePingProcedure = "/tars.registry.v1.RegistryService/Ping"
)

// RegistryServiceClient is a client for the tars.registry.v1.RegistryService service.
type RegistryServiceClient interface {
	// Register a service account with the registry.
	// This endpoint receives a service account (with private key stripped) from a valet deployment
	// and stores it for authentication purposes.
	RegisterServiceAccount(context.Context, *connect.Request[v1.RegisterServiceAccountRequest]) (*connect.Response[v1.RegisterServiceAccountResponse], error)
	// Revoke a service account.
	// Marks a service account as revoked so it can no longer authenticate.
	RevokeServiceAccount(context.Context, *connect.Request[v1.RevokeServiceAccountRequest]) (*connect.Response[v1.RevokeServiceAccountResponse], error)
	// Get a service account by ID.
	GetServiceAccount(context.Context, *connect.Request[v1.GetServiceAccountRequest]) (*connect.Response[v1.GetServiceAccountResponse], error)
	// Lookup a service account by natural key (customer_id, workspace_id, private_key_id).
	LookupServiceAccount(context.Context, *connect.Request[v1.LookupServiceAccountRequest]) (*connect.Response[v1.LookupServiceAccountResponse], error)
	// List service accounts for a deployment.
	ListServiceAccounts(context.Context, *connect.Request[v1.ListServiceAccountsRequest]) (*connect.Response[v1.ListServiceAccountsResponse], error)
	// Get public keys for a service account.
	// Used for JWT verification.
	GetServiceAccountPublicKeys(context.Context, *connect.Request[v1.GetServiceAccountPublicKeysRequest]) (*connect.Response[v1.GetServiceAccountPublicKeysResponse], error)
	// Create a registry credential (username:password) for stock helm/docker login.
	// The plaintext password is returned ONCE in the response; only its HMAC-SHA256
	// digest (keyed with REGISTRY_API_KEY_SECRET) is persisted, matching the
	// admin_api_keys hashing scheme. A DB leak alone is insufficient to validate
	// passwords without also obtaining the server-side secret. Subsequent List
	// calls return metadata only.
	CreateRegistryCredential(context.Context, *connect.Request[v1.CreateRegistryCredentialRequest]) (*connect.Response[v1.CreateRegistryCredentialResponse], error)
	// List registry credentials for a customer/workspace.
	// Returns metadata only — never the plaintext password or its hash.
	ListRegistryCredentials(context.Context, *connect.Request[v1.ListRegistryCredentialsRequest]) (*connect.Response[v1.ListRegistryCredentialsResponse], error)
	// Revoke a registry credential. Soft delete — row is kept for audit.
	RevokeRegistryCredential(context.Context, *connect.Request[v1.RevokeRegistryCredentialRequest]) (*connect.Response[v1.RevokeRegistryCredentialResponse], error)
	// Ping endpoint to validate API key.
	// Returns success if the API key is valid.
	Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}

// NewRegistryServiceClient constructs a client for the tars.registry.v1.RegistryService 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 NewRegistryServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RegistryServiceClient {
	baseURL = strings.TrimRight(baseURL, "/")
	registryServiceMethods := v1.File_tars_registry_v1_registry_proto.Services().ByName("RegistryService").Methods()
	return &registryServiceClient{
		registerServiceAccount: connect.NewClient[v1.RegisterServiceAccountRequest, v1.RegisterServiceAccountResponse](
			httpClient,
			baseURL+RegistryServiceRegisterServiceAccountProcedure,
			connect.WithSchema(registryServiceMethods.ByName("RegisterServiceAccount")),
			connect.WithClientOptions(opts...),
		),
		revokeServiceAccount: connect.NewClient[v1.RevokeServiceAccountRequest, v1.RevokeServiceAccountResponse](
			httpClient,
			baseURL+RegistryServiceRevokeServiceAccountProcedure,
			connect.WithSchema(registryServiceMethods.ByName("RevokeServiceAccount")),
			connect.WithClientOptions(opts...),
		),
		getServiceAccount: connect.NewClient[v1.GetServiceAccountRequest, v1.GetServiceAccountResponse](
			httpClient,
			baseURL+RegistryServiceGetServiceAccountProcedure,
			connect.WithSchema(registryServiceMethods.ByName("GetServiceAccount")),
			connect.WithIdempotency(connect.IdempotencyNoSideEffects),
			connect.WithClientOptions(opts...),
		),
		lookupServiceAccount: connect.NewClient[v1.LookupServiceAccountRequest, v1.LookupServiceAccountResponse](
			httpClient,
			baseURL+RegistryServiceLookupServiceAccountProcedure,
			connect.WithSchema(registryServiceMethods.ByName("LookupServiceAccount")),
			connect.WithIdempotency(connect.IdempotencyNoSideEffects),
			connect.WithClientOptions(opts...),
		),
		listServiceAccounts: connect.NewClient[v1.ListServiceAccountsRequest, v1.ListServiceAccountsResponse](
			httpClient,
			baseURL+RegistryServiceListServiceAccountsProcedure,
			connect.WithSchema(registryServiceMethods.ByName("ListServiceAccounts")),
			connect.WithIdempotency(connect.IdempotencyNoSideEffects),
			connect.WithClientOptions(opts...),
		),
		getServiceAccountPublicKeys: connect.NewClient[v1.GetServiceAccountPublicKeysRequest, v1.GetServiceAccountPublicKeysResponse](
			httpClient,
			baseURL+RegistryServiceGetServiceAccountPublicKeysProcedure,
			connect.WithSchema(registryServiceMethods.ByName("GetServiceAccountPublicKeys")),
			connect.WithIdempotency(connect.IdempotencyNoSideEffects),
			connect.WithClientOptions(opts...),
		),
		createRegistryCredential: connect.NewClient[v1.CreateRegistryCredentialRequest, v1.CreateRegistryCredentialResponse](
			httpClient,
			baseURL+RegistryServiceCreateRegistryCredentialProcedure,
			connect.WithSchema(registryServiceMethods.ByName("CreateRegistryCredential")),
			connect.WithClientOptions(opts...),
		),
		listRegistryCredentials: connect.NewClient[v1.ListRegistryCredentialsRequest, v1.ListRegistryCredentialsResponse](
			httpClient,
			baseURL+RegistryServiceListRegistryCredentialsProcedure,
			connect.WithSchema(registryServiceMethods.ByName("ListRegistryCredentials")),
			connect.WithIdempotency(connect.IdempotencyNoSideEffects),
			connect.WithClientOptions(opts...),
		),
		revokeRegistryCredential: connect.NewClient[v1.RevokeRegistryCredentialRequest, v1.RevokeRegistryCredentialResponse](
			httpClient,
			baseURL+RegistryServiceRevokeRegistryCredentialProcedure,
			connect.WithSchema(registryServiceMethods.ByName("RevokeRegistryCredential")),
			connect.WithClientOptions(opts...),
		),
		ping: connect.NewClient[v1.PingRequest, v1.PingResponse](
			httpClient,
			baseURL+RegistryServicePingProcedure,
			connect.WithSchema(registryServiceMethods.ByName("Ping")),
			connect.WithIdempotency(connect.IdempotencyNoSideEffects),
			connect.WithClientOptions(opts...),
		),
	}
}

// registryServiceClient implements RegistryServiceClient.
type registryServiceClient struct {
	registerServiceAccount      *connect.Client[v1.RegisterServiceAccountRequest, v1.RegisterServiceAccountResponse]
	revokeServiceAccount        *connect.Client[v1.RevokeServiceAccountRequest, v1.RevokeServiceAccountResponse]
	getServiceAccount           *connect.Client[v1.GetServiceAccountRequest, v1.GetServiceAccountResponse]
	lookupServiceAccount        *connect.Client[v1.LookupServiceAccountRequest, v1.LookupServiceAccountResponse]
	listServiceAccounts         *connect.Client[v1.ListServiceAccountsRequest, v1.ListServiceAccountsResponse]
	getServiceAccountPublicKeys *connect.Client[v1.GetServiceAccountPublicKeysRequest, v1.GetServiceAccountPublicKeysResponse]
	createRegistryCredential    *connect.Client[v1.CreateRegistryCredentialRequest, v1.CreateRegistryCredentialResponse]
	listRegistryCredentials     *connect.Client[v1.ListRegistryCredentialsRequest, v1.ListRegistryCredentialsResponse]
	revokeRegistryCredential    *connect.Client[v1.RevokeRegistryCredentialRequest, v1.RevokeRegistryCredentialResponse]
	ping                        *connect.Client[v1.PingRequest, v1.PingResponse]
}

// RegisterServiceAccount calls tars.registry.v1.RegistryService.RegisterServiceAccount.
func (c *registryServiceClient) RegisterServiceAccount(ctx context.Context, req *connect.Request[v1.RegisterServiceAccountRequest]) (*connect.Response[v1.RegisterServiceAccountResponse], error) {
	return c.registerServiceAccount.CallUnary(ctx, req)
}

// RevokeServiceAccount calls tars.registry.v1.RegistryService.RevokeServiceAccount.
func (c *registryServiceClient) RevokeServiceAccount(ctx context.Context, req *connect.Request[v1.RevokeServiceAccountRequest]) (*connect.Response[v1.RevokeServiceAccountResponse], error) {
	return c.revokeServiceAccount.CallUnary(ctx, req)
}

// GetServiceAccount calls tars.registry.v1.RegistryService.GetServiceAccount.
func (c *registryServiceClient) GetServiceAccount(ctx context.Context, req *connect.Request[v1.GetServiceAccountRequest]) (*connect.Response[v1.GetServiceAccountResponse], error) {
	return c.getServiceAccount.CallUnary(ctx, req)
}

// LookupServiceAccount calls tars.registry.v1.RegistryService.LookupServiceAccount.
func (c *registryServiceClient) LookupServiceAccount(ctx context.Context, req *connect.Request[v1.LookupServiceAccountRequest]) (*connect.Response[v1.LookupServiceAccountResponse], error) {
	return c.lookupServiceAccount.CallUnary(ctx, req)
}

// ListServiceAccounts calls tars.registry.v1.RegistryService.ListServiceAccounts.
func (c *registryServiceClient) ListServiceAccounts(ctx context.Context, req *connect.Request[v1.ListServiceAccountsRequest]) (*connect.Response[v1.ListServiceAccountsResponse], error) {
	return c.listServiceAccounts.CallUnary(ctx, req)
}

// GetServiceAccountPublicKeys calls tars.registry.v1.RegistryService.GetServiceAccountPublicKeys.
func (c *registryServiceClient) GetServiceAccountPublicKeys(ctx context.Context, req *connect.Request[v1.GetServiceAccountPublicKeysRequest]) (*connect.Response[v1.GetServiceAccountPublicKeysResponse], error) {
	return c.getServiceAccountPublicKeys.CallUnary(ctx, req)
}

// CreateRegistryCredential calls tars.registry.v1.RegistryService.CreateRegistryCredential.
func (c *registryServiceClient) CreateRegistryCredential(ctx context.Context, req *connect.Request[v1.CreateRegistryCredentialRequest]) (*connect.Response[v1.CreateRegistryCredentialResponse], error) {
	return c.createRegistryCredential.CallUnary(ctx, req)
}

// ListRegistryCredentials calls tars.registry.v1.RegistryService.ListRegistryCredentials.
func (c *registryServiceClient) ListRegistryCredentials(ctx context.Context, req *connect.Request[v1.ListRegistryCredentialsRequest]) (*connect.Response[v1.ListRegistryCredentialsResponse], error) {
	return c.listRegistryCredentials.CallUnary(ctx, req)
}

// RevokeRegistryCredential calls tars.registry.v1.RegistryService.RevokeRegistryCredential.
func (c *registryServiceClient) RevokeRegistryCredential(ctx context.Context, req *connect.Request[v1.RevokeRegistryCredentialRequest]) (*connect.Response[v1.RevokeRegistryCredentialResponse], error) {
	return c.revokeRegistryCredential.CallUnary(ctx, req)
}

// Ping calls tars.registry.v1.RegistryService.Ping.
func (c *registryServiceClient) Ping(ctx context.Context, req *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error) {
	return c.ping.CallUnary(ctx, req)
}

// RegistryServiceHandler is an implementation of the tars.registry.v1.RegistryService service.
type RegistryServiceHandler interface {
	// Register a service account with the registry.
	// This endpoint receives a service account (with private key stripped) from a valet deployment
	// and stores it for authentication purposes.
	RegisterServiceAccount(context.Context, *connect.Request[v1.RegisterServiceAccountRequest]) (*connect.Response[v1.RegisterServiceAccountResponse], error)
	// Revoke a service account.
	// Marks a service account as revoked so it can no longer authenticate.
	RevokeServiceAccount(context.Context, *connect.Request[v1.RevokeServiceAccountRequest]) (*connect.Response[v1.RevokeServiceAccountResponse], error)
	// Get a service account by ID.
	GetServiceAccount(context.Context, *connect.Request[v1.GetServiceAccountRequest]) (*connect.Response[v1.GetServiceAccountResponse], error)
	// Lookup a service account by natural key (customer_id, workspace_id, private_key_id).
	LookupServiceAccount(context.Context, *connect.Request[v1.LookupServiceAccountRequest]) (*connect.Response[v1.LookupServiceAccountResponse], error)
	// List service accounts for a deployment.
	ListServiceAccounts(context.Context, *connect.Request[v1.ListServiceAccountsRequest]) (*connect.Response[v1.ListServiceAccountsResponse], error)
	// Get public keys for a service account.
	// Used for JWT verification.
	GetServiceAccountPublicKeys(context.Context, *connect.Request[v1.GetServiceAccountPublicKeysRequest]) (*connect.Response[v1.GetServiceAccountPublicKeysResponse], error)
	// Create a registry credential (username:password) for stock helm/docker login.
	// The plaintext password is returned ONCE in the response; only its HMAC-SHA256
	// digest (keyed with REGISTRY_API_KEY_SECRET) is persisted, matching the
	// admin_api_keys hashing scheme. A DB leak alone is insufficient to validate
	// passwords without also obtaining the server-side secret. Subsequent List
	// calls return metadata only.
	CreateRegistryCredential(context.Context, *connect.Request[v1.CreateRegistryCredentialRequest]) (*connect.Response[v1.CreateRegistryCredentialResponse], error)
	// List registry credentials for a customer/workspace.
	// Returns metadata only — never the plaintext password or its hash.
	ListRegistryCredentials(context.Context, *connect.Request[v1.ListRegistryCredentialsRequest]) (*connect.Response[v1.ListRegistryCredentialsResponse], error)
	// Revoke a registry credential. Soft delete — row is kept for audit.
	RevokeRegistryCredential(context.Context, *connect.Request[v1.RevokeRegistryCredentialRequest]) (*connect.Response[v1.RevokeRegistryCredentialResponse], error)
	// Ping endpoint to validate API key.
	// Returns success if the API key is valid.
	Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
}

// NewRegistryServiceHandler 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 NewRegistryServiceHandler(svc RegistryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
	registryServiceMethods := v1.File_tars_registry_v1_registry_proto.Services().ByName("RegistryService").Methods()
	registryServiceRegisterServiceAccountHandler := connect.NewUnaryHandler(
		RegistryServiceRegisterServiceAccountProcedure,
		svc.RegisterServiceAccount,
		connect.WithSchema(registryServiceMethods.ByName("RegisterServiceAccount")),
		connect.WithHandlerOptions(opts...),
	)
	registryServiceRevokeServiceAccountHandler := connect.NewUnaryHandler(
		RegistryServiceRevokeServiceAccountProcedure,
		svc.RevokeServiceAccount,
		connect.WithSchema(registryServiceMethods.ByName("RevokeServiceAccount")),
		connect.WithHandlerOptions(opts...),
	)
	registryServiceGetServiceAccountHandler := connect.NewUnaryHandler(
		RegistryServiceGetServiceAccountProcedure,
		svc.GetServiceAccount,
		connect.WithSchema(registryServiceMethods.ByName("GetServiceAccount")),
		connect.WithIdempotency(connect.IdempotencyNoSideEffects),
		connect.WithHandlerOptions(opts...),
	)
	registryServiceLookupServiceAccountHandler := connect.NewUnaryHandler(
		RegistryServiceLookupServiceAccountProcedure,
		svc.LookupServiceAccount,
		connect.WithSchema(registryServiceMethods.ByName("LookupServiceAccount")),
		connect.WithIdempotency(connect.IdempotencyNoSideEffects),
		connect.WithHandlerOptions(opts...),
	)
	registryServiceListServiceAccountsHandler := connect.NewUnaryHandler(
		RegistryServiceListServiceAccountsProcedure,
		svc.ListServiceAccounts,
		connect.WithSchema(registryServiceMethods.ByName("ListServiceAccounts")),
		connect.WithIdempotency(connect.IdempotencyNoSideEffects),
		connect.WithHandlerOptions(opts...),
	)
	registryServiceGetServiceAccountPublicKeysHandler := connect.NewUnaryHandler(
		RegistryServiceGetServiceAccountPublicKeysProcedure,
		svc.GetServiceAccountPublicKeys,
		connect.WithSchema(registryServiceMethods.ByName("GetServiceAccountPublicKeys")),
		connect.WithIdempotency(connect.IdempotencyNoSideEffects),
		connect.WithHandlerOptions(opts...),
	)
	registryServiceCreateRegistryCredentialHandler := connect.NewUnaryHandler(
		RegistryServiceCreateRegistryCredentialProcedure,
		svc.CreateRegistryCredential,
		connect.WithSchema(registryServiceMethods.ByName("CreateRegistryCredential")),
		connect.WithHandlerOptions(opts...),
	)
	registryServiceListRegistryCredentialsHandler := connect.NewUnaryHandler(
		RegistryServiceListRegistryCredentialsProcedure,
		svc.ListRegistryCredentials,
		connect.WithSchema(registryServiceMethods.ByName("ListRegistryCredentials")),
		connect.WithIdempotency(connect.IdempotencyNoSideEffects),
		connect.WithHandlerOptions(opts...),
	)
	registryServiceRevokeRegistryCredentialHandler := connect.NewUnaryHandler(
		RegistryServiceRevokeRegistryCredentialProcedure,
		svc.RevokeRegistryCredential,
		connect.WithSchema(registryServiceMethods.ByName("RevokeRegistryCredential")),
		connect.WithHandlerOptions(opts...),
	)
	registryServicePingHandler := connect.NewUnaryHandler(
		RegistryServicePingProcedure,
		svc.Ping,
		connect.WithSchema(registryServiceMethods.ByName("Ping")),
		connect.WithIdempotency(connect.IdempotencyNoSideEffects),
		connect.WithHandlerOptions(opts...),
	)
	return "/tars.registry.v1.RegistryService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		switch r.URL.Path {
		case RegistryServiceRegisterServiceAccountProcedure:
			registryServiceRegisterServiceAccountHandler.ServeHTTP(w, r)
		case RegistryServiceRevokeServiceAccountProcedure:
			registryServiceRevokeServiceAccountHandler.ServeHTTP(w, r)
		case RegistryServiceGetServiceAccountProcedure:
			registryServiceGetServiceAccountHandler.ServeHTTP(w, r)
		case RegistryServiceLookupServiceAccountProcedure:
			registryServiceLookupServiceAccountHandler.ServeHTTP(w, r)
		case RegistryServiceListServiceAccountsProcedure:
			registryServiceListServiceAccountsHandler.ServeHTTP(w, r)
		case RegistryServiceGetServiceAccountPublicKeysProcedure:
			registryServiceGetServiceAccountPublicKeysHandler.ServeHTTP(w, r)
		case RegistryServiceCreateRegistryCredentialProcedure:
			registryServiceCreateRegistryCredentialHandler.ServeHTTP(w, r)
		case RegistryServiceListRegistryCredentialsProcedure:
			registryServiceListRegistryCredentialsHandler.ServeHTTP(w, r)
		case RegistryServiceRevokeRegistryCredentialProcedure:
			registryServiceRevokeRegistryCredentialHandler.ServeHTTP(w, r)
		case RegistryServicePingProcedure:
			registryServicePingHandler.ServeHTTP(w, r)
		default:
			http.NotFound(w, r)
		}
	})
}

// UnimplementedRegistryServiceHandler returns CodeUnimplemented from all methods.
type UnimplementedRegistryServiceHandler struct{}

func (UnimplementedRegistryServiceHandler) RegisterServiceAccount(context.Context, *connect.Request[v1.RegisterServiceAccountRequest]) (*connect.Response[v1.RegisterServiceAccountResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.RegisterServiceAccount is not implemented"))
}

func (UnimplementedRegistryServiceHandler) RevokeServiceAccount(context.Context, *connect.Request[v1.RevokeServiceAccountRequest]) (*connect.Response[v1.RevokeServiceAccountResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.RevokeServiceAccount is not implemented"))
}

func (UnimplementedRegistryServiceHandler) GetServiceAccount(context.Context, *connect.Request[v1.GetServiceAccountRequest]) (*connect.Response[v1.GetServiceAccountResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.GetServiceAccount is not implemented"))
}

func (UnimplementedRegistryServiceHandler) LookupServiceAccount(context.Context, *connect.Request[v1.LookupServiceAccountRequest]) (*connect.Response[v1.LookupServiceAccountResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.LookupServiceAccount is not implemented"))
}

func (UnimplementedRegistryServiceHandler) ListServiceAccounts(context.Context, *connect.Request[v1.ListServiceAccountsRequest]) (*connect.Response[v1.ListServiceAccountsResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.ListServiceAccounts is not implemented"))
}

func (UnimplementedRegistryServiceHandler) GetServiceAccountPublicKeys(context.Context, *connect.Request[v1.GetServiceAccountPublicKeysRequest]) (*connect.Response[v1.GetServiceAccountPublicKeysResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.GetServiceAccountPublicKeys is not implemented"))
}

func (UnimplementedRegistryServiceHandler) CreateRegistryCredential(context.Context, *connect.Request[v1.CreateRegistryCredentialRequest]) (*connect.Response[v1.CreateRegistryCredentialResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.CreateRegistryCredential is not implemented"))
}

func (UnimplementedRegistryServiceHandler) ListRegistryCredentials(context.Context, *connect.Request[v1.ListRegistryCredentialsRequest]) (*connect.Response[v1.ListRegistryCredentialsResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.ListRegistryCredentials is not implemented"))
}

func (UnimplementedRegistryServiceHandler) RevokeRegistryCredential(context.Context, *connect.Request[v1.RevokeRegistryCredentialRequest]) (*connect.Response[v1.RevokeRegistryCredentialResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.RevokeRegistryCredential is not implemented"))
}

func (UnimplementedRegistryServiceHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error) {
	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("tars.registry.v1.RegistryService.Ping is not implemented"))
}
