// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc             v3.21.12
// source: kodex/packages/v1/package_hub.proto

package packagesv1

import (
	context "context"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
)

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc.SupportPackageIsVersion9

const (
	PackageHubService_ConnectPackageSource_FullMethodName                   = "/kodex.packages.v1.PackageHubService/ConnectPackageSource"
	PackageHubService_UpdatePackageSource_FullMethodName                    = "/kodex.packages.v1.PackageHubService/UpdatePackageSource"
	PackageHubService_DisablePackageSource_FullMethodName                   = "/kodex.packages.v1.PackageHubService/DisablePackageSource"
	PackageHubService_GetPackageSource_FullMethodName                       = "/kodex.packages.v1.PackageHubService/GetPackageSource"
	PackageHubService_ListPackageSources_FullMethodName                     = "/kodex.packages.v1.PackageHubService/ListPackageSources"
	PackageHubService_SyncAvailablePackages_FullMethodName                  = "/kodex.packages.v1.PackageHubService/SyncAvailablePackages"
	PackageHubService_GetPackage_FullMethodName                             = "/kodex.packages.v1.PackageHubService/GetPackage"
	PackageHubService_ListPackages_FullMethodName                           = "/kodex.packages.v1.PackageHubService/ListPackages"
	PackageHubService_GetPackageVersion_FullMethodName                      = "/kodex.packages.v1.PackageHubService/GetPackageVersion"
	PackageHubService_ListPackageVersions_FullMethodName                    = "/kodex.packages.v1.PackageHubService/ListPackageVersions"
	PackageHubService_GetPackageManifest_FullMethodName                     = "/kodex.packages.v1.PackageHubService/GetPackageManifest"
	PackageHubService_RequestPackageInstallation_FullMethodName             = "/kodex.packages.v1.PackageHubService/RequestPackageInstallation"
	PackageHubService_UpdatePackageInstallation_FullMethodName              = "/kodex.packages.v1.PackageHubService/UpdatePackageInstallation"
	PackageHubService_DisablePackageInstallation_FullMethodName             = "/kodex.packages.v1.PackageHubService/DisablePackageInstallation"
	PackageHubService_UninstallPackage_FullMethodName                       = "/kodex.packages.v1.PackageHubService/UninstallPackage"
	PackageHubService_GetPackageInstallation_FullMethodName                 = "/kodex.packages.v1.PackageHubService/GetPackageInstallation"
	PackageHubService_ListPackageInstallations_FullMethodName               = "/kodex.packages.v1.PackageHubService/ListPackageInstallations"
	PackageHubService_GetPackageSecretSchema_FullMethodName                 = "/kodex.packages.v1.PackageHubService/GetPackageSecretSchema"
	PackageHubService_RefreshPackageInstallationSecretStatus_FullMethodName = "/kodex.packages.v1.PackageHubService/RefreshPackageInstallationSecretStatus"
	PackageHubService_SetPackageVerification_FullMethodName                 = "/kodex.packages.v1.PackageHubService/SetPackageVerification"
)

