blob: f5cd71464ff36d10f7e14718f2ee8b358cbe4bdd [file] [log] [blame]
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: registry/v1alpha1/repository_branch.proto
package registryv1alpha1
import (
context "context"
)
import (
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.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
RepositoryBranchService_ListRepositoryBranches_FullMethodName = "/bufman.dubbo.apache.org.registry.v1alpha1.RepositoryBranchService/ListRepositoryBranches"
)
// RepositoryBranchServiceClient is the client API for RepositoryBranchService 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.
type RepositoryBranchServiceClient interface {
// ListRepositoryBranchs lists the repository branches associated with a Repository.
ListRepositoryBranches(ctx context.Context, in *ListRepositoryBranchesRequest, opts ...grpc.CallOption) (*ListRepositoryBranchesResponse, error)
}
type repositoryBranchServiceClient struct {
cc grpc.ClientConnInterface
}
func NewRepositoryBranchServiceClient(cc grpc.ClientConnInterface) RepositoryBranchServiceClient {
return &repositoryBranchServiceClient{cc}
}
func (c *repositoryBranchServiceClient) ListRepositoryBranches(ctx context.Context, in *ListRepositoryBranchesRequest, opts ...grpc.CallOption) (*ListRepositoryBranchesResponse, error) {
out := new(ListRepositoryBranchesResponse)
err := c.cc.Invoke(ctx, RepositoryBranchService_ListRepositoryBranches_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RepositoryBranchServiceServer is the server API for RepositoryBranchService service.
// All implementations must embed UnimplementedRepositoryBranchServiceServer
// for forward compatibility
type RepositoryBranchServiceServer interface {
// ListRepositoryBranchs lists the repository branches associated with a Repository.
ListRepositoryBranches(context.Context, *ListRepositoryBranchesRequest) (*ListRepositoryBranchesResponse, error)
mustEmbedUnimplementedRepositoryBranchServiceServer()
}
// UnimplementedRepositoryBranchServiceServer must be embedded to have forward compatible implementations.
type UnimplementedRepositoryBranchServiceServer struct {
}
func (UnimplementedRepositoryBranchServiceServer) ListRepositoryBranches(context.Context, *ListRepositoryBranchesRequest) (*ListRepositoryBranchesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListRepositoryBranches not implemented")
}
func (UnimplementedRepositoryBranchServiceServer) mustEmbedUnimplementedRepositoryBranchServiceServer() {
}
// UnsafeRepositoryBranchServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RepositoryBranchServiceServer will
// result in compilation errors.
type UnsafeRepositoryBranchServiceServer interface {
mustEmbedUnimplementedRepositoryBranchServiceServer()
}
func RegisterRepositoryBranchServiceServer(s grpc.ServiceRegistrar, srv RepositoryBranchServiceServer) {
s.RegisterService(&RepositoryBranchService_ServiceDesc, srv)
}
func _RepositoryBranchService_ListRepositoryBranches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListRepositoryBranchesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RepositoryBranchServiceServer).ListRepositoryBranches(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: RepositoryBranchService_ListRepositoryBranches_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RepositoryBranchServiceServer).ListRepositoryBranches(ctx, req.(*ListRepositoryBranchesRequest))
}
return interceptor(ctx, in, info, handler)
}
// RepositoryBranchService_ServiceDesc is the grpc.ServiceDesc for RepositoryBranchService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var RepositoryBranchService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "bufman.dubbo.apache.org.registry.v1alpha1.RepositoryBranchService",
HandlerType: (*RepositoryBranchServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListRepositoryBranches",
Handler: _RepositoryBranchService_ListRepositoryBranches_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "registry/v1alpha1/repository_branch.proto",
}