Files
class-server/api/class/v1alpha1/class_grpc.pb.go
Ryan McGuire 1e8d3abf8a
All checks were successful
Build and Publish / check-chart (push) Successful in 20s
Build and Publish / helm-release (push) Has been skipped
Build and Publish / release (push) Successful in 4m55s
implement class logo
2025-07-08 16:28:53 -04:00

122 lines
4.5 KiB
Go

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v5.29.3
// source: class/v1alpha1/class.proto
package class
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 (
ClassService_GetClassLogo_FullMethodName = "/class.v1alpha1.ClassService/GetClassLogo"
)
// ClassServiceClient is the client API for ClassService 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 ClassServiceClient interface {
GetClassLogo(ctx context.Context, in *GetClassLogoRequest, opts ...grpc.CallOption) (*GetClassLogoResponse, error)
}
type classServiceClient struct {
cc grpc.ClientConnInterface
}
func NewClassServiceClient(cc grpc.ClientConnInterface) ClassServiceClient {
return &classServiceClient{cc}
}
func (c *classServiceClient) GetClassLogo(ctx context.Context, in *GetClassLogoRequest, opts ...grpc.CallOption) (*GetClassLogoResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetClassLogoResponse)
err := c.cc.Invoke(ctx, ClassService_GetClassLogo_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// ClassServiceServer is the server API for ClassService service.
// All implementations must embed UnimplementedClassServiceServer
// for forward compatibility.
type ClassServiceServer interface {
GetClassLogo(context.Context, *GetClassLogoRequest) (*GetClassLogoResponse, error)
mustEmbedUnimplementedClassServiceServer()
}
// UnimplementedClassServiceServer 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 UnimplementedClassServiceServer struct{}
func (UnimplementedClassServiceServer) GetClassLogo(context.Context, *GetClassLogoRequest) (*GetClassLogoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetClassLogo not implemented")
}
func (UnimplementedClassServiceServer) mustEmbedUnimplementedClassServiceServer() {}
func (UnimplementedClassServiceServer) testEmbeddedByValue() {}
// UnsafeClassServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ClassServiceServer will
// result in compilation errors.
type UnsafeClassServiceServer interface {
mustEmbedUnimplementedClassServiceServer()
}
func RegisterClassServiceServer(s grpc.ServiceRegistrar, srv ClassServiceServer) {
// If the following call pancis, it indicates UnimplementedClassServiceServer 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(&ClassService_ServiceDesc, srv)
}
func _ClassService_GetClassLogo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetClassLogoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ClassServiceServer).GetClassLogo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ClassService_GetClassLogo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ClassServiceServer).GetClassLogo(ctx, req.(*GetClassLogoRequest))
}
return interceptor(ctx, in, info, handler)
}
// ClassService_ServiceDesc is the grpc.ServiceDesc for ClassService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ClassService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "class.v1alpha1.ClassService",
HandlerType: (*ClassServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetClassLogo",
Handler: _ClassService_GetClassLogo_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "class/v1alpha1/class.proto",
}