// PackageHubServiceClient is the client API for PackageHubService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
//
// PackageHubService is the stable v1 inter-service contract for the package
// platform domain. It covers package sources, local catalog entries, package
// versions, manifests, installations, secret schemas and verification state.
type PackageHubServiceClient interface {
	// ConnectPackageSource connects a built-in, store, custom repository or proxy source.
	ConnectPackageSource(ctx context.Context, in *ConnectPackageSourceRequest, opts ...grpc.CallOption) (*PackageSourceResponse, error)
	// UpdatePackageSource changes safe source metadata and lifecycle status.
	UpdatePackageSource(ctx context.Context, in *UpdatePackageSourceRequest, opts ...grpc.CallOption) (*PackageSourceResponse, error)
	// DisablePackageSource disables a source without deleting catalog history.
	DisablePackageSource(ctx context.Context, in *DisablePackageSourceRequest, opts ...grpc.CallOption) (*PackageSourceResponse, error)
	// GetPackageSource returns authoritative source state.
	GetPackageSource(ctx context.Context, in *GetPackageSourceRequest, opts ...grpc.CallOption) (*PackageSourceResponse, error)
	// ListPackageSources returns sources visible in the requested scope.
	ListPackageSources(ctx context.Context, in *ListPackageSourcesRequest, opts ...grpc.CallOption) (*ListPackageSourcesResponse, error)
	// SyncAvailablePackages synchronizes local available catalog entries from a source.
	SyncAvailablePackages(ctx context.Context, in *SyncAvailablePackagesRequest, opts ...grpc.CallOption) (*SyncAvailablePackagesResponse, error)
	// GetPackage returns an authoritative local package catalog entry.
	GetPackage(ctx context.Context, in *GetPackageRequest, opts ...grpc.CallOption) (*PackageResponse, error)
	// ListPackages returns local available package catalog entries.
	ListPackages(ctx context.Context, in *ListPackagesRequest, opts ...grpc.CallOption) (*ListPackagesResponse, error)
	// GetPackageVersion returns one package version.
	GetPackageVersion(ctx context.Context, in *GetPackageVersionRequest, opts ...grpc.CallOption) (*PackageVersionResponse, error)
	// ListPackageVersions returns versions for one package.
	ListPackageVersions(ctx context.Context, in *ListPackageVersionsRequest, opts ...grpc.CallOption) (*ListPackageVersionsResponse, error)
	// GetPackageManifest returns a normalized manifest snapshot for a package version.
	GetPackageManifest(ctx context.Context, in *GetPackageManifestRequest, opts ...grpc.CallOption) (*PackageManifestResponse, error)
	// RequestPackageInstallation creates an installation request for a scope.
	RequestPackageInstallation(ctx context.Context, in *RequestPackageInstallationRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error)
	// UpdatePackageInstallation changes selected version or desired state of an installation.
	UpdatePackageInstallation(ctx context.Context, in *UpdatePackageInstallationRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error)
	// DisablePackageInstallation disables an installation without deleting history.
	DisablePackageInstallation(ctx context.Context, in *DisablePackageInstallationRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error)
	// UninstallPackage marks an installation as uninstalled.
	UninstallPackage(ctx context.Context, in *UninstallPackageRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error)
	// GetPackageInstallation returns authoritative installation state.
	GetPackageInstallation(ctx context.Context, in *GetPackageInstallationRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error)
	// ListPackageInstallations returns installations by scope, package or status.
	ListPackageInstallations(ctx context.Context, in *ListPackageInstallationsRequest, opts ...grpc.CallOption) (*ListPackageInstallationsResponse, error)
	// GetPackageSecretSchema returns required and optional secret fields for a package version.
	GetPackageSecretSchema(ctx context.Context, in *GetPackageSecretSchemaRequest, opts ...grpc.CallOption) (*PackageSecretSchemaResponse, error)
	// RefreshPackageInstallationSecretStatus refreshes installation secret status from access-manager.
	RefreshPackageInstallationSecretStatus(ctx context.Context, in *RefreshPackageInstallationSecretStatusRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error)
	// SetPackageVerification records a verification, rejection or revocation decision for a version.
	SetPackageVerification(ctx context.Context, in *SetPackageVerificationRequest, opts ...grpc.CallOption) (*PackageVerificationResponse, error)
}

type packageHubServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewPackageHubServiceClient(cc grpc.ClientConnInterface) PackageHubServiceClient {
	return &packageHubServiceClient{cc}
}

func (c *packageHubServiceClient) ConnectPackageSource(ctx context.Context, in *ConnectPackageSourceRequest, opts ...grpc.CallOption) (*PackageSourceResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageSourceResponse)
	err := c.cc.Invoke(ctx, PackageHubService_ConnectPackageSource_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) UpdatePackageSource(ctx context.Context, in *UpdatePackageSourceRequest, opts ...grpc.CallOption) (*PackageSourceResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageSourceResponse)
	err := c.cc.Invoke(ctx, PackageHubService_UpdatePackageSource_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) DisablePackageSource(ctx context.Context, in *DisablePackageSourceRequest, opts ...grpc.CallOption) (*PackageSourceResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageSourceResponse)
	err := c.cc.Invoke(ctx, PackageHubService_DisablePackageSource_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) GetPackageSource(ctx context.Context, in *GetPackageSourceRequest, opts ...grpc.CallOption) (*PackageSourceResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageSourceResponse)
	err := c.cc.Invoke(ctx, PackageHubService_GetPackageSource_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) ListPackageSources(ctx context.Context, in *ListPackageSourcesRequest, opts ...grpc.CallOption) (*ListPackageSourcesResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListPackageSourcesResponse)
	err := c.cc.Invoke(ctx, PackageHubService_ListPackageSources_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) SyncAvailablePackages(ctx context.Context, in *SyncAvailablePackagesRequest, opts ...grpc.CallOption) (*SyncAvailablePackagesResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(SyncAvailablePackagesResponse)
	err := c.cc.Invoke(ctx, PackageHubService_SyncAvailablePackages_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) GetPackage(ctx context.Context, in *GetPackageRequest, opts ...grpc.CallOption) (*PackageResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageResponse)
	err := c.cc.Invoke(ctx, PackageHubService_GetPackage_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) ListPackages(ctx context.Context, in *ListPackagesRequest, opts ...grpc.CallOption) (*ListPackagesResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListPackagesResponse)
	err := c.cc.Invoke(ctx, PackageHubService_ListPackages_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) GetPackageVersion(ctx context.Context, in *GetPackageVersionRequest, opts ...grpc.CallOption) (*PackageVersionResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageVersionResponse)
	err := c.cc.Invoke(ctx, PackageHubService_GetPackageVersion_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) ListPackageVersions(ctx context.Context, in *ListPackageVersionsRequest, opts ...grpc.CallOption) (*ListPackageVersionsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListPackageVersionsResponse)
	err := c.cc.Invoke(ctx, PackageHubService_ListPackageVersions_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) GetPackageManifest(ctx context.Context, in *GetPackageManifestRequest, opts ...grpc.CallOption) (*PackageManifestResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageManifestResponse)
	err := c.cc.Invoke(ctx, PackageHubService_GetPackageManifest_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) RequestPackageInstallation(ctx context.Context, in *RequestPackageInstallationRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageInstallationResponse)
	err := c.cc.Invoke(ctx, PackageHubService_RequestPackageInstallation_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) UpdatePackageInstallation(ctx context.Context, in *UpdatePackageInstallationRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageInstallationResponse)
	err := c.cc.Invoke(ctx, PackageHubService_UpdatePackageInstallation_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) DisablePackageInstallation(ctx context.Context, in *DisablePackageInstallationRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageInstallationResponse)
	err := c.cc.Invoke(ctx, PackageHubService_DisablePackageInstallation_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) UninstallPackage(ctx context.Context, in *UninstallPackageRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageInstallationResponse)
	err := c.cc.Invoke(ctx, PackageHubService_UninstallPackage_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) GetPackageInstallation(ctx context.Context, in *GetPackageInstallationRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageInstallationResponse)
	err := c.cc.Invoke(ctx, PackageHubService_GetPackageInstallation_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) ListPackageInstallations(ctx context.Context, in *ListPackageInstallationsRequest, opts ...grpc.CallOption) (*ListPackageInstallationsResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListPackageInstallationsResponse)
	err := c.cc.Invoke(ctx, PackageHubService_ListPackageInstallations_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) GetPackageSecretSchema(ctx context.Context, in *GetPackageSecretSchemaRequest, opts ...grpc.CallOption) (*PackageSecretSchemaResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageSecretSchemaResponse)
	err := c.cc.Invoke(ctx, PackageHubService_GetPackageSecretSchema_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) RefreshPackageInstallationSecretStatus(ctx context.Context, in *RefreshPackageInstallationSecretStatusRequest, opts ...grpc.CallOption) (*PackageInstallationResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageInstallationResponse)
	err := c.cc.Invoke(ctx, PackageHubService_RefreshPackageInstallationSecretStatus_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *packageHubServiceClient) SetPackageVerification(ctx context.Context, in *SetPackageVerificationRequest, opts ...grpc.CallOption) (*PackageVerificationResponse, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PackageVerificationResponse)
	err := c.cc.Invoke(ctx, PackageHubService_SetPackageVerification_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// PackageHubServiceServer is the server API for PackageHubService service.
// All implementations must embed UnimplementedPackageHubServiceServer
// for forward compatibility.
//
// PackageHubService is the stable v1 inter-service contract for the package
// platform domain. It covers package sources, local catalog entries, package
// versions, manifests, installations, secret schemas and verification state.
type PackageHubServiceServer interface {
	// ConnectPackageSource connects a built-in, store, custom repository or proxy source.
	ConnectPackageSource(context.Context, *ConnectPackageSourceRequest) (*PackageSourceResponse, error)
	// UpdatePackageSource changes safe source metadata and lifecycle status.
	UpdatePackageSource(context.Context, *UpdatePackageSourceRequest) (*PackageSourceResponse, error)
	// DisablePackageSource disables a source without deleting catalog history.
	DisablePackageSource(context.Context, *DisablePackageSourceRequest) (*PackageSourceResponse, error)
	// GetPackageSource returns authoritative source state.
	GetPackageSource(context.Context, *GetPackageSourceRequest) (*PackageSourceResponse, error)
	// ListPackageSources returns sources visible in the requested scope.
	ListPackageSources(context.Context, *ListPackageSourcesRequest) (*ListPackageSourcesResponse, error)
	// SyncAvailablePackages synchronizes local available catalog entries from a source.
	SyncAvailablePackages(context.Context, *SyncAvailablePackagesRequest) (*SyncAvailablePackagesResponse, error)
	// GetPackage returns an authoritative local package catalog entry.
	GetPackage(context.Context, *GetPackageRequest) (*PackageResponse, error)
	// ListPackages returns local available package catalog entries.
	ListPackages(context.Context, *ListPackagesRequest) (*ListPackagesResponse, error)
	// GetPackageVersion returns one package version.
	GetPackageVersion(context.Context, *GetPackageVersionRequest) (*PackageVersionResponse, error)
	// ListPackageVersions returns versions for one package.
	ListPackageVersions(context.Context, *ListPackageVersionsRequest) (*ListPackageVersionsResponse, error)
	// GetPackageManifest returns a normalized manifest snapshot for a package version.
	GetPackageManifest(context.Context, *GetPackageManifestRequest) (*PackageManifestResponse, error)
	// RequestPackageInstallation creates an installation request for a scope.
	RequestPackageInstallation(context.Context, *RequestPackageInstallationRequest) (*PackageInstallationResponse, error)
	// UpdatePackageInstallation changes selected version or desired state of an installation.
	UpdatePackageInstallation(context.Context, *UpdatePackageInstallationRequest) (*PackageInstallationResponse, error)
	// DisablePackageInstallation disables an installation without deleting history.
	DisablePackageInstallation(context.Context, *DisablePackageInstallationRequest) (*PackageInstallationResponse, error)
	// UninstallPackage marks an installation as uninstalled.
	UninstallPackage(context.Context, *UninstallPackageRequest) (*PackageInstallationResponse, error)
	// GetPackageInstallation returns authoritative installation state.
	GetPackageInstallation(context.Context, *GetPackageInstallationRequest) (*PackageInstallationResponse, error)
	// ListPackageInstallations returns installations by scope, package or status.
	ListPackageInstallations(context.Context, *ListPackageInstallationsRequest) (*ListPackageInstallationsResponse, error)
	// GetPackageSecretSchema returns required and optional secret fields for a package version.
	GetPackageSecretSchema(context.Context, *GetPackageSecretSchemaRequest) (*PackageSecretSchemaResponse, error)
	// RefreshPackageInstallationSecretStatus refreshes installation secret status from access-manager.
	RefreshPackageInstallationSecretStatus(context.Context, *RefreshPackageInstallationSecretStatusRequest) (*PackageInstallationResponse, error)
	// SetPackageVerification records a verification, rejection or revocation decision for a version.
	SetPackageVerification(context.Context, *SetPackageVerificationRequest) (*PackageVerificationResponse, error)
	mustEmbedUnimplementedPackageHubServiceServer()
}

// UnimplementedPackageHubServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedPackageHubServiceServer struct{}

func (UnimplementedPackageHubServiceServer) ConnectPackageSource(context.Context, *ConnectPackageSourceRequest) (*PackageSourceResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ConnectPackageSource not implemented")
}
func (UnimplementedPackageHubServiceServer) UpdatePackageSource(context.Context, *UpdatePackageSourceRequest) (*PackageSourceResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdatePackageSource not implemented")
}
func (UnimplementedPackageHubServiceServer) DisablePackageSource(context.Context, *DisablePackageSourceRequest) (*PackageSourceResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DisablePackageSource not implemented")
}
func (UnimplementedPackageHubServiceServer) GetPackageSource(context.Context, *GetPackageSourceRequest) (*PackageSourceResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPackageSource not implemented")
}
func (UnimplementedPackageHubServiceServer) ListPackageSources(context.Context, *ListPackageSourcesRequest) (*ListPackageSourcesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListPackageSources not implemented")
}
func (UnimplementedPackageHubServiceServer) SyncAvailablePackages(context.Context, *SyncAvailablePackagesRequest) (*SyncAvailablePackagesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method SyncAvailablePackages not implemented")
}
func (UnimplementedPackageHubServiceServer) GetPackage(context.Context, *GetPackageRequest) (*PackageResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPackage not implemented")
}
func (UnimplementedPackageHubServiceServer) ListPackages(context.Context, *ListPackagesRequest) (*ListPackagesResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListPackages not implemented")
}
func (UnimplementedPackageHubServiceServer) GetPackageVersion(context.Context, *GetPackageVersionRequest) (*PackageVersionResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPackageVersion not implemented")
}
func (UnimplementedPackageHubServiceServer) ListPackageVersions(context.Context, *ListPackageVersionsRequest) (*ListPackageVersionsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListPackageVersions not implemented")
}
func (UnimplementedPackageHubServiceServer) GetPackageManifest(context.Context, *GetPackageManifestRequest) (*PackageManifestResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPackageManifest not implemented")
}
func (UnimplementedPackageHubServiceServer) RequestPackageInstallation(context.Context, *RequestPackageInstallationRequest) (*PackageInstallationResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method RequestPackageInstallation not implemented")
}
func (UnimplementedPackageHubServiceServer) UpdatePackageInstallation(context.Context, *UpdatePackageInstallationRequest) (*PackageInstallationResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdatePackageInstallation not implemented")
}
func (UnimplementedPackageHubServiceServer) DisablePackageInstallation(context.Context, *DisablePackageInstallationRequest) (*PackageInstallationResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DisablePackageInstallation not implemented")
}
func (UnimplementedPackageHubServiceServer) UninstallPackage(context.Context, *UninstallPackageRequest) (*PackageInstallationResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UninstallPackage not implemented")
}
func (UnimplementedPackageHubServiceServer) GetPackageInstallation(context.Context, *GetPackageInstallationRequest) (*PackageInstallationResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPackageInstallation not implemented")
}
func (UnimplementedPackageHubServiceServer) ListPackageInstallations(context.Context, *ListPackageInstallationsRequest) (*ListPackageInstallationsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListPackageInstallations not implemented")
}
func (UnimplementedPackageHubServiceServer) GetPackageSecretSchema(context.Context, *GetPackageSecretSchemaRequest) (*PackageSecretSchemaResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetPackageSecretSchema not implemented")
}
func (UnimplementedPackageHubServiceServer) RefreshPackageInstallationSecretStatus(context.Context, *RefreshPackageInstallationSecretStatusRequest) (*PackageInstallationResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method RefreshPackageInstallationSecretStatus not implemented")
}
func (UnimplementedPackageHubServiceServer) SetPackageVerification(context.Context, *SetPackageVerificationRequest) (*PackageVerificationResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method SetPackageVerification not implemented")
}
func (UnimplementedPackageHubServiceServer) mustEmbedUnimplementedPackageHubServiceServer() {}
func (UnimplementedPackageHubServiceServer) testEmbeddedByValue()                           {}

// UnsafePackageHubServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to PackageHubServiceServer will
// result in compilation errors.
type UnsafePackageHubServiceServer interface {
	mustEmbedUnimplementedPackageHubServiceServer()
}

func RegisterPackageHubServiceServer(s grpc.ServiceRegistrar, srv PackageHubServiceServer) {
	// If the following call pancis, it indicates UnimplementedPackageHubServiceServer was
	// embedded by pointer and is nil.  This will cause panics if an
	// unimplemented method is ever invoked, so we test this at initialization
	// time to prevent it from happening at runtime later due to I/O.
	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
		t.testEmbeddedByValue()
	}
	s.RegisterService(&PackageHubService_ServiceDesc, srv)
}

func _PackageHubService_ConnectPackageSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ConnectPackageSourceRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).ConnectPackageSource(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_ConnectPackageSource_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).ConnectPackageSource(ctx, req.(*ConnectPackageSourceRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_UpdatePackageSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdatePackageSourceRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).UpdatePackageSource(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_UpdatePackageSource_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).UpdatePackageSource(ctx, req.(*UpdatePackageSourceRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_DisablePackageSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DisablePackageSourceRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).DisablePackageSource(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_DisablePackageSource_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).DisablePackageSource(ctx, req.(*DisablePackageSourceRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_GetPackageSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPackageSourceRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).GetPackageSource(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_GetPackageSource_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).GetPackageSource(ctx, req.(*GetPackageSourceRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_ListPackageSources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListPackageSourcesRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).ListPackageSources(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_ListPackageSources_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).ListPackageSources(ctx, req.(*ListPackageSourcesRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_SyncAvailablePackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SyncAvailablePackagesRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).SyncAvailablePackages(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_SyncAvailablePackages_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).SyncAvailablePackages(ctx, req.(*SyncAvailablePackagesRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_GetPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPackageRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).GetPackage(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_GetPackage_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).GetPackage(ctx, req.(*GetPackageRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_ListPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListPackagesRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).ListPackages(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_ListPackages_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).ListPackages(ctx, req.(*ListPackagesRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_GetPackageVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPackageVersionRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).GetPackageVersion(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_GetPackageVersion_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).GetPackageVersion(ctx, req.(*GetPackageVersionRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_ListPackageVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListPackageVersionsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).ListPackageVersions(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_ListPackageVersions_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).ListPackageVersions(ctx, req.(*ListPackageVersionsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_GetPackageManifest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPackageManifestRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).GetPackageManifest(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_GetPackageManifest_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).GetPackageManifest(ctx, req.(*GetPackageManifestRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_RequestPackageInstallation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RequestPackageInstallationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).RequestPackageInstallation(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_RequestPackageInstallation_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).RequestPackageInstallation(ctx, req.(*RequestPackageInstallationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_UpdatePackageInstallation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdatePackageInstallationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).UpdatePackageInstallation(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_UpdatePackageInstallation_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).UpdatePackageInstallation(ctx, req.(*UpdatePackageInstallationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_DisablePackageInstallation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DisablePackageInstallationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).DisablePackageInstallation(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_DisablePackageInstallation_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).DisablePackageInstallation(ctx, req.(*DisablePackageInstallationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_UninstallPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UninstallPackageRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).UninstallPackage(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_UninstallPackage_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).UninstallPackage(ctx, req.(*UninstallPackageRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_GetPackageInstallation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPackageInstallationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).GetPackageInstallation(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_GetPackageInstallation_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).GetPackageInstallation(ctx, req.(*GetPackageInstallationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_ListPackageInstallations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListPackageInstallationsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).ListPackageInstallations(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_ListPackageInstallations_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).ListPackageInstallations(ctx, req.(*ListPackageInstallationsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_GetPackageSecretSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetPackageSecretSchemaRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).GetPackageSecretSchema(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_GetPackageSecretSchema_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).GetPackageSecretSchema(ctx, req.(*GetPackageSecretSchemaRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_RefreshPackageInstallationSecretStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RefreshPackageInstallationSecretStatusRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).RefreshPackageInstallationSecretStatus(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_RefreshPackageInstallationSecretStatus_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).RefreshPackageInstallationSecretStatus(ctx, req.(*RefreshPackageInstallationSecretStatusRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _PackageHubService_SetPackageVerification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SetPackageVerificationRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(PackageHubServiceServer).SetPackageVerification(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: PackageHubService_SetPackageVerification_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(PackageHubServiceServer).SetPackageVerification(ctx, req.(*SetPackageVerificationRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// PackageHubService_ServiceDesc is the grpc.ServiceDesc for PackageHubService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var PackageHubService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kodex.packages.v1.PackageHubService",
	HandlerType: (*PackageHubServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ConnectPackageSource",
			Handler:    _PackageHubService_ConnectPackageSource_Handler,
		},
		{
			MethodName: "UpdatePackageSource",
			Handler:    _PackageHubService_UpdatePackageSource_Handler,
		},
		{
			MethodName: "DisablePackageSource",
			Handler:    _PackageHubService_DisablePackageSource_Handler,
		},
		{
			MethodName: "GetPackageSource",
			Handler:    _PackageHubService_GetPackageSource_Handler,
		},
		{
			MethodName: "ListPackageSources",
			Handler:    _PackageHubService_ListPackageSources_Handler,
		},
		{
			MethodName: "SyncAvailablePackages",
			Handler:    _PackageHubService_SyncAvailablePackages_Handler,
		},
		{
			MethodName: "GetPackage",
			Handler:    _PackageHubService_GetPackage_Handler,
		},
		{
			MethodName: "ListPackages",
			Handler:    _PackageHubService_ListPackages_Handler,
		},
		{
			MethodName: "GetPackageVersion",
			Handler:    _PackageHubService_GetPackageVersion_Handler,
		},
		{
			MethodName: "ListPackageVersions",
			Handler:    _PackageHubService_ListPackageVersions_Handler,
		},
		{
			MethodName: "GetPackageManifest",
			Handler:    _PackageHubService_GetPackageManifest_Handler,
		},
		{
			MethodName: "RequestPackageInstallation",
			Handler:    _PackageHubService_RequestPackageInstallation_Handler,
		},
		{
			MethodName: "UpdatePackageInstallation",
			Handler:    _PackageHubService_UpdatePackageInstallation_Handler,
		},
		{
			MethodName: "DisablePackageInstallation",
			Handler:    _PackageHubService_DisablePackageInstallation_Handler,
		},
		{
			MethodName: "UninstallPackage",
			Handler:    _PackageHubService_UninstallPackage_Handler,
		},
		{
			MethodName: "GetPackageInstallation",
			Handler:    _PackageHubService_GetPackageInstallation_Handler,
		},
		{
			MethodName: "ListPackageInstallations",
			Handler:    _PackageHubService_ListPackageInstallations_Handler,
		},
		{
			MethodName: "GetPackageSecretSchema",
			Handler:    _PackageHubService_GetPackageSecretSchema_Handler,
		},
		{
			MethodName: "RefreshPackageInstallationSecretStatus",
			Handler:    _PackageHubService_RefreshPackageInstallationSecretStatus_Handler,
		},
		{
			MethodName: "SetPackageVerification",
			Handler:    _PackageHubService_SetPackageVerification_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kodex/packages/v1/package_hub.proto",
}